Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make access request notifications expire alongside the access request #42527

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

rudream
Copy link
Contributor

@rudream rudream commented Jun 5, 2024

Purpose

This PR sets the expiry date of access request notifications to be the same as the expiry of the access request itself. This is to prevent the odd UX in the WebUI where clicking a notification for an expired access request will take you to a page with an "access request not found" error.

Also prevents expired notifications from being returned when fetching notifications. This is to handle the cases where a notification has expired but has not yet been deleted by the periodic cleanup.

@rudream rudream added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 labels Jun 5, 2024
@github-actions github-actions bot requested review from codingllama and greedy52 June 5, 2024 23:12
@rudream rudream requested review from avatus and kimlisa and removed request for codingllama and greedy52 June 6, 2024 00:43
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from kimlisa June 6, 2024 14:41
@rudream rudream force-pushed the yassine/notifications/access-request-expiry branch from 2790b6c to d90aa70 Compare June 6, 2024 22:41
@rudream rudream enabled auto-merge June 6, 2024 22:41
@rudream rudream added this pull request to the merge queue Jun 6, 2024
Merged via the queue into master with commit 76187e4 Jun 6, 2024
37 checks passed
@rudream rudream deleted the yassine/notifications/access-request-expiry branch June 6, 2024 23:17
@public-teleport-github-review-bot

@rudream See the table below for backport results.

Branch Result
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants