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

Updates to existing requests #71

Open
achilleas-k opened this issue Nov 25, 2020 · 0 comments
Open

Updates to existing requests #71

achilleas-k opened this issue Nov 25, 2020 · 0 comments

Comments

@achilleas-k
Copy link
Member

The service should keep a record of open requests and block the user from resubmitting a request from the same repository while a request is still open unless the source repository has changed. The record should be a database (or a flat file) with the following information:

  • Repository ID
  • Reserved/assigned DOI
  • Commit hash

When a new request comes in, the workflow would then be:

  • Check if the repository ID is already in the file.
    • If it's not, it's a new request and the request continues normally.
  • If the repository ID is in the file and the commit hash is the same, inform the user that the request is still pending and don't start a new registration.
  • If the commit hash is different, update the existing request with the new data and inform the user that their request has been updated without changing the reserved DOI.
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

1 participant