-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support providing the reversesync and sync versions when unsafe-migra…
…te is set. (#179) Support providing the reversesync and sync versions when unsafe-migrate is set. This is to support svcs team and their use cases so they no longer have to have code surrounding this. A change we made to make syncDirection determined automatically by the transformer has made some of their patches no longer work. I also ran into a bug when trying to test this which had 2 issues, the first being the hasElementChangedCache was getting aspect ids added to it. I believe it was ALWAYS supposed to be only element ids, but I made that mistake when converting to use Affan's changeset reader. The query that used to be used for the hasElementChangedCache had a where clause: [`ic.ChangedInstance.ClassId IS (ONLY BisCore.Element)`](5762951#diff-d07eab136b812db5c475ddb91cbc589d5fd6e5943638c6e2028994d6f58fe80bR687) The second part of the bug: I believe we should no longer be checking `if Id64.isValid(targetElementId)` when deciding if we should return early because an element has not changed. This seems to be leftover from a time when you needed the targetElementId to find the ESA which described the relationship between the source and target element. I believe at the time of Mike making his change to no longer search for ESAs he didn't want to remove targetElementId (so he changed it to _targetElementId), because that COULD be a breaking change if someone was overriding the hasElementChanged function. The services team does not appear to be overriding the hasElementChanged function, and this change will be part of a 1.0.0 major release.
- Loading branch information
Showing
3 changed files
with
350 additions
and
23 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@itwin-imodel-transformer-6d5fba74-5711-471e-9f99-4ef766c48902.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Support setting the reversesync and sync version when unsafe-migrate is set. Also fix bug with haselementchangedcache", | ||
"packageName": "@itwin/imodel-transformer", | ||
"email": "22119573+nick4598@users.noreply.github.com", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.