-
Notifications
You must be signed in to change notification settings - Fork 403
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
feat(storage-plugin): require explicit options when providing storage plugin #2100
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 05e965c. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
8b65619
to
5d54118
Compare
BundleMon (Integration Projects)Files updated (2)
Total files change +24B +0.02% Final result: ✅ View report in BundleMon website ➡️ |
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.
LGTM
@arturovt Should we plan to add a migration schematics to ease the impact of these breaking changes?
5d54118
to
4356b0a
Compare
4356b0a
to
705cf3d
Compare
… plugin This commit updates the implementation of the register signature for the storage plugin. It now always requires `options` to be provided. We want to ensure clarity regarding the states that we're going to serialize. When no `options` are provided, we implicitly provide the `@@STATE` key, which defines that all states should be serialized. This implementation doesn't compromise extendability because we implicitly rely on the internal mechanism that transforms options. We should always require options to be provided and require developers to specify serializable states explicitly. This would allow us to have feature states because the feature registration mechanism would also know if the user explicitly specified all states to be serialized at the root level or not. **Note:** This change is breaking. However, it's time to make breaking changes to move forward, as the current implementation is stale and acts as a blocker.
705cf3d
to
05e965c
Compare
Code Climate has analyzed commit 05e965c and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 95.5% (0.0% change). View more on Code Climate. |
This commit updates the implementation of the register signature for the storage plugin.
It now always requires
options
to be provided. We want to ensure clarity regarding thestates that we're going to serialize. When no
options
are provided, we implicitly providethe
@@STATE
key, which defines that all states should be serialized. This implementationdoesn't compromise extendability because we implicitly rely on the internal mechanism that
transforms options. We should always require options to be provided and require developers
to specify serializable states explicitly.
This would allow us to have feature states because the feature registration mechanism would
also know if the user explicitly specified all states to be serialized at the root level or not.
Note: This change is breaking. However, it's time to make breaking changes to move forward,
as the current implementation is stale and acts as a blocker.