[PM-22405] - Remove invalid users from invites - #8151
Draft
jrmccannon wants to merge 3 commits into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8151 +/- ##
=======================================
Coverage 63.02% 63.02%
=======================================
Files 2316 2316
Lines 100453 100475 +22
Branches 9037 9038 +1
=======================================
+ Hits 63306 63329 +23
+ Misses 34962 34961 -1
Partials 2185 2185 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
In other words: even if we send the email, the user can't accept the link, because the accept flow can't find them in this state? What about your original "self-healing" logic - wouldn't that address this? |
jrmccannon
force-pushed
the
jmccannon/ac/pm-22405/exclude-log-invalid-users
branch
from
August 6, 2026 15:35
b9589a6 to
fe10237
Compare
eliykat
removed their request for review
August 7, 2026 00:01
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-22405
📔 Objective
As a user goes to bulk resend invites, it attempts to match the Organization Users against the existing users. With those SSO JIT OrgUsers, the null email will cause the database call to fail because it can't map the NULL value to an Email.
In order to unblock current users who are experiencing this issue, we're logging the users with an invalid state and then not attempting to send an invite email to those users. This is because the token generated requires a matching email address to be present on the invited organization user during validation. Since we can't send the email, we'll just drop them.