Still can create schedule reservation on the resource in the past time
Closed this issue · 0 comments
Schedule shouldn't be allowed to created in the past time.
When I tried to test creating the schedule in the past time ( for example now is 2:30pm on 23rd Feb 2021), the past time schedule created was from 9:30am to 12:00pm, and the schedule still be allowed to create.
We should not allow users to create the reservation schedule in the past time and only allow users to create the reservation schedule in the future time.
Your environment
List relevant info:
- OS distribution, version" Ubuntu 18.04
- TensorHive and API version: Tensorhive version 0.3.6
Steps to reproduce
Go to the reservation Overview page, select available GPU resource and create the schedule for these resources some time in the past-time ( history time). The schedule is accepted and appear in schedule calendar.
commands to execute
You can also put a bunch of screenshots, GIF or Asciinema recording
Expected behaviour
Expected behavior: We should not allow user to create reservation schedule in historical time ( past-time). Only allow user to create the reservation schedule in future time.