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

Making reservations in quick succession bug #154

Open
s-j-cunningham opened this issue Apr 17, 2021 · 0 comments
Open

Making reservations in quick succession bug #154

s-j-cunningham opened this issue Apr 17, 2021 · 0 comments
Labels

Comments

@s-j-cunningham
Copy link
Collaborator

s-j-cunningham commented Apr 17, 2021

When 2 or more reservations are made for the same item & pantry with total quantity > inventory supply, they will both go through because the second request checks inventory quantity before the first request reduces it, which can result in a negative inventory quantity.

Possible solutions

  • frontend disallow subsequent 'one-click reserve' clicks until a response is received from the first.

Note:
This solution should be replicated in the signup and login components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants