hepdata icon indicating copy to clipboard operation
hepdata copied to clipboard

records: ensure effects of finalise are reverted after deleting a finalised record

Open alisonrclarke opened this issue 3 years ago • 1 comments

When a finalised record is deleted (via the cli), we need to ensure we clean up the elasticsearch index and the DataCite DOI.

  • [ ] Mark the corresponding metadata as "inactive" in DataCite and update the DOI URL to https://www.hepdata.net/record/invalid_doi.
  • [ ] Update the Elasticsearch index:
    • If the version is > 1, the record should be reindexed so the index reflects the previous version
    • If the version is 1, the record should be removed from the index

The issue on from #139 which focused on the files left on the system after deletion.

alisonrclarke avatar Aug 06 '20 12:08 alisonrclarke