Draft
Conversation
d617dba to
cb796df
Compare
Add a new invite_links table, a gql query and two mutations (createInviteLink, redeemInviteLink)
Delete consumed rows instead of decrementing a counter Add deleteInviteLink mutation for admin revocation Add cursor-based pagination to inviteLinks query Add reusable nested filter pattern (InviteLinksFilter + BoolFilter) Dual-write triggers for backward compatibility with directives
cb796df to
ac9b544
Compare
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.
Adds
createInviteLinkandredeemInviteLinkGraphQL mutations as the first step in migrating invite links from the directive system to GraphQL. This runs parallel to the existing directive-based flow.Changes:
invite_linkstable with RLS policy restricting management to prefix adminscreateInviteLinkmutation — admin creates an invite for a catalog prefix with a given capability, optional use limit, and descriptionredeemInviteLinkmutation — authenticated user redeems a token to receive auser_grant, with optional sub-prefix narrowing. Atomically decrementsuses_remainingand distinguishes "not found" from "exhausted" errorsContext: Phase 1 of the SSO & user management initiative (invite link migration → SSO enforcement → SCIM deprovisioning).
Workflow steps:
(How does one use this feature, and how has it changed)
Documentation links affected:
(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)
Notes for reviewers:
(anything that might help someone review this PR)