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

Fix embargo expiry job spec #6410

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Fix embargo expiry job spec #6410

merged 2 commits into from
Nov 1, 2023

Conversation

dlpierce
Copy link
Contributor

@dlpierce dlpierce commented Nov 1, 2023

Add valkyrie specs for EmbargoExpiryJob

Marks existing spec as AF only.

Duplicates existing EmbargoExpiryJob specs but with Valkyrie resources.

Spec setup is simplified by not specifying "restricted" visibility, instead expecting the factory
default "authenticated". Additional checks to confirm the initial visibility state are also added.

The embargo traits from the hyrax_work factory are copied to the hyrax_file_set factory.

Saving of the expired embargo ACL is moved to inside the time machine to 10 days ago. Without this
change the solr doc will not contain the embargo related fields, causing
#records_with_expired_embargoes to not find those resources.

bwatson78 and others added 2 commits November 1, 2023 08:55
Marks existing spec as AF only.

Duplicates existing EmbargoExpiryJob specs but with Valkyrie resources.

Spec setup is simplified by not specifying "restricted" visibility, instead expecting the factory
default "authenticated". Additional checks to confirm the initial visibility state are also added.

The embargo traits from the hyrax_work factory are copied to the hyrax_file_set factory.

Saving of the expired embargo ACL is moved to inside the time machine to 10 days ago. Without this
change the solr doc will not contain the embargo related fields, causing
`#records_with_expired_embargoes` to not find those resources.
@dlpierce dlpierce added notes-valkyrie Release Notes: Valkyrie specific notes-tests Release Notes: Spec or CI changes labels Nov 1, 2023
Copy link
Contributor

@bwatson78 bwatson78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dlpierce Thank you for finding the fix!

@dlpierce dlpierce merged commit 357b5e7 into main Nov 1, 2023
4 checks passed
@dlpierce dlpierce deleted the fix_embargo_expiry_job_spec branch November 1, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-tests Release Notes: Spec or CI changes notes-valkyrie Release Notes: Valkyrie specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants