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

Update interest period treshold with drupal #772

Merged

Conversation

Adamik10
Copy link
Contributor

@Adamik10 Adamik10 commented Dec 11, 2023

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

@JacobArrow JacobArrow self-requested a review December 12, 2023 09:05
Copy link
Contributor

@JacobArrow JacobArrow left a 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()

@Adamik10 Adamik10 merged commit 0613f19 into release/2023-50-0 Dec 12, 2023
16 checks passed
@Adamik10 Adamik10 deleted the update-interest-period-treshold-with-drupal branch December 12, 2023 10:05
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.

4 participants