Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classIdPresentInChange should be true when ecClassId is present #6341

Merged
merged 4 commits into from
Jan 9, 2024

Conversation

nick4598
Copy link
Contributor

@nick4598 nick4598 commented Jan 4, 2024

Without this change I get a ChangedECInstance which has no ECClassId or fallbackClassId

image

With the change a classId is present:
image

@nick4598 nick4598 requested a review from a team as a code owner January 4, 2024 21:24
@nick4598 nick4598 requested a review from khanaffan January 4, 2024 21:24
@nick4598
Copy link
Contributor Author

nick4598 commented Jan 4, 2024

@khanaffan Could you review this change?

Copy link
Member

@pmconne pmconne left a comment

Choose a reason for hiding this comment

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

Keep an eye on apparent test flakery. I requeud the builds - all three had failed, each differently, one in a previously-flaky test that was recently fixed.

EDIT: The failure below recurred on both Windows and Linux (iOS failed too, but its XML output is too tedious to parse, didn't check).

  1) Changeset Reader API
       Changeset reader / EC adaptor:

      AssertionError: expected 6 to equal 4
      + expected - actual

      -6
      +4
      
      at Context.<anonymous> (src\test\standalone\ChangesetReader.test.ts:229:14)

@nick4598
Copy link
Contributor Author

nick4598 commented Jan 5, 2024

This test isn't flaky and is a direct result of my change it seems

@nick4598
Copy link
Contributor Author

nick4598 commented Jan 9, 2024

@Mergifyio backport release/4.3.x

@nick4598 nick4598 merged commit cc73874 into master Jan 9, 2024
13 checks passed
@nick4598 nick4598 deleted the nick/changesetecadaptor-fixmaybe branch January 9, 2024 15:24
Copy link
Contributor

mergify bot commented Jan 9, 2024

backport release/4.3.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jan 9, 2024
Co-authored-by: Affan Khan <khanaffan@users.noreply.github.com>
Co-authored-by: affank <khanaffan@gmail.com>
(cherry picked from commit cc73874)
aruniverse pushed a commit that referenced this pull request Jan 10, 2024
…port #6341) [release/4.3.x] (#6347)

Co-authored-by: Nick Tessier <22119573+nick4598@users.noreply.github.com>
Co-authored-by: anmolshres98 <anmolshres98@users.noreply.github.com>
nick4598 added a commit to iTwin/imodel-transformer that referenced this pull request Jan 12, 2024
…changed (#135)

Keeping the PR as draft at the moment, because waiting on a change from
Affan to the changesetECAdaptor to not error out when there is no
ECClassId and instead fall back to the ecclassid of the root class.

The above scenario occurs when the element is no longer present in the
database (because it was deleted in some future changeset that isn't
currently being processed) so it can't be queried for its ecclassid.

EDIT: In 4.3.3 there is a different issue with classIdPresentInChange.
See below PR
iTwin/itwinjs-core#6341

---------

Co-authored-by: Michael Belousov <mike.belousov@bentley.com>
nick4598 added a commit to iTwin/imodel-transformer that referenced this pull request Nov 20, 2024
…changed (#135)

Keeping the PR as draft at the moment, because waiting on a change from
Affan to the changesetECAdaptor to not error out when there is no
ECClassId and instead fall back to the ecclassid of the root class.

The above scenario occurs when the element is no longer present in the
database (because it was deleted in some future changeset that isn't
currently being processed) so it can't be queried for its ecclassid.

EDIT: In 4.3.3 there is a different issue with classIdPresentInChange.
See below PR
iTwin/itwinjs-core#6341

---------

Co-authored-by: Michael Belousov <mike.belousov@bentley.com>
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.

3 participants