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: allow checkout from never open library #3375

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

PascalRepond
Copy link
Contributor

@PascalRepond PascalRepond commented Jun 15, 2023

  • Fixes infinite loop when checking out an item from library without
    open days but with open exception dates in the past.
  • Add an extended validation to libraries to disallow open exception
    dates without specifying times.
  • Fixes LibraryNeverOpen error not being passed to monitoring.
  • Fixes checkout not possible from library without opening hours.
  • Closes Error if an item from a library without opening hours is checked out #2419.

Why are you opening this PR?

  • Which task/US does it implement?
  • Which issue does it fix?

Dependencies

My PR depends on the following rero-ils-ui's PR(s):

  • rero/rero-ils-ui#

How to test?

  • What command should I have to run to test your PR?
  • What should I test through the UI?

@github-actions github-actions bot added the f: circulation Concerns the circulation interface or backend label Jun 15, 2023
@PascalRepond PascalRepond force-pushed the rep-no-opening branch 6 times, most recently from f80a166 to 2de3530 Compare June 16, 2023 06:46
rero_ils/modules/libraries/api.py Show resolved Hide resolved
rero_ils/modules/libraries/api.py Outdated Show resolved Hide resolved
rero_ils/modules/items/api/circulation.py Outdated Show resolved Hide resolved
rero_ils/modules/loans/utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jma jma left a comment

Choose a reason for hiding this comment

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

Great job!

rero_ils/modules/libraries/api.py Show resolved Hide resolved
@PascalRepond
Copy link
Contributor Author

PascalRepond commented Jun 19, 2023

PO tests

  • REP: Checkout from a never open library still doesn't process. Error message in network indicates a LibraryNeverOpen error although it should be captured.

- Fixes infinite loop when checking out an item from library without
open days but with open exception dates in the past.
- Add an extended validation to libraries to disallow open exception
dates without specifying times.
- Fixes LibraryNeverOpen error not being passed to monitoring.
- Fixes checkout not possible from library without opening hours.
- Closes rero#2419.

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
@PascalRepond PascalRepond merged commit f62801a into rero:staging Jun 20, 2023
@PascalRepond PascalRepond deleted the rep-no-opening branch June 20, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: circulation Concerns the circulation interface or backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error if an item from a library without opening hours is checked out
4 participants