Skip to content

feat: keep expired invitations for a set time #332

Closed

Description

@uniqueg

Expired invitations disappear from the list at once, and the database deletes them about a minute later. People who never accepted then drop out of sight, so nobody knows who needs a nudge.

To do

  • List expired invitations, with a status that tells them apart from open ones, until someone removes them or the retention period ends. Accepted invitations stay out of the default view.
  • Allow DELETE on expired invitations. An expired link still can't be accepted.
  • Add a setting for how many days expired invitations are kept before they're removed automatically: default 30, minimum 0 (removed on expiry), maximum 365. Changing it on a running deployment must take effect without manual database work.
  • Keep the single use guarantee, including under concurrent requests, with tests.
  • This changes or replaces the TTL index on expires_at. Test the upgrade of a running deployment, as MongoDB refuses to create an index with the same key and different options, and describe it in the upgrade notes.
  • Update the API and access control docs.

Activity

  1. added
    priority: medium
    status: triage
    type: feature
    workload: hours
    on Nov 3, 2026
  2. added this to the v1.0.0-rc2 milestone on Nov 3, 2026
  3. changed the title [-]feat: keep expired invitations until removed[/-] [+]feat: keep expired invitations for a set time[/+] on Nov 3, 2026
  4. added
    status: in progress
    and removed
    status: triage
    on Nov 3, 2026
  5. removed
    status: in progress
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: featureworkload: hours

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions