Let users search for feasible reservations
We've decided to start letting users "search" for reservations that fit their needs. The first step will be to:
- Given a cluster, node type, node count, and duration (in hours or days):
- Let them ask "when is the first time this will fit"
This will be on the 'request a reservation' page: ie. there will be concrete start and end times by the time they actually submit the reservation request. For now, we will require them to specify everything in part 1; after some experience, we may decide to allow them to search on other parameters too.
Everything needed to do this should already be supported in the backend.
The second step is:
- Given an existing reservation that no longer fits;
- "slide it later" until it does
Again, this should work as a 'search', filling in the boxes with new times, which will then still needs to be approved. This is likely to get used by administrators when they approve reservations that may have, in the meantime, become infeasible due to new swapins, extensions, etc. This is probably supportable given the current backend: we just 'reverse engineer' the duration given the current start and end times, then run the same search as above.