sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 216 forks source link

hub: cleanup data of deleted projects #7667

Open haraldschilly opened 3 months ago

haraldschilly commented 3 months ago

Description

TODO

EXTRA

"modernize" visibility and delete controls (popconfirm, switch) … text and so on are the same.

Screenshot from 2024-07-17 16-38-45

Checklist:

williamstein commented 3 months ago

huge +1! It'll be a good foundation for doing this better in general.

williamstein commented 6 days ago

I'm working on implementing an exam mode for courses. This must involve creating a new project per student for each exam, because it seems it is VERY important to instructors that students don't have access to the exam when the exam is over (and also temporarily don't have access to their own work). This means that the student should be removed from the exam project and their work collected when the exam ends. It would be natural at that point to delete the exam project. However... it would also be VERY good for the instructor to have access to the TimeTravel data from the exam, which means not deleting the exam project... or at least the edit history in the database.

I understand a big point of this PR is to make it so when you delete a project, all TimeTravel edit history also gets permanently purged. I'm just trying to figure out what to do here...

No comment is needed, probably -- I just wanted to write this down.