-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update interest period treshold with drupal #772
Update interest period treshold with drupal #772
Conversation
These have never been configured for availability labels on the work and search result page.
Refer to this PR for the JSON data structure: danskernesdigitalebibliotek/dpl-cms#475
This affected the UserListItems component, NoInterestAfterModal, and the helper in the reservation directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm gonna approve this, but I really think you should rethink the implementation of the interestPeriods
object. It seems like don't really need the whole object anywhere and are using either defaultInterestPeriod
or interestPeriods
, and are therefore making unnecessary property accessors.
I know its a minor thing, but interestPeriod.interestPeriods.find()
is just not very pretty.
If you just want this out in a hurry, then doing something like this, will be the quick (but not perfect) solution: periods.interestPeriods.find()
Link to issue
https://reload.atlassian.net/browse/DDFLSBP-150
Description
This PR updates the usage of the "interest period" after which a loaner is no longer interested in a material when reserving it. There were some updates in the backend to the structure of the data we use, so here we update the frontend part.
We also add new wiremock stubs for the material page (so that it doesn't crash when running it locally).
Screenshot of the result
n/a
Additional comments or questions
n/a