1. Adam Ahmed
  2. meat
  3. Issues
Issue #15 resolved

The minimum booking length cannot be used if it isn't exactly reachable from the default length

Donald Sarratt
created an issue

When setting booking lengths to the following:

  • minBookableMinutes: 5
  • defaultBookingMinutes: 30
  • bookingIntervalMinutes: 15
  • maxBookableMinutes : 65

The minimum booking time cannot be reached - the HTML page will not let you decrease below 15 minutes. You can have 45, 30 or 15 minutes, but you cannot go lower than 15 despite 5 being defined as the minimum.

The maximum time is always reachable - in this example the progression goes 30 -> 45 -> 60 -> 65.

Comments (4)

  1. Adam Ahmed staff repo owner

    The minBookableMinutes still applies when you have one meeting that ends at 10:30 and the next one starts at 10:40. In that case MEAT will let you book that 10 minute interval. If minBookableMinutes were 15, it wouldn't.

    I suppose it also makes sense to let the booking UI book just 5 minutes. How would you expect this to work?

    It starts at 30, and you press -, to drop it to 15. You press - again, it drops to 5. You press + and it goes back to 15? Or does it go to 20 since the interval is 15? I tend to like the former.

    Did you have another idea of how this would work?

    Cheers and thanks for the report!

  2. Donald Sarratt reporter

    Hey Adam, I really appreciate the quick response! I agree with your idea - going from 15 down to 5, then back up to 15 is consistent with the way maxBookableMinutes is handled (where it goes up from 60 to 65, then back down to 60, then down to 45). So when you go back up you're still on even multiples of the bookingInterval, and avoid getting into that situation where you go from 15 down to 5, then up to 20, 35, 50 and all sorts of odd values.

  3. Log in to comment