Skip to content
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

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

annrpom
Copy link
Contributor

@annrpom annrpom commented May 28, 2024

This patch refactors the ValidateNoRepeatKeysInZone function to a package accesible to the DSC.

Informs: #117574
Release note: None

Copy link

blathers-crl bot commented May 28, 2024

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.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@spilchen spilchen left a 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: :shipit: 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.

Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: :shipit: 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
@annrpom
Copy link
Contributor Author

annrpom commented Jun 13, 2024

TFTRs! ('-')7

bors r=spilchen, fqazi

@craig craig bot merged commit 45957cf into cockroachdb:master Jun 13, 2024
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants