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 conditional to .fileset_for_directives #6695

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

kirkkwang
Copy link
Contributor

Summary

Present tense short summary (50 characters or less)

We are noticing that when ingesting a PDF, the ValkyrieCreateDerivativesJob is failing because the file_set doesn't get found in ValkyriePersistDerivatives.fileset_for_directives when the directives[:url] is an id instead of an actual uri, see FileSetDerivativesService#extract_full_text. I'm suggesting that we check if we have a "/" and if not we assume that it is an id so we can just look for that.

Guidance for testing, such as acceptance criteria or new user interface behaviors:

The testing was done on the double_combo branch on Hyku but figured we'd need it in main as well.

Upload a PDF, observe that it the ValkyrieCreateDerivativesJob fails.

Type of change (for release notes)

Add an appropriate notes-* label to the PR (or indicate here) that classifies this change.

Choose from:

  • notes-bugfix Bug Fixes

Detailed Description

Changes proposed in this pull request:

  • check if the url is a url, by the presence of "/" if it isn't then we're assuming it's the UUID already.

@samvera/hyrax-code-reviewers

We are noticing that when ingesting a PDF, the
`ValkyrieCreateDerivativesJob` is failing because the file_set doesn't
get found in `ValkyriePersistDerivatives.fileset_for_directives` when
the directives[:url] is an id instead of an actual uri, see
`FileSetDerivativesService#extract_full_text`.  I'm suggesting that we
check if we have a "/" and if not we assume that it is an id so we can
just look for that.
@kirkkwang kirkkwang force-pushed the ensure-extract-full-text-does-not-fail branch from 5890a71 to b601b27 Compare February 14, 2024 22:36
@jeremyf jeremyf merged commit d8b0b62 into main Feb 19, 2024
6 checks passed
@jeremyf jeremyf deleted the ensure-extract-full-text-does-not-fail branch February 19, 2024 13:46
jeremyf added a commit that referenced this pull request Feb 19, 2024
* main:
  🐛 Create admin set of configured type (#6701)
  Add conditional to `.fileset_for_directives` (#6695)
  ♻️ Extracting naming container (#6694)
@dlpierce dlpierce added the notes-bugfix Release Notes: Fixed a bug label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants