-
Notifications
You must be signed in to change notification settings - Fork 2
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
Evaluate / List all places we use nativeDb or platform and any other 'deprecated' APIs. #196
Comments
MUST HAVE REPLACEMENT:
MIGHT NEED REPLACEMENT:
MIGHT BE ABLE TO REMOVE:
Yet to be sorted:
*Denotes that the function is not being used exclusively by tests |
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:
Internal Usage
Need of @preapproved
Public
nativeDb.extractChangedInstanceIdsFromChangeSets
and replaced withChangedInstanceIds.initialize
- replace nativedb extractChangedInstanceIdsFromChangeSets #213IModelHost.platform.RevisionUtility
because they are not being used by any of our tests - Remove revision utility #215nativeDb.schemaToXmlString
and replaced withSchemaTestUtils.schemaToXmlString
- Replace nativedb schemaToXmlString #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 testsThe text was updated successfully, but these errors were encountered: