and-murray / wharf-spaces

MIT License
1 stars 0 forks source link

Car park: Users can only make 2 bookings per week #48

Open tomdownes14 opened 10 months ago

tomdownes14 commented 10 months ago

In GitLab by @christopher.batin on Nov 15, 2023, 14:32

Background

Car park rule: users are only allowed to make a maximum of 2 bookings per week. No restriction on desk bookings. At the moment, the app allows users to book more than 2 bookings a week but this new rule has been shared to the clubhouse so they are aware. This ticket is a future implementation.

 

User Story

+As+ a user of the Murray Spaces app

+I want+ all users to only be able to make a maximum of 2 bookings per week (Mon-Fri)

+So that+ the booking process is more fair and prevents anyone from making block booking

 

Acceptance Criteria

+Given+ a user has made 1 booking for the week

+When+ they attempt make a second booking for the same week

+Then+ they should be able to complete this action/ booking

Given a user has made 2 bookings for the week  

When they attempt to make another booking for the same week

Then the action should be blocked as they have made the maximum number of bookings for the week

Given a user has made 2 bookings for one week

When they attempt to make new bookings for another week (as long as it has 0 - 1 confirmed bookings)

Then they should be able to complete this action as they have not exceeded the 2 bookings limit for the week

Tech Implementations/ Questions:

edwinsimpson commented 5 months ago

Is this still a necessary rule?