-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
refac: Remove duplicate forAllShards
methods from vt/vtctl/workflow
#17025
Conversation
Signed-off-by: Noble Mittal <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17025 +/- ##
==========================================
- Coverage 67.15% 67.13% -0.02%
==========================================
Files 1571 1571
Lines 251763 251794 +31
==========================================
- Hits 169080 169053 -27
- Misses 82683 82741 +58 ☔ View full report in Codecov by Sentry. |
Just FYI, there are also some unit tests that cover the workflow package in rpc_vreplication_test.go as well. That is needed to test the tablet side (the database queries) of the work where we’ve replaced vexec usage with specific RPCs. |
@mattlord thanks for letting me know. I don't think we need unit tests added here then. I think I probably missed that because I just checked coverage for |
Signed-off-by: Noble Mittal <[email protected]>
Signed-off-by: Noble Mittal <[email protected]>
Signed-off-by: Noble Mittal <[email protected]>
forAllShards
methods from vt/vtctl/workflow
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.
Thanks, @beingnoble03 !
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.
Nice refactor, thanks!
Description
This PR removes some duplicate code from
vt/vtctl/workflow
forAllShards
methodsvalidateSourceTablesExist
from server.go to utils.go removing the method receiver.validateSourceTablesExist
Related Issue(s)
Checklist
Deployment Notes