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

*: identify remaining uses of TODOSQLCodec #99774

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

knz
Copy link
Contributor

@knz knz commented Mar 28, 2023

The TODOSQLCodec was a bug waiting to happen.

The only reasonable remaining purpose is for use in tests. As such, this change moves its definition to a test-only package (we have a linter that verifies that testutils is not included in non-test code).

This change then identifies the one non-reasonable remaining purposes and identifies it properly as a bug linked to #48123.

Release note: None
Epic: None

The `TODOSQLCodec` was a bug waiting to happen.

The only reasonable remaining purpose is for use in tests. As such,
this change moves its definition to a test-only package (we have a
linter that verifies that `testutils` is not included in non-test code).

This change then identifies the one non-reasonable remaining purposes
and identifies it properly as a bug linked to cockroachdb#48123.

Release note: None
@knz knz requested a review from stevendanna March 28, 2023 07:54
@knz knz requested review from a team as code owners March 28, 2023 07:54
@knz knz requested a review from yuzefovich March 28, 2023 07:54
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

Thanks for reviewing all the uses of this. Nice to see we only have one non-test use.

@knz
Copy link
Contributor Author

knz commented Mar 28, 2023

TFYR!

bors r=stevendanna

@craig
Copy link
Contributor

craig bot commented Mar 28, 2023

Build succeeded:

@craig craig bot merged commit 0745cd4 into cockroachdb:master Mar 28, 2023
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.

3 participants