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

🐛 Restore PDF splitting functionality to main and bring in subsequent code changes #256

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

laritakr
Copy link
Contributor

@laritakr laritakr commented Jul 5, 2023

Story

Derivative Rodeo refactoring broke PDF splitting.

This pull request fixes PDF splitting, and brings in subsequent changes from the no-rodeo branch to bring main back up to date.

Refs

Expected Behavior Before Changes

PDF splitting was getting ignored.

Expected Behavior After Changes

PDFs split into viewable child works.

Screenshots / Video

Screenshot 2023-07-05 at 3 33 11 PM

Screenshot 2023-07-05 at 3 33 18 PM

Notes

Exceptions are being swallowed somewhere... the errors this bug caused should have been showing up in either worker logs or sentry, but they didn't.

jeremyf and others added 3 commits July 5, 2023 11:50
Without this commit, we don't have insight into the resulting
conditional submission of the file set.
Ref: https://github.com/scientist-softserv/adventist-dl/issues/469
Method `render_ocr_snippets` was causing AbstractController::DoubleRenderError
() during random situations, due to including the IiifPrintHelper in
ApplicationController.

This pull request moves it into a helper module which is injected by the
install generator, which matches how it was done in LV & NNP. See
https://github.com/scientist-softserv/louisville-hyku/blob/b672d2a3213aaee84c082eb8083d8ad70733036b/app/helpers/newspaper_works_helper.rb#L3
Correct some refactoring of code for Derivative Rodeo.

The exceptions from these errors should have been reported somewhere,
but exceptions appear to be getting swallowed. Adding logging also did
not capture the errors.
@laritakr laritakr merged commit 23529a7 into main Jul 5, 2023
@laritakr laritakr deleted the checking-conditional-rodeo branch July 5, 2023 20:15
laritakr pushed a commit to notch8/adventist-dl that referenced this pull request Jul 5, 2023
Ref notch8/iiif_print#256

- Updates IiifPrint to include fixes to Derivative Rodeo refactors.
- Fixes incompatibilities in the custom Adventist PDF splitter.
laritakr pushed a commit to notch8/adventist-dl that referenced this pull request Jul 5, 2023
Ref notch8/iiif_print#256

- Updates IiifPrint to include fixes to Derivative Rodeo refactors.
- Fixes incompatibilities in the custom Adventist PDF splitter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants