This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
Calendar availability incorrect #1218
Closed
Description
This issue relates to the broken calendar view noted below; the issues with renewals were fixed in the #416 branch.
While writing tests for renewals for #416 I came across a weird bug. The calendar / Reservations doesn't consider the equipment occupied on the due date, and neither does the renewal code. Steps to replicate:
- Create reservation from
Time.zone.today
untilTime.zone.today + 1.day
(for equipment model with a single equipment item) - Check out said reservation
- Create reservation for same equipment model from
Time.zone.today + 2.days
untilTime.zone.today + 3.days
- Visit reservation page of first reservation
- Expected: reservation cannot be renewed
- Actual: reservation can be "renewed" until due date; clicking the link issues a valid renewal request but nothing changes
- Visit the equipment model page
- Expected: equipment has no availability from today until
Time.zone.today + 4.days
in the calendar - Actual: equipment is unavailable today, and for the duration of the upcoming reservation, but is considered available on its due date
- Expected: equipment has no availability from today until
This might be resolved in #462, or it might not 😛.
Activity