Skip to content
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
@orenyk

Description

@orenyk

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:

  1. Create reservation from Time.zone.today until Time.zone.today + 1.day (for equipment model with a single equipment item)
  2. Check out said reservation
  3. Create reservation for same equipment model from Time.zone.today + 2.days until Time.zone.today + 3.days
  4. 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
  5. 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

This might be resolved in #462, or it might not 😛.

Screenshots

selection_057

selection_056

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions