hepdata
hepdata copied to clipboard
records: ensure effects of finalise are reverted after deleting a finalised record
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.