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

LIBFCREPO-1313. Fix handle creation and updating when publishing. #289

Merged

Conversation

peichman-umd
Copy link
Member

  • renamed get_handle() to find_handle() (to look up by repo URI)
  • added a get_handle() method (to look up by prefix and suffix)
  • raise an error on a 404 response from the handle service (since the "handle not found" condition is relayed via the "exists" key in the response, and not the status code)
  • updated handle assignment logic to look up handles from the metadata in the handle service, and update their target URLs if necessary
  • created documentation flowchart for the handle assignment process
  • added has_handle property to the HandleBearingResource class
  • created plastron-repo tests for publishing

https://umd-dit.atlassian.net/browse/LIBFCREPO-1313

- renamed get_handle() to find_handle() (to look up by repo URI)
- added a get_handle() method (to look up by prefix and suffix)
- raise an error on a 404 response from the handle service (since the "handle not found" condition is relayed via the "exists" key in the response, and not the status code)
- updated handle assignment logic to look up handles from the metadata in the handle service, and update their target URLs if necessary
- created documentation flowchart for the handle assignment process
- added has_handle property to the HandleBearingResource class
- created plastron-repo tests for publishing

https://umd-dit.atlassian.net/browse/LIBFCREPO-1313
- pass the whole PlastronContext into the ImportJob (and related classes) so that it has access to the repo, handle client, and the public URL mapping function
- the "--publish" command line option overrides the values given in the spreadsheet
- created a "PublishableObjectResource" class that combines "PCDMObjectResource" and "PublishableResource"
- added a "publish()" method to the ImportRow class

https://umd-dit.atlassian.net/browse/LIBFCREPO-1313
@peichman-umd peichman-umd merged commit 7a7202c into umd-lib:hotfix/4.1.3 Apr 3, 2024
@peichman-umd peichman-umd deleted the feature/LIBFCREPO-1313 branch April 12, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant