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

5844-set-embargo-date-as-datetime #6117

Merged
merged 9 commits into from
Jul 26, 2023
Merged

Conversation

alishaevn
Copy link
Contributor

@alishaevn alishaevn commented Jul 24, 2023

Fixes

Summary

save the embargo_release_date property as a DateTime instead of String. this way it will match the data type of the same value on dassie embargoes.

demo

image

Detailed Description

when creating a new work with an embargo, params['<work-type>']['embargo_release_date'] is a YYYY-MM-DD string in both dassie and koppie. so somewhere down the line we must be converting it to a DateTime in dassie.
I started going deep into the stack trace then decided to come back and just see if I could update the attribute from a string to date time before we save the embargo

@samvera/hyrax-code-reviewers

…ing. this way it will match the data type of the same value on dassie embargoes
@alishaevn alishaevn added notes-valkyrie Release Notes: Valkyrie specific notes-bugfix Release Notes: Fixed a bug labels Jul 24, 2023
@alishaevn alishaevn force-pushed the 5844-set-embargo-date-as-datetime branch from d48eb4d to 6f82927 Compare July 25, 2023 20:57
…_date`.

idk if this will actually change anything, but some of the flaky specs in "spec/controllers/hyrax/dashboard/collections_controller_with_resource_spec.rb" are complaining about `to_datetime` not existing for some reason.
@alishaevn alishaevn marked this pull request as ready for review July 26, 2023 14:20
@alishaevn alishaevn merged commit cbdc319 into main Jul 26, 2023
@alishaevn alishaevn deleted the 5844-set-embargo-date-as-datetime branch July 26, 2023 14:28
@alishaevn alishaevn linked an issue Aug 7, 2023 that may be closed by this pull request
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 notes-valkyrie Release Notes: Valkyrie specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot remove embargo from work
2 participants