-
Notifications
You must be signed in to change notification settings - Fork 2
Added new API's for adding custom changes into IModelExporter.sourceDbChanges
#237
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
Merged
Merged
Changes from all commits
Commits
Show all changes
343 commits
Select commit
Hold shift + click to select a range
3ee157c
add sourceTYPE args to test app
e9e9b37
attach auth client properly
f3a64f0
bump deps to allow for 3.7 usage
9e59284
pnpm update, probably temporary
9e224f1
add targetStandaloneDestination to do local lock-free processChanges …
db7e395
add test script
ced7d72
un-mega-join the Changes() queries
2d0ca3e
fix using cached briefcase of wrong changeset
2a10154
test-app minor fixes for local test
79c7583
wip fixing fedguid using queries
51256f4
timeline testutils support for relationship state
eecaf11
add relationship delete to big branching workflow test
ffc270b
fix unused imports
74a3d47
Merge remote-tracking branch 'origin/main' into federation-guid-optim…
e0e3e9e
Merge remote-tracking branch 'origin/fork-relationship-delete-tests' …
f3794da
quick comment out wip query changes
50dd7f0
remove undefined state from targetElementId in onExportElement
db17ccf
notes about subset equal limitations
7c28c1e
add assert for elem deletion synchronization
ac2b9be
wip refactor remap deleted
bcb8766
fix element deletes
cc8ecd3
cleanup and add deleted rel with no fedguids on its source/target elems
8be4ad7
add noDetachChangeCache option
a86ee6f
don't use fed-guid less elem 1 for sync deleted-provenance relationsh…
MichaelBelousov 20d6a9d
minor cleanup
MichaelBelousov 5928efb
attempt at batch handler that I will revert now
MichaelBelousov 4707e05
fixup: revert batch and rework on rel delete
MichaelBelousov f404f24
working on source==provenance optimization for reverse sync
MichaelBelousov aa48f97
use an aligned union query to make it easier to read
MichaelBelousov 7894db4
query alignment fixes and rewrite processing loop
MichaelBelousov 1d96851
ignore lacking provenance to handle local deletes showing up in chang…
MichaelBelousov 51fec5d
fix bad negation on noDetachChangeCache
MichaelBelousov 6c58d8a
more asserts in big branch test
MichaelBelousov 68a15d4
add bailing out to querying provenance db even without fedguid
MichaelBelousov f640c40
working on last-ditch relationship provenance processing
MichaelBelousov 8fc264b
try using jsonProperties.targetRelInstanceId for simpler query
MichaelBelousov 8988c16
add literal name for sync.since argument
MichaelBelousov f14d6ed
set target scope version in provenance init
MichaelBelousov b3fb7da
disable broken eslint indent rule
MichaelBelousov a31d44d
working on reverse sync tracking
MichaelBelousov 1e175f1
handle reverseSyncVersion
MichaelBelousov a395aad
cleanup synchronizationVersion, fix branch workflow test changesets
MichaelBelousov 2f1189e
deprecate passing changeset index directly to process/exportChanges
MichaelBelousov 7f971dc
remove need to have explicit 'since' in timeline test utility
MichaelBelousov 690c998
split the branches to branch off separate master changesets in big ti…
MichaelBelousov c2f2da9
fix startChangesetIndexOrId type in _tryInitChangesetData
MichaelBelousov 4c99c4a
use an array instead of an object for timeline
MichaelBelousov 29f7387
add post-sync assertions and remove the generic assertion which isn't…
MichaelBelousov 3be290c
add prerelease type test
MichaelBelousov 066a611
working on skipping merge changesets
MichaelBelousov b9cb0a2
revert events work that this branch was originally based on
MichaelBelousov 9d716d1
add synchronization changeset detection, updating, and clearing
MichaelBelousov 70b722d
only create change summaries for necessary ranges, skipping synchroni…
MichaelBelousov 85fd6e4
fix algo
MichaelBelousov 466cfff
allow initializing ChangedInstanceIds from multi-ranges of changesets
MichaelBelousov ff19036
propagate changeset range arguments
MichaelBelousov e986645
fix excluding sync changesets
MichaelBelousov a0d2270
cleanup, mostly indent rule
MichaelBelousov 13641e9
don't query entire instance and don't query at all if unnecessary in …
MichaelBelousov 31b6c59
working on fixing aspect provenance
MichaelBelousov 670cf26
add fallback query of element provenance
MichaelBelousov 03cbb27
fix bad assert and lack of bindings in query call I just added
MichaelBelousov 70952e8
tweak large scale test
MichaelBelousov 1e4bc39
use separate transformers to apply changes, ignore skipping of 0th ch…
MichaelBelousov 39b4990
remove extraneous logging and test.only
MichaelBelousov 4ff8c36
Merge remote-tracking branch 'origin/main' into federation-guid-optim…
MichaelBelousov 97dd8f9
test-app: don't check only first briefcase in cache
MichaelBelousov 16ff32e
refactor placement transform and intialize transformer in catalog calls
MichaelBelousov ed03743
add ignoreMissingChangesetsInSynchronizations option
MichaelBelousov 085c182
make test catalog import async initialized
MichaelBelousov c2dbc25
fix catalog remapping
MichaelBelousov 5ff2314
reimplement detectElementDeletes for older workflows
MichaelBelousov 91e59f0
remove temp release-dev check
MichaelBelousov 9025a97
don't allow empty string to be prerelease prefix
MichaelBelousov e0f70d8
Version bump [skip actions]
imodeljs-admin 8069422
Fixed an infinite recursion bug when processing changes (#57)
ViliusRuskys 7982a09
Merge remote-tracking branch 'origin/main' into federation-guid-optim…
MichaelBelousov c96b047
Explicitly track provenance with ExternalSourceAspects when combining…
ViliusRuskys ace7e8c
Version bump [skip actions]
imodeljs-admin 349058f
Merge branch 'main' into federation-guid-optimization
MichaelBelousov be6e364
fix merge artifacts
MichaelBelousov ce8c451
add validate docs step
MichaelBelousov 601143c
Implemented check for aspect identifier being not an id (#87)
KyryloVolotovskyi e6dc948
Fix element provenance direction in reverse synchronization workflow …
ViliusRuskys a56be5b
Version bump [skip actions]
imodeljs-admin 84b733b
reverse synchronization test case (#78)
ViliusRuskys b541aff
Version bump [skip actions]
imodeljs-admin 68f975d
Merge remote-tracking branch 'origin/main' into federation-guid-optim…
af070ea
v7 lockfile
b716a0b
remerge lockfile
35e2c59
reworking process changes to not traverse element trees
188773d
fix inverted bool
a717b38
fix glaring error in forEachTrackedElement
388a222
don't use transformer context after removing hierarchy
870198e
deprecate resumption api
b9d30f2
remove no longer necessary printing of itjs dep
af15c56
fixup: remove usage of .only on test
a8f9a1d
continued work
9558905
Revert "continued work"
0d4f552
Revert "don't use transformer context after removing hierarchy"
49e30a8
Revert "reworking process changes to not traverse element trees"
e2b7608
remove optimization that no longer works without lastMod
11746e7
update numElementsUpdates
cc13c5a
Element recreation fix refactor (#99)
046efb7
Version bump [skip actions]
imodeljs-admin 19cb44c
Fed guid opt branch provenance init test (#107)
DanRod1999 cfd3024
make updateSynchronizationVersion public and add a force option
MichaelBelousov 2611661
fix bad rename
1019373
also track source's sync changesets during reverse sync (#108)
d250f84
Version bump [skip actions]
imodeljs-admin 28b3f0d
Reverse synchronize deletes of elements with random ExternalSourceAsp…
ViliusRuskys 7273a94
Version bump [skip actions]
imodeljs-admin 1377c09
Merge remote-tracking branch 'origin/main' into federation-guid-optim…
b47d581
post merge test fixes
5e23859
Version bump [skip actions]
imodeljs-admin 06055a0
revert to original behavior of provenance ExternalSourceAspect versio…
dfbdeee
Version bump [skip actions]
imodeljs-admin 82efbf7
Merge remote-tracking branch 'origin/main' into federation-guid-optim…
cdee5bb
remove +1 from aspect check in fedguid branch
d552d2a
Version bump [skip actions]
imodeljs-admin 815afe7
mike processed FIXMEs
f56af25
pnpm lint
nick4598 cb15d46
report last db error in branch provenenance init, and better imports
8e40874
use pathToFileUrl when attaching database
nick4598 5dabfb8
add FIXME about filtering syncChangesetsToClear
030da11
Added API for querying provenance info for derived transformer classe…
ViliusRuskys 6d587f3
Handle duplicate code values when updating elements (#124)
ViliusRuskys 7cd1e5c
Version bump [skip actions]
imodeljs-admin b7a6679
Move aspect processing before any clean up is started in change proce…
mindaugasdirg 02433db
Algo.ts enhancements, test deleting relationship and delete element r…
nick4598 74333f6
unskip test that we must fix before this merges, now that deployed ve…
0cc7cfb
Add FIXME about new fed guid behavior on special root elems
25b9b99
Change the BranchProvenanceInitializer tests so that they don't creat…
nick4598 799afea
Read changesets directly instead of applying them to determine whats …
nick4598 187d8be
Add prettier as a commit hook, switch to eslint flat config, add some…
nick4598 d7925b9
Use options.forceExternalSourceAspectProvenance && shouldDetectDelete…
nick4598 aa88255
Detect synchronization direction from ESA data stored in the provenan…
nick4598 f2b4d6c
Allow no versioning data if user opts into it (#146)
nick4598 ec07856
throw when danglingReferencesBehavior is reject (#150)
nick4598 ce9364b
Support delete detection in test (#151)
nick4598 e7ae1f5
Run lint:fix (#152)
nick4598 c93b84a
save and push changes after transformer is complete (#153)
nick4598 5b3087c
rootElementPropagateChanges/skipBranchProvInitializeCs (#154)
nick4598 f8438e9
change version to 1.0.0
nick4598 e15c103
Version bump [skip actions]
imodeljs-admin bd1649e
Change files
nick4598 9dcb464
1.0.0-dev.0
nick4598 5771a86
try 1.0.0
nick4598 ee28da0
change package json version back to 0.4.18-fedguidopt.4
nick4598 0c9600a
Change files
nick4598 87d0677
Version bump [skip actions]
imodeljs-admin d3e50c3
Change files
nick4598 feeed15
1.0.0-dev.0
nick4598 2d26ba5
Version bump [skip actions]
imodeljs-admin 1f594de
Cleanup some misc fixmes (#156)
nick4598 99a431b
Slightly change test to make sure an element introduced by branch A c…
nick4598 a4bea01
Special case root subject remapping (#161)
jiaruiz717 d216ce5
Filter the changesets as opposed to outright clearing them when the d…
nick4598 0023687
Check excludedElementIds before we decide to load the element in IMod…
nick4598 bef4493
Version bump [skip actions]
imodeljs-admin fdf23e0
Remove pnpm patch and update minimum peerDep to first version which i…
nick4598 63d18ce
Version bump [skip actions]
imodeljs-admin 7d38d53
Merge main into fed guid optimization (#166)
nick4598 1ed2966
Version bump [skip actions]
imodeljs-admin 336227e
Merge remote-tracking branch 'origin/main' into federation-guid-optim…
nick4598 e86ddcb
Fix ALL lint errors and remove deprecated danglingPredecessorsBehavio…
nick4598 898cc20
FIX the rest of lint errors
nick4598 a4fc76b
Version bump [skip actions]
imodeljs-admin 720cdf0
delete test.sh
nick4598 99747d5
Merge branch 'federation-guid-optimization' of https://github.com/iTw…
nick4598 029cd66
add @internal to rangesFromRangeAndSkipped
nick4598 603450b
mark renderRanges internal
nick4598 2003695
add @module utils to Algo.ts
nick4598 d787b38
remove reference to finalizeTransformation since its a private function
nick4598 a5c49ff
unpin build tools and core backend in package/performance-scripts
nick4598 a120e71
move classidstoskip part of the instance of hcangedinstanceids
nick4598 7d9c3ed
working attempt I believe
nick4598 5334380
Merge branch 'main' into nick/manual-idfilter-changing
nick4598 47c8f92
fix some lint issues, and lock typescript down to 5.2, since 5.3 brea…
nick4598 428100f
Change files
nick4598 deccd29
try going back to other ts version to see if docs failure gives bette…
nick4598 c790a90
Merge branch 'main' into nick/manual-idfilter-changing
nick4598 9b3bf77
Merge branch 'main' into nick/manual-idfilter-changing
nick4598 9e0bcd2
make it a bit easier to add custom changes
nick4598 25e369d
Merge branch 'nick/manual-idfilter-changing' of https://github.com/iT…
nick4598 0f40eca
Merge branch 'main' into nick/manual-idfilter-changing
nick4598 6f08fbe
fix build error
nick4598 fdb5055
Merge branch 'main' into nick/manual-idfilter-changing
nick4598 c31c9fb
oops missed small change
nick4598 7778b94
package json and pnpm lock
nick4598 1b6c0ff
add comment hopefully clarifying why we pass this._sourceDbChanges
nick4598 496a9f4
add some comment, variable renames
nick4598 5b37e22
remove .only
nick4598 00da1b2
remove commented line
nick4598 62f4f21
allow consumer to pass the entitytype for the change they're adding
nick4598 21c5432
make sure customchanges can only be added after looking at the change…
nick4598 4383d00
add comment that ionitialize must be called to have sourceDbChanges b…
nick4598 8d7c6b7
initial changes to support transforms without changesets
nick4598 fd9c1b5
add 'addCustomChangesCallback' with comment
nick4598 7924916
call callback in transformer, also move customchanges in tarnsformer …
nick4598 e576fa6
remove the dummy changesets from the test, allow transformer to run w…
nick4598 1026202
add todo over addmodeltotupdated
nick4598 2096b32
only use isEmpty in thea transformer and not exporter
nick4598 79ef8f6
change comment
nick4598 a94542d
revert change
nick4598 25f6611
add another physical model and a definition model to the custom inser…
nick4598 4fb7071
change name to addCustomChanges
nick4598 3c34ea6
change name to adCustomChanges in transformer
nick4598 0ec65c8
add individual custom functions
nick4598 f7c6c7a
refactor pocessDeLetedOp, make getclassFullnameFromECClassId private,…
nick4598 1318721
Merge branch 'main' into nick/manual-idfilter-changing
nick4598 e105fea
remove changedinstancetype
nick4598 69bc630
add model's modeledELement to element Changes when adding custom mode…
nick4598 e5d2614
slight change to weird exportChanges behavior
nick4598 a0834ec
support bulk adds per operationtype? is this good enough?
nick4598 6ad00d9
extract-api
nick4598 eef7b36
lint
nick4598 bb8c3dc
lint
nick4598 b53d546
change to hasCustomrelationshipchanges
nick4598 bdb45db
check for undefined explicitly
nick4598 8dc4667
remove unnecessary ?
nick4598 87a6d20
small addition to test where we insert an aspect
nick4598 c10d83c
custom aspect deletes might not be working. revisit tmrw
nick4598 1052f01
coment out assert on aspect delete for now
nick4598 f026eaf
move addCustomChanges to transformer class
nick4598 a5c2c76
switch to hasChanges, fix bad condition check AGAIN!!
nick4598 691ac00
remove .only
nick4598 3bab7a6
lint error
nick4598 3930f78
make sourceDbChanges required
nick4598 d0229f7
query for all model ids at once
nick4598 709792e
lint
nick4598 7cf5482
fix bug where modeled element's model is not added to custom changes …
nick4598 17daee0
Merge branch 'main' into nick/manual-idfilter-changing
JulijaRamoskiene 30f40d1
AddCustomChanges API tests and additional functionality
JulijaRamoskiene 5a3afac
Updated documentation
JulijaRamoskiene a52fc42
Marked internal methods and updated documentation
JulijaRamoskiene 47dcc81
Reverted accidental changes
JulijaRamoskiene 34da6f8
Reverted some changes
JulijaRamoskiene ab44317
Removed 'addCustomCodeSpecChange' and added more tests
JulijaRamoskiene fc02c49
More tests for addCustom changes
JulijaRamoskiene ff91198
Removed AddCustomRelationshipChanges api
JulijaRamoskiene 6b036be
Removed unused variable
JulijaRamoskiene 60ce61b
fixed bad revert
JulijaRamoskiene 224155f
Updated changelog
JulijaRamoskiene 8557071
Clean up
JulijaRamoskiene e48fdb4
Clean up
JulijaRamoskiene ac16f16
Added comment back
JulijaRamoskiene ee43cdb
Updated docs
JulijaRamoskiene 8c94965
removed compressed set
JulijaRamoskiene ae88008
Removed unused import
JulijaRamoskiene File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@itwin-imodel-transformer-e69e7651-40c7-4476-9e9e-6026f430c36c.json
This file contains hidden or 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": "Add new APIs to support providing custom changes ( not found in a changeset ) to the transformer", | ||
| "packageName": "@itwin/imodel-transformer", | ||
| "email": "22119573+nick4598@users.noreply.github.com, JulijaRamoskiene@users.noreply.github.com", | ||
| "dependentChangeType": "patch" | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.