-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
user storyUser storyUser story
Description
As a developer,
I want to implement a locking mechanism for products added to the basket
so that once a product with limited stock is added to a basket, other users cannot add it, and it will be released if not purchased within a set time.
Objective
To ensure that products with limited stock cannot be added to multiple baskets simultaneously. Once a product is in a user's basket, it should be locked and unavailable to others until purchased or after a set timeout period.
Acceptance Criteria
- When a product with limited stock is added to a basket, it is locked and unavailable to other users.
- The lock is released if the product is not purchased within a specified time (e.g., 30 minutes).
- The basket is automatically cleared after the timeout expires.
- Users are notified if the product they try to add is locked by another user.
- The product is available again for others if it is not purchased after the timeout period.
Metadata
Metadata
Assignees
Labels
user storyUser storyUser story
Projects
Status
Backlog