-
Notifications
You must be signed in to change notification settings - Fork 535
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
Remove _createDataStoreWithProps #22996
base: main
Are you sure you want to change the base?
Remove _createDataStoreWithProps #22996
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for docs; had some rewording and clarification that would be good to add.
Removed two main APIs, `ContainerRuntime.createDataStoreWithProps` and `IContainerRuntimeBase.createDataStoreWithProps` | ||
has been removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ContainerRuntime.createDataStoreWithProps
and IContainerRuntimeBase.createDataStoreWithProps
APIs have been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a note at the bottom with a link to the release notes where these APIs were deprecated? Something like:
The initial deprecations of the now changed or removed types were announced in Fluid Framework v2.4.0: Several MergeTree Client Legacy APIs are now deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have been trying to remove this api for 4 years, but our first deprecation occurred here: #1537
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Coverage Summary
↑ packages.runtime.container-runtime.src:
Line Coverage Change: No change Branch Coverage Change: 0.05%
Metric Name | Baseline coverage | PR coverage | Coverage Diff |
---|---|---|---|
Branch Coverage | 92.90% | 92.95% | ↑ 0.05% |
Line Coverage | 94.50% | 94.50% | → No change |
Baseline commit: 85d0e82
Baseline build: 304645
Happy Coding!!
Code coverage comparison check passed!!
⯆ @fluid-example/bundle-size-tests: -511 Bytes
Baseline commit: 85d0e82 |
Co-authored-by: Tyler Butler <[email protected]>
Co-authored-by: Tyler Butler <[email protected]>
🔗 Found some broken links! 💔 Run a link check locally to find them. See linkcheck output
|
AB#856
#22993
Description
Removes APIs that have been deprecated. We have tried to move away from
_createDataStoreWithProps
as this causes collisions when creating live datastores. Solutions involved aliasing. The original issue with the removal was that there was no way to put in props. Added theinitialState
parameter toPureDataObjectFactory.createInstanceWithDataStore
as pass in props.Remove APIs
IContainerRuntimeBase._createDataStoreWithProps
ContainerRuntime._createDataStoreWithProps
Alternatives
PureDataObjectFactory.createInstanceWithDataStore
allows props to be passed in via theinitialState
parameter.Merge Notes
main
is ready for 2.20 changes.