You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when a DID is deleted, it is archived in the deleted_did table. The metadata stored in the dids are therefore archived, but not the one stored in json. We should have the possibility to choose to archive metadata once a DID is deleted.
The text was updated successfully, but these errors were encountered:
bari12
changed the title
Metadata : Add the possibility to archive metadata for deleted DIDs
Add the possibility to archive metadata for deleted DIDs
May 13, 2022
Just to quickly summarise what @cserf@robbarnsley and I discussed today:
To implement this feature the idea is to add a on_delete trigger to the metadata plugin interface. On the deletion of a did, this trigger is then called for each plugin and the plugin itself decides how to best archive the metadata (Or might not do that at all, if not supported by the plugin)
The difficult part is for the column_metadata plugin the data is already moved to the delete_dids table. However, this is mainly done to block the scope, name pair from being re-used in the future and only as a side-effect it archives the column metadata as well. Thus the case needs to be foreseen that a Rucio instance might not want to archive column metadata, but still block a did from being re-used in the future, so this needs to be foreseen in the code.
@cserf will work on a design suggestion on the interface in the next weeks.
Motivation
Currently when a DID is deleted, it is archived in the
deleted_did
table. The metadata stored in thedids
are therefore archived, but not the one stored in json. We should have the possibility to choose to archive metadata once a DID is deleted.The text was updated successfully, but these errors were encountered: