PM-4928 Filter only Inactive status in identity db#37
Merged
Conversation
jmgasper
approved these changes
Apr 27, 2026
Contributor
jmgasper
left a comment
There was a problem hiding this comment.
@himaniraghav3 - Here's the data in prod from the identity.user table, for the unique statuses:
"A" 1912521
"U" 179802
"4" 82040
"5" 9683
"6" 5085
"I" 1483
"9" 570
"8" 8
"0" 2
I think we're good with what we have. If we hit the handful of users with one of the 9,8,0 statuses, we can handle that manually, but I'm betting those are really old accounts.
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.
Only specific Inactive status will be filtered instead of status!==Active.
The dry run in local:
--- summary ---
identity total records: 860837
identity scanned (status in I,4,5,6): 15887
member total records: 852033
member total active records: 852030
candidate mismatches found: 15763
updated: 0
skipped unknown identity status: 0
skipped already synced/racing: 0
mode: dry-run
Applying it on local updated the mismatches as expected.