migration: backfill apitoken last characters#63342
Merged
Conversation
mdtro
commented
Jan 17, 2024
Contributor
|
This PR has a migration; here is the generated SQL for --
-- MIGRATION NOW PERFORMS OPERATION THAT CANNOT BE WRITTEN AS SQL:
-- Raw Python operation
-- |
e95805a to
c9bb0ac
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #63342 +/- ##
===========================================
+ Coverage 56.54% 81.34% +24.80%
===========================================
Files 5196 5208 +12
Lines 230738 231097 +359
Branches 39867 39934 +67
===========================================
+ Hits 130460 187993 +57533
+ Misses 96256 37325 -58931
- Partials 4022 5779 +1757 |
78fa9d6 to
32ee72c
Compare
32ee72c to
496a112
Compare
Contributor
|
This PR has a migration; here is the generated SQL for --
-- MIGRATION NOW PERFORMS OPERATION THAT CANNOT BE WRITTEN AS SQL:
-- Raw Python operation
-- |
trillville
pushed a commit
that referenced
this pull request
Jan 19, 2024
Backfills the `token_last_characters` column on existing `ApiToken` entries. As of #62972, new `ApiToken` entries are being created with this column already populated with the correct values. This backfill will only impact old tokens created prior. Tracking Issue: #58918 Related RFC: getsentry/rfcs#32
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Backfills the
token_last_characterscolumn on existingApiTokens.As of #62972, new
ApiTokens are being created with this column already populated with the correct values. This backfill will only impact old tokens created prior.Tracking Issue: #58918
Related RFC: getsentry/rfcs#32