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

Add ability to immediately purge a deleted form #739

Closed
matthew-white opened this issue Jan 22, 2023 · 1 comment
Closed

Add ability to immediately purge a deleted form #739

matthew-white opened this issue Jan 22, 2023 · 1 comment
Labels
enhancement New feature or behavior

Comments

@matthew-white
Copy link
Member

When a form is deleted, it remains in the trash for 30 days, then is purged. It would be nice to be able to immediately purge a form that is in the trash. How about we add an endpoint for this?

One question I have is whether the endpoint should complete the purging itself or whether it should queue the purging to be completed as soon as possible by a worker. Maybe it depends on how long purging takes? nginx will time out a request after 2 minutes, so if purging a form can take longer than 2 minutes, I think we should make the purging happen asynchronously (to be completed by a worker). If purging always takes less than 2 minutes, then I think the endpoint could do the purging itself.

@matthew-white
Copy link
Member Author

Closing this after discussion with @lognaturel. The current thinking is that we should document the CLI script for purging, but that we don't otherwise want to make immediate purging too easy. See getodk/docs#1868 about documenting the CLI script.

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

No branches or pull requests

1 participant