-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
sql: move ValidateNoRepeatKeysInZone to zonepb pkg #124766
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
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.
Seems like a straightforward and reasonable refactor to me.
Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on @annrpom)
pkg/config/zonepb/zone.go
line 1319 at r1 (raw file):
} // ValidateNoRepeatKeysInZone checks that there are not duplicated values for a particular
nit: should we limit this comment line to 80 characters? I like that it was updated to include the function name, but it seems out of alignment with the other lines in the comment block now.
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.
Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @annrpom)
This patch refactors the `ValidateNoRepeatKeysInZone` function to a package accesible to the DSC. Informs: cockroachdb#117574 Release note: None
TFTRs! ('-')7 bors r=spilchen, fqazi |
This patch refactors the
ValidateNoRepeatKeysInZone
function to a package accesible to the DSC.Informs: #117574
Release note: None