-
Notifications
You must be signed in to change notification settings - Fork 216
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
Conversation
@khanaffan Could you review this change? |
There was a problem hiding this 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)
This test isn't flaky and is a direct result of my change it seems |
@Mergifyio backport release/4.3.x |
✅ Backports have been created
|
Co-authored-by: Affan Khan <khanaffan@users.noreply.github.com> Co-authored-by: affank <khanaffan@gmail.com> (cherry picked from commit cc73874)
…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>
…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>
Without this change I get a ChangedECInstance which has no ECClassId or fallbackClassId
With the change a classId is present: