[PM-33866] Revocation Reasons: DDL Edition#7432
Open
sven-bitwarden wants to merge 14 commits intomainfrom
Open
[PM-33866] Revocation Reasons: DDL Edition#7432sven-bitwarden wants to merge 14 commits intomainfrom
sven-bitwarden wants to merge 14 commits intomainfrom
Conversation
Contributor
|
New Issues (3)Checkmarx found the following issues in this Pull Request
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7432 +/- ##
==========================================
+ Coverage 58.49% 63.20% +4.71%
==========================================
Files 2066 2069 +3
Lines 91141 91203 +62
Branches 8111 8122 +11
==========================================
+ Hits 53309 57643 +4334
+ Misses 35924 31562 -4362
- Partials 1908 1998 +90 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mkincaid-bw
requested changes
Apr 13, 2026
|
mkincaid-bw
approved these changes
Apr 14, 2026
jrmccannon
approved these changes
Apr 15, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.






🎟️ Tracking
PM-33866
📔 Objective
We're interested in tracking why a user is revoked, in order to enhance UX and unlock the capability to automate restoration of users.
This PR adds RevocationReason with an initial list of reasons based on existing flows and applicable policies, and then executes the painful task of adding the column everywhere.
Notable Modifications
Restoration and revocation are now implemented by a pair of sprocs that handle it in bulk. The difference between the single and bulk path is negligible, so we're condensing the needed scripts down.
The old sprocs are now being 🗑️ 'd.
Testing
I have ran the migration on MSSQL and the other 4 databases (MySql, Sqlite, Postgres, MariaDB) with EF using our migrate DB script. I then also ran the integration tests, which exercise the new RevocationReason parameter, as well as revoking/restoring through the new sprocs.