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

Automatically remove/flag up old resolved incidents #17

Open
danny-lloyd opened this issue Oct 8, 2024 · 0 comments
Open

Automatically remove/flag up old resolved incidents #17

danny-lloyd opened this issue Oct 8, 2024 · 0 comments

Comments

@danny-lloyd
Copy link
Contributor

Incidents should be removed after being marked as resolved for 5-7 days (enough time for people to take note that they're resolved).

Add an AfterValidator function to the Pydantic model that checks an incident's most recent update's date is not 7 days old or more and the incident is marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant