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
chore(store/v2): cleanup the migration API #20298
Conversation
WalkthroughWalkthroughThe changes encompass enhancing the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@cool-develope your pull request is missing a changelog! |
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.
Actionable comments posted: 0
Review Details
Configuration used: .coderabbit.yml
Review profile: CHILL
Files selected for processing (4)
- store/v2/root/migrate_test.go (1 hunks)
- store/v2/root/store.go (7 hunks)
- store/v2/root/store_test.go (1 hunks)
- store/v2/store.go (1 hunks)
Files skipped from review due to trivial changes (1)
- store/v2/root/store_test.go
Additional Context Used
Path-based Instructions (3)
store/v2/store.go (1)
Pattern
**/*.go
: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.store/v2/root/migrate_test.go (2)
Pattern
**/*.go
: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.
Pattern
**/*_test.go
: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"store/v2/root/store.go (1)
Pattern
**/*.go
: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.
Additional comments not posted (6)
store/v2/store.go (1)
Line range hint
1-1
: Removal ofStartMigration()
fromRootStore
interface aligns with PR objectives.store/v2/root/migrate_test.go (1)
90-99
: Ensure the new test for query fallback to the original SC is comprehensive and correctly implemented.store/v2/root/store.go (4)
Line range hint
62-79
: The newNew
constructor correctly initializes theStore
with a migration manager if provided.
170-177
: Modification to theQuery
method to handle queries based on migration status is correctly implemented.
295-306
: Ensure that the conditional logic in theCommit
method correctly handles state storage commits when not migrating.
348-352
: ThestartMigration
method is correctly implemented to handle asynchronous migration operations.
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.
Actionable comments posted: 1
Review Details
Configuration used: .coderabbit.yml
Review profile: CHILL
Files selected for processing (2)
- store/v2/migration/manager.go (1 hunks)
- store/v2/root/store.go (7 hunks)
Files skipped from review as they are similar to previous changes (1)
- store/v2/root/store.go
Additional Context Used
Path-based Instructions (1)
store/v2/migration/manager.go (1)
Pattern
**/*.go
: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.
Description
Closes: #20203
StartMigration
API in terms of store interface cleanup, ref: store/v2: API Cleanup #20239Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
Summary by CodeRabbit
New Features
Store
with an optional migration manager.Query
andCommit
methods inStore
to handle operations based on migration status.Refactor
Store
.Bug Fixes
Tests
Chores
StartMigration
function from theRootStore
interface as it's no longer needed.