Repository navigation
Clerk status: report a pending Clerk invitation the row does not store (#2183 follow-up) - #2359
Merged
Merged
Conversation
#2183 follow-up) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UJjrZJZUPYn8UwEZvT6npZ
Contributor
Author
|
Parked: not mergeable until API shards 1 and 3 fail, as on #2352, #2353, #2354 and #2364. The cause is the two tests that re-run migration 347's backfill ( Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch had an error being deployed
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.
Related to #2183.
Problem
After "An invitation or account already exists for this email", Clerk Invitation still read None when Clerk held a pending invitation the member row had not stored (and the existing-account lookup hid it).
Change
GET /members/:id/clerk-statusnow, for an unlinked member with no storedinvitation_id, also looks up Clerk's pending invitations by email, independently of whether an account exists. If one is found it reportshas_pending_invitation: true/status: 'invited'and stores the invitation id (System) so it is stable.account_existsis unchanged.Decisions taken
Tests
Regression tests added in
member-invite-conflict.test.ts. Not run locally (dependencies/MySQL unavailable in this session); CI will run them.Generated by Claude Code