Mount wizzard doesn't update availabilities
Summary
Currently the mount wizzard has a bug that doesn't show devices as non avaiable in the search. For what I tested it happens only when I mount two devices for the very same configuration - without opening another mask in the meantime.
Steps to reproduce
General:
- empty db
- login on the sms
- create device 1
- create device 2
- create configuration 1
Now more detail for the mount wizzard
- open the configuration 1
- switch to the platforms & devices tab
- open the mount wizzard
- select a start date like
2023-01-13 07:30
& continue - select the configuration as parent platform & continue
- search for all devices
- select device 1 & confirm the selection
- click on continue on the mount info step
- click on submit
- open the mount wizzard dialog directly again
- take the very same start date
- take the very same parent platform
- click on the search for devices
What is the current bug behavior?
Both devices are shown as avialable - while the payload from the backend clearly shows device 1 as non avaiable:
[
{
"id": "1",
"available": false,
"mount": "1",
"configuration": "1",
"begin_date": "2023-01-13T07:30:00+00:00",
"end_date": null
},
{
"id": "2",
"available": true
}
]
Selecting device 1 allows us to go up to the submit button & let us click it. However, the backend catches it - and returns an 409 error.
What is the expected correct behavior?
The frontend should update the availability, so that I'm not able to select the device 1.
Some logs and/or screenshots
Possible fixes
No idea yet.
ToDo's
-
Bug reproduced -
Cause found -
Bug fixed