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

Create process for clearing out old Submission records #54

Open
ssciolla opened this issue Mar 22, 2021 · 0 comments
Open

Create process for clearing out old Submission records #54

ssciolla opened this issue Mar 22, 2021 · 0 comments
Labels
config change Issue or change involve modifications to a configuration file database enhancement New feature or request

Comments

@ssciolla
Copy link
Contributor

As of now, there is no formalized approach for clearing out old submission from the MySQL database. Data probably only needs to be kept for the current and most recent term. We should create some transparent process that allows us to do this consistently without custom SQL queries. This could probably take the form of a management command and a conditional controlled by an environment variable in start.sh. The management command (or the underlying process it uses) could have a default, accept arguments, or be controlled by configuration, and would likely use the Django ORM to filter by Submission.graded_timestamp and then bulk_delete.

@ssciolla ssciolla added enhancement New feature or request database config change Issue or change involve modifications to a configuration file labels Mar 22, 2021
@ssciolla ssciolla self-assigned this Mar 22, 2021
@ssciolla ssciolla removed their assignment Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config change Issue or change involve modifications to a configuration file database enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant