-
Notifications
You must be signed in to change notification settings - Fork 894
fix(enterprise/dbcrypt): do not skip deleted users when encrypting or deleting #9694
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
355b2c1
add some more logging to test
johnstcn 39aa29e
validate working with multiple user statuses
johnstcn 3950c09
fmt query
johnstcn 49b9d90
create deleted users
johnstcn 5c1b687
robustificate data generation
johnstcn 9bb1a5d
only dump on test failure
johnstcn 7da5972
more logging
johnstcn 2f63e43
do not skip deleted users when encrypting or decrypting
johnstcn 11f85bf
make AllUserIDs a fully-fledged query citizen
johnstcn 0c11d6c
fixup! make AllUserIDs a fully-fledged query citizen
johnstcn 0f164a3
fixup! fixup! make AllUserIDs a fully-fledged query citizen
johnstcn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fmt query
- Loading branch information
commit 3950c097a47b09ec35d82109a565c701660aaf1a
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe we should add a test that this function works as expected since it's static and will only be run on failure, meaning it will most likely be outdated by the time it's needed. 😆
Perhaps this could be motivation for a
testqueries
package. Similar to what I did here: #9519 to generate a new (slim) package that can be wrapped aroundsql.DB
.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.
I'd definitely be in favour of this; I'm fairly sure there are at least a couple of queries that only ever get run in unit tests.
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.
Golden files?
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.
I think verifying a few fields in the test is enough. Otherwise you need to stabilize the generated IDs.
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.
I think instead of making that query more complex I'll go ahead and add a follow-up PR to dump the entire test database on failure (optional, opt-in). Less work, less fuss, more benefit.