Open nick4598 opened 1 month ago
Rplied to your question about exporter: https://github.com/iTwin/imodel-transformer/pull/172#issuecomment-2109510399
To answer your question about Exporter, yes, we do set up exporter manually. We have our custom Exporter: https://dev.azure.com/bentleycs/iModelTechnologies/_git/imodel-transformations?path=/packages/imodel-transformations-local/src/Exporter.ts Which is initialized and passed to transformer here: https://dev.azure.com/bentleycs/iModelTechnologies/_git/imodel-transformations?path=/packages/imodel-transformations-local/src/transformers/TransformerFactory.ts
Context
NOTE: Not urgent or blocking! There are already currently working workarounds in SVCs side for this. SVCs team has a function
manualInitialize
which is used mainly for:this._startChangesetIndex = this.synchronizationVersion.index + 1;
.We should support SVCs team desire to determine the startChangesetIndex so that they do not have to have a
manualInitialize
which has to set a private property_isSynchronization
on the core transformer.Potential Options
onTransformerInitialized
which lets consumers run code right after the transformer is initialized and before it starts processing changes. Consumers would pass this function as part of the transformer options.Maybe on red arrow could add?
Or somewhere in this function above
Concerns
I raised a concern on the below PR that I think could be relevant. https://github.com/iTwin/imodel-transformer/pull/172