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

circulation: improve library closed dates handling #534

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

zannkukai
Copy link
Contributor

Uses the backend closed dates library API to disallow user to choose a
closed date for a fixed date checkout.

Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com

How to test?

  • Try to execute a fixed date checkout for any patrons.
  • The datepicker field should reflect directly the closed date depending of the current used library.

image

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@zannkukai zannkukai self-assigned this Feb 26, 2021
@zannkukai zannkukai added f: circulation Concerns the circulation interface or backend enhancement Concerns editor based on JSON schema AND custom editor labels Feb 26, 2021
@zannkukai zannkukai added this to the v1.1.0 milestone Feb 26, 2021
@zannkukai zannkukai force-pushed the zan-library-closed-date branch 2 times, most recently from c279727 to 1e9771c Compare February 26, 2021 14:23
@zannkukai zannkukai requested review from Garfield-fr, lauren-d, rerowep and jma and removed request for rerowep February 26, 2021 14:49
@zannkukai zannkukai removed this from the v1.1.0 milestone Feb 26, 2021
Copy link
Contributor

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

Commit message proposition:

circulation: improve library closed dates handling

* Uses the back end closed dates library API to prevent the user to
  choose a closed date for a fixed date checkout.

@iGormilhit iGormilhit changed the title circulation: better management of library closed dates circulation: improve library closed dates handling Mar 1, 2021
@iGormilhit iGormilhit added f: professional ui Professional interface UX User experience, ergonomy labels Mar 1, 2021
@iGormilhit iGormilhit added this to the v1.0.2 milestone Mar 1, 2021
* Uses the back end closed dates library API to prevent the user to
  choose a closed date for a fixed date checkout.

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai merged commit 43e2827 into rero:dev Mar 10, 2021
@zannkukai zannkukai deleted the zan-library-closed-date branch March 10, 2021 10:15
Comment on lines +47 to +48
map((data: any) => data.closed_dates),
map((dates: [string]) => dates.map(dateStr => moment(dateStr)))

Choose a reason for hiding this comment

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

This can be done in one statement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Concerns editor based on JSON schema AND custom editor f: circulation Concerns the circulation interface or backend f: professional ui Professional interface UX User experience, ergonomy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants