Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'soft' deletes for OAI-PMH #26

Open
netsensei opened this issue Dec 12, 2017 · 0 comments
Open

Add 'soft' deletes for OAI-PMH #26

netsensei opened this issue Dec 12, 2017 · 0 comments

Comments

@netsensei
Copy link
Contributor

OAI-PMH models the concept of deleted records. These are records that are no longer available in the repository, but are still listed in the endpoint. When a client harvests a record which is denoted as "deleted", it can take an appropriate action based on this status.

Currently, the Datahub does not support this. Using DELETE on a record, will perform a hard removal of the resource without any trace.

This issue involves:

  • Research if SoftDeletable is a good starting point to do the heavy lifting at the database facing side.
  • The REST controller should still return a 404 when requesting a soft deleted entity.
  • The OAI-PMH controller needs to include records which were soft deleted, expressed according to the OAI-PHM model (use proper XML elements)

Tangential, this means that:

  • All existing tests should still remain green.
  • Add functional tests for OAI-PMH deletes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants