Skip to content

PM-4928 Filter only Inactive status in identity db#37

Merged
himaniraghav3 merged 1 commit into
developfrom
PM-4928
Apr 28, 2026
Merged

PM-4928 Filter only Inactive status in identity db#37
himaniraghav3 merged 1 commit into
developfrom
PM-4928

Conversation

@himaniraghav3
Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Collaborator

@vas3a vas3a left a comment

Choose a reason for hiding this comment

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

looks good to me 👍

Copy link
Copy Markdown
Contributor

@jmgasper jmgasper left a comment

Choose a reason for hiding this comment

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

@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.

@himaniraghav3 himaniraghav3 merged commit 8ab20dc into develop Apr 28, 2026
5 of 6 checks passed
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