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

Management command for cleaning up old data #349

Closed
alexlittle opened this issue Apr 21, 2016 · 1 comment
Closed

Management command for cleaning up old data #349

alexlittle opened this issue Apr 21, 2016 · 1 comment

Comments

@alexlittle
Copy link
Member

alexlittle commented Apr 21, 2016

For example, removing old quizzes and questions. Just need to be cautious about how much is removed, since users may still have and be using quizzes on their phones, even though not currently linked to an active course

@jjoseba
Copy link
Member

jjoseba commented Sep 23, 2016

Rule to find objects to remove:

  • find all the old quizzes: quizzes which digest is not associated with any present activity
  • from these ones, keep the ones that have some QuizAttempt received
  • remove every object linked with this quiz: questions, responses and props

Is there any additional rule I should have in mind to exclude some more quizzes from deletion? With this approach, in my last production DB dump there are 1278 out of 2425 to remove.
Are there any other objects besides the Quizzes that need some kind of clean up?

jjoseba added a commit to chaotic-kingdoms/django-oppia that referenced this issue Sep 26, 2016
jjoseba added a commit to chaotic-kingdoms/django-oppia that referenced this issue Sep 26, 2016
…he user with a summary before attempting the deletion
jjoseba added a commit to chaotic-kingdoms/django-oppia that referenced this issue Sep 26, 2016
@jjoseba jjoseba mentioned this issue Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants