-
Notifications
You must be signed in to change notification settings - Fork 0
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
Search then paginate does not work #357
Comments
This is a weird one. This only seems to be happening on staging, and with the specific word "floor". I randomly searched for other words like 'index' and 'cat' and am able to paginate just fine. No errors are being reported to sentry. Searching for the word floor in prod is fine. So far I haven't been able to reproduce this locally. |
Sentry error: https://scientist-inc.sentry.io/issues/4278561363/events/30c0aee28b9547f9bc7dc97692617a0e/ The problem is apparently due to a work with 5 snippets attempting to render on the catalog page (it was on page 2, so that's why pagination triggered the issue). However, there seems to be more to it than just this, because so far I have been unable to duplicate the problem locally. There were two works on staging that had this problem. IDs are c11b7e48-cf2a-4254-ac4e-3a2f4e895646 and 2d29f952-d0d5-4781-8680-f5607e61f685, both GenericWork objects. The file that caused the error is this one: |
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
Ref #469 & notch8/iiif_print#254 Update IiifPrint to use a branch that: - does not include derivative rodeo, which broke PDF splitting - moves render_ocr_snippets method to an appropriate helpers Remove definition from application controller. Add iiif_print_helper to pull in behavior.
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
Ref #469 & notch8/iiif_print#254 * Update IiifPrint to use a branch that: - does not include derivative rodeo, which broke PDF splitting - moves render_ocr_snippets method to an appropriate helpers * Remove render_ocr_snippets definition from application controller. * Add iiif_print_helper to pull in behavior.
Ref #469 & notch8/iiif_print#254 * Update IiifPrint to use a branch that: - does not include derivative rodeo, which broke PDF splitting - moves render_ocr_snippets method to an appropriate helpers * Remove render_ocr_snippets definition from application controller. * Add iiif_print_helper to pull in behavior.
Ref #469 & notch8/iiif_print#254 * Update IiifPrint to use a branch that: - does not include derivative rodeo, which broke PDF splitting - moves render_ocr_snippets method to an appropriate helpers * Remove render_ocr_snippets definition from application controller. * Add iiif_print_helper to pull in behavior.
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
This passes SoftServ QA: See attached screen recording. tested on:
Search and pagination works for term "floor"Screen.Recording.2023-07-05.at.11.34.48.AM.mp4 |
does not require client QA |
Summary
When you search in the catalog, then try to paginate, it errors out. This seems to happen only after you search for something. If you do an empty search the pagination is fine.
example
Screen.Recording.2023-06-22.at.10.42.06.AM.mov
Accepted Criteria
Testing Instructions
Recreate the search for FLOOR in ADL staging, and paginate to page two. Verify that pagination resolves correctly.
The text was updated successfully, but these errors were encountered: