Closed agopu closed 5 years ago
How do we keep track of data that has been deleted?
Flag in the DB with a deleted=true
boolean or perhaps move to a separate table(s) with a _deleted
suffix?
If the exam is deleted, there is nowhere to fag that it was deleted... I could create a new collection with the same model used for the exams collection, but we only use it for deleted exams.
Users can delete an exam from the Exam's view; A comment must be entered, explaining why the data will be deleted. All deleted exams are copied in the DB, from the Exam
collection into the Deletedexams
collection, with a deletion timestamp and comment.
See https://github.com/IUSCA/rady-ops/issues/22 for screenshot.
I still can't figure out how to refresh the Exam's page to reflect the deletion of data
Deleted exams still show up in exam view, and an info button shows details about the deletion:
See https://github.com/IUSCA/rady-ops/issues/22 for screenshot.
This is excellent!
Remaining issues/questions to address:
Do we want deleted exams to appear at the bottom, or should they appear according to the exam timestamp?
I'd suggest leaving it in the normal order.
Exam deletions are now reflected in the detail view and in the sidebar without having to refresh the page manually. I also tested that reingestion of deleted exam data still properly registers.
I've pushed the exam deletion feature into the develop branch and it will be included in the next production release. Nice work on this @aiavenak
Similar to how we allow template level deletion, except we will only allow this at the exam (
SOPStudyInstanceID
) level.