Skip to content

[WIP] iTwin.js v5#234

Draft
aruniverse wants to merge 106 commits intomainfrom
itwinjs-v5
Draft

[WIP] iTwin.js v5#234
aruniverse wants to merge 106 commits intomainfrom
itwinjs-v5

Conversation

@aruniverse
Copy link
Member

No description provided.

aruniverse and others added 14 commits February 10, 2025 12:22
iTwin/itwinjs-core#7512 makes the internal APIs
`IModelDb.nativeDb` and `IModelHost.platform` inaccessible outside of
the core-backend package.

---------

Co-authored-by: nick.tessier <22119573+nick4598@users.noreply.github.com>
Co-authored-by: Daniel Rodriguez <DanRod1999@users.noreply.github.com>
Co-authored-by: Arun George <11051042+aruniverse@users.noreply.github.com>
Co-authored-by: Arun George <aruniverse@users.noreply.github.com>
@anmolshres98
Copy link
Contributor

anmolshres98 commented Jun 17, 2025

We can probably publish and try and merge this PR @aruniverse

@aruniverse
Copy link
Member Author

We can probably publish and try and merge this PR @aruniverse

You can publish a new pre release but let's hold off on the 2.0 for now. I want to review this PKG a bit more

}
private accountForPartialViewDefinition2d(elementProps: ElementProps): void {
const view2d = elementProps as unknown as ViewDefinition2d;
// if the ViewDefinition2d has a baseModelId, it should be a valid Id64String otherwise insert/get operations will fail.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khanaffan @MichaelSwigerAtBentley, would appreciate reviewing this func, as the issue started after some of you're guys work in native. I think Mike worked with Anmol a bit on this, but wanted a quick review to make sure this logic seems sound. Lgtm, but want to make sure temporarily setting this baseModelId wouldn't have unanticipated consequences before the correct value is reconciled. Thanks!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So its just assigning a placeholder 0x1 as the baseModelId in cases where it is defined but not a valid Id64?

@DanRod1999
Copy link
Contributor

All usages of withPreparedStatement() have been replaced except for 2 instances. First occurrence is mentioned above. Second, is in the ElementCascadingDeleteCode. I believe I cannot update this because it is part of an override for processElementTree() which is in itjs core and currently sync. I don't think I can change the current code here unless the method in itjs is changed.

@aruniverse aruniverse requested a review from Copilot February 11, 2026 21:08
@aruniverse
Copy link
Member Author

@itwin/transformation-service can you guys please help in reviewing the changes here?

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ViewDefinition2d element is processed before its "baseModel" element is processed