You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: keep expired invitations for a set time #332
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.
Activity
[-]feat: keep expired invitations until removed[/-][+]feat: keep expired invitations for a set time[/+]