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

Use cocina structural diff to determine files to send to purl-fetcher #4982

Closed
justinlittman opened this issue May 10, 2024 · 1 comment · Fixed by #4991
Closed

Use cocina structural diff to determine files to send to purl-fetcher #4982

justinlittman opened this issue May 10, 2024 · 1 comment · Fixed by #4991
Assignees

Comments

@justinlittman
Copy link
Contributor

Currently, the files to send to purl-fetcher are determined based on the existing content diffing strategy: https://github.com/sul-dlss/dor-services-app/blob/main/app/services/shelving_service.rb#L50

For this ticket, implement a new strategy that compares the current cocina structural against the cocina structural retrieved from purl (https://purl.stanford.edu/.json). For any file which is (1) shelved and (2) not in purl cocina or in purl cocina but has different checksums, send to purl-fetcher.

@justinlittman
Copy link
Contributor Author

Note that this is only for shelving via purl-fetcher. Shelving via file copy (DigitalStacksService) should remain the same.

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 a pull request may close this issue.

1 participant