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

implement sophisticated bookings collision detection #25

Open
1 task
txwkx opened this issue May 23, 2017 · 0 comments
Open
1 task

implement sophisticated bookings collision detection #25

txwkx opened this issue May 23, 2017 · 0 comments

Comments

@txwkx
Copy link
Owner

txwkx commented May 23, 2017

bookings collection consists of objects of type:

{
   roomId: ObjectId
   date: ISODate
   timeslots []: array of Strings
}

The startTime and endTime arrays are filtered versions of INTERVALS:

axios.get(`http://localhost:8008/api/bookings/${room}/${date}`)
        .then(res => {
          const bookings = res.data[0].timeslots;
          if(bookings) {
             INTERVALS = INTERVALS.filter(el => bookings.indexOf(el) < 0);
          }
        });
}

Issue:
Find a solution how to handle overlapping booking time slots.
Select a meeting from 8:30 to 11:00 while 9:00 - 10:30 is booked.

  • Update the timeslots array per day once a new meeting is created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant