Skip to content

Commit

Permalink
add FIXME about filtering syncChangesetsToClear
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBelousov committed Nov 15, 2023
1 parent 8e40874 commit 5dabfb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/transformer/src/IModelTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1834,6 +1834,8 @@ export class IModelTransformer extends IModelExportHandler {
// FIXME: force save for the user to prevent that
for (let i = this._startingChangesetIndices.target + 1; i <= this.targetDb.changeset.index + 1; i++)
syncChangesetsToUpdate.push(i);
// FIXME: add test to synchronize an iModel that is not at the tip, since then clearning syncChangesets is
// probably wrong, and we should filter it instead
syncChangesetsToClear.length = 0;

// if reverse sync then we may have received provenance changes which should be marked as sync changes
Expand Down

0 comments on commit 5dabfb8

Please sign in to comment.