Open nick4598 opened 3 months ago
nativeDb Functions
hasPendingTxns
hasUnsavedChanges
schemaToXmlString (there could be a workaround here... not sure. the one in core uses DOMParser)
IModelHost.platform
DgnDb
RevisionUtility.recompressRevision
RevisionUtility.disassembleRevision
RevisionUtility.assembleRevision
RevisionUtility.normalizeLzmaParams
RevisionUtility.computeStatistics
RevisionUtility.getUncompressSize
*Denotes that the function is not being used exclusively by tests
fyi @pmconne @wgoehrig to keep you guys in the loop
Would it be possible to provide a list of the APIs you are using that currently do not have an alternative public API, with link(s) to your usage of each?
Thanks for the suggestion, we will work on gathering that information
Daniel has updated the list with links to their usage. I also tried to give a rough categorization of each one, "must have replacement", "might need replacement".
This will have implications when it comes time to consume itwinjs 5.0. NativeDb will no longer be accessible at all due to the private symbol approach. We need public API replacements for everything we currently MUST have from NativeDb in the transformer.
We can consider getting rid of some if we deem them no longer necessary, but we definitely can't get rid of them all. Another alternate approach is to somehow give this repo special privileges, but it seems impossible with the private symbol approach. I think this repo is one of the few that was considered acceptable to use internal APIs? But I may be misremembering that. I think its a moot point since itwinjs-core is moving in the direction of private symbols.
Failing PR run that lists all the ones currently in imodel-transformer This doesn't mention all the other packages. ctrl + f for IModelHost.platform and nativeDb to find the rest.
relatedPR that disabled all them for now
LIST GOES HERE:
nativeDb.extractChangedInstanceIdsFromChangeSets
and replaced withChangedInstanceIds.initialize
- https://github.com/iTwin/imodel-transformer/pull/213IModelHost.platform.RevisionUtility
because they are not being used by any of our tests - https://github.com/iTwin/imodel-transformer/pull/215nativeDb.schemaToXmlString
and replaced withSchemaTestUtils.schemaToXmlString
- https://github.com/iTwin/imodel-transformer/pull/217nativeDb.getChangeTrackingMemoryUsed
to preapproved tasklist - still useful in test-appnativeDb.completeCreateChangeset
to preapproved tasklist - still useful in performance-testnativeDb.startCreateChangeset
to preapproved tasklist - still useful in performance-testnativeDb.applyChangeset
to preapproved tasklist - still useful in performance-testnativeDb.startProfiler
to preapproved tasklist - still useful in performance-scriptnativeDb.stopProfiler
to preapproved tasklist - still useful in performance-scriptIModelHost.platform.DgnDb
to preapproved tasklist - still useful in performance-test, test-app, other tests