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

I387 set is child default value #411

Merged
merged 2 commits into from
May 12, 2023
Merged

Conversation

ShanaLMoore
Copy link
Contributor

@ShanaLMoore ShanaLMoore commented May 12, 2023

Story

iiif_print ref: scientist-softserv/iiif_print#237
Refs #387

Story

This PR is to address the feedback from the following ticket. The user was still able to see the child works in the recent works catalog and recent works section, while they were processing. This is because they weren't getting filtered out until the relationship job are formed, and the is_child property was set.

To resolve this, we are setting the child work is_child attribute to be true on default in iiif_print. So this PR updates the gem to pull in the fix.

Refs #387

Expected Behavior Before Changes

ref: #387 (comment)

Screenshot 2023-05-11 at 17-07-15 Index Catalog __ Hyku
Screenshot 2023-05-11 at 17-07-04 Hyku

Expected Behavior After Changes

As a result, you cannot see the child records while it's still processing. The user should and does not see child works in the following scenarios:

EMPTY CATALOG SEARCH :

image

RECENT WORKS SECTION:

image

VIEW RECENT ADDITIONS CATALOG PG:

image

Sidekiq

Notice is_child property is being set to true in the CreateWorkJob:

image

sample work: service-rbc-rbc0001-2015-2015gen56010-2015gen56010.pdf

Notes

Set default value of is_child to true.
…tead

we set the is_child property to true in the iiif_print gem.
@kirkkwang
Copy link
Contributor

Nice, that looks good!

@ShanaLMoore ShanaLMoore merged commit 40788c9 into main May 12, 2023
@kirkkwang kirkkwang deleted the i387-set-is-child-default-value branch May 12, 2023 02:18
laritakr added a commit that referenced this pull request May 17, 2023
- This did not do what was needed because the config is not used in
recent works searches, and the solr field would have needed to be
set for it to do anything anyway. This repo does not use the default.
- Desired feature was implemented by
#411
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.

2 participants