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

Multiple loans on same item-patron #3754

Open
PascalRepond opened this issue Sep 20, 2024 · 0 comments
Open

Multiple loans on same item-patron #3754

PascalRepond opened this issue Sep 20, 2024 · 0 comments
Labels
bug Breaks something but is not blocking f: circulation Concerns the circulation interface or backend UX User experience, ergonomy

Comments

@PascalRepond
Copy link
Contributor

Bug description:

Sometimes two loans are created on the same item-patron combination. This should never happen as it may cause problems in the circulation and stats. This seems to happen when performing the same circulation operation in very quick succession, e.g. double-clicking on the checkout button. The HTTP request for the checkout is sent to the server twice without giving it time to index the resources, which causes conflicts and errors.

Expected behavior:

It should not be possible to send the same circulation request multiple times in quick succession.

Maybe use Angular to limit the number of request sent to 1 second (?).

Steps to Reproduce:

  1. Go to the pro UI in a patron profile (checkout interface)
  2. Checkout an item: enter the barcode and click on the magnifier multiple times ! To simulate a double scan.
  3. See errors
  4. Check https://ils.test.rero.ch/api/loans/?q=state:CREATED and see that some loans have now the status "created" when they shouldn't.

Context

image

@PascalRepond PascalRepond added f: circulation Concerns the circulation interface or backend bug Breaks something but is not blocking labels Sep 20, 2024
@PascalRepond PascalRepond added the UX User experience, ergonomy label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something but is not blocking f: circulation Concerns the circulation interface or backend UX User experience, ergonomy
Projects
Status: Product Backlog
Development

No branches or pull requests

1 participant