ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
179 stars 110 forks source link

Soft and hard delete for OPTs #919

Closed ppazos closed 6 years ago

ppazos commented 6 years ago

REF: #871

  1. Add OPT delete with confirm
  2. Will mark OPT as deleted on the DB and move the OPT file to a deleted folder
  3. Should reindex OPTs, deleting AIIs for that OPT
  4. Add trash tab where deleted OPTs can be listed and shown
  5. OPT Trash can be emptied, that will physically delete the OPT from the DB and the file from disk, need to ask for confirmation
  6. On any action, activity log should be created
  7. Lists should show only non-deleted OPTs, query filter should be updated
ppazos commented 6 years ago

Soft delete TODOs:

  1. create deleted folder for OPTs insidde each org when the orgs OPT repo is created
  2. move the OPT file to the deleted folder
  3. reindex when a delete happens
ppazos commented 6 years ago

TODO: on prod we need to create the opt deleted folder for each organization