The shelves/add method allows selection of a tray size for the shelf, but we are likely going to want to add shelves (probably multiple) without deciding the tray size at the time of add.
If a shelf has a Tray Size assigned, this prevents it from being selected in the shelves/find-available method. For example:
Browse
View Range
View Module
Add Shelf
Enter invalid data:
Shelf Title: valid, e.g. "S01"
Shelf Height: valid, e.g. "17"
Module: (leave as-is)
Tray size: valid, e.g. "D - 17"
Submit
Next Available Shelf
Traysize: "D - 17"
Submit
Expected:
Just added shelf is available to allocate trays
The
shelves/add
method allows selection of a tray size for the shelf, but we are likely going to want to add shelves (probably multiple) without deciding the tray size at the time of add.If a shelf has a Tray Size assigned, this prevents it from being selected in the
shelves/find-available
method. For example:Expected: Just added shelf is available to allocate trays
Actual: Just added shelf is not listed.
https://github.com/ulsdevteam/lcsu/blob/c59adcfab4159701213f24f1fbd55a122b5a1edd/src/Controller/ShelvesController.php#L205