Skip to content

feat(api): keep a declined invitation's metadata, filter invitations by several statuses and expand their inviter - #3069

Closed
vitorbari wants to merge 5 commits into
2853-invitation-redeemfrom
2853-invitation-list-backend
Closed

vitorbari wants to merge 5 commits into
2853-invitation-redeemfrom
2853-invitation-list-backend

Conversation

@vitorbari

@vitorbari vitorbari commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #3025, stacked on it.

  • rejected_at on every invitation (migration, CHECK on Postgres and Spanner); a decline keeps metadata, accept still clears it.
  • Cancel also deletes a declined invitation.
  • listInvitations takes status more than once and matches any of them, like the events list's filters.
  • expand=inviter adds the creator as a user reference, resolved once per page. It needs no permission beyond listing, like the user on a grant.
  • ADR 086 amendment, docs page, changeset invitations-list-filters.md.
  • From feat(api): look up, accept and decline invitations by link #3025's review: inline comments on EnsureUserGrant, and HTTP tests for grant renewal, concurrent accepts, expired and secret-made invitations.

🤖 Generated with Claude Code

vitorbari and others added 5 commits November 12, 2026 16:34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-made invitations over HTTP

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…=inviter for invitations

Decline keeps metadata and cancel removes a declined invitation, per the
ADR 086 amendment. The list handler answers 501 for several statuses or
expand until the backend lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and filter and expand the invitation list

Declining stamps rejected_at and keeps the metadata; cancel also deletes a
rejected invitation. The list matches any of several statuses and resolves
each creator into inviter on expand=inviter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Nov 13, 2026 9:56am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: 75b73a3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 25 packages
Name Type
@zitadel/server Minor
@zitadel/cli Minor
@zitadel/testing Minor
@zitadel/server-linux-x64 Minor
@zitadel/server-linux-arm64 Minor
@zitadel/server-darwin-x64 Minor
@zitadel/server-darwin-arm64 Minor
@zitadel/server-win32-x64 Minor
@zitadel/api Minor
@zitadel/config Minor
@zitadel/components Minor
@zitadel/sdk-core Minor
@zitadel/sdk-next Minor
@zitadel/sdk-nuxt Minor
@zitadel/sdk-react Minor
@zitadel/sdk-vue Minor
@zitadel/sdk-angular Minor
@zitadel/sdk-solid Minor
@zitadel/sdk-svelte Minor
@zitadel/sdk-qwik Minor
@zitadel/sdk-sveltekit Minor
@zitadel/sdk-solid-start Minor
@zitadel/sdk-qwik-router Minor
@zitadel/sdk-tanstack-start Minor
@zitadel/cloud Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vitorbari

Copy link
Copy Markdown
Contributor Author

Superseded by #3072 and #3073.

@vitorbari vitorbari closed this Nov 13, 2026
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Nov 13, 2026

This branch was successfully deployed

1 active deployment
Preview — 75b73a3e Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant