Unmount dialog stays in some edit mode after unmounting a device
Summary
It seems that our unmount dialog stays in some form open when we unmount devices. It also doesn't update the tree.
Steps to reproduce
- empty db
- create a device
- create a configuration
- mount the device with the mount dialog (I used 2023-01-26 12:01:00 as begin date)
- select this date in the platforms & devices tab
- click on the
-un-mount platform or device
button - select the device
- click on the unmount button
What is the current bug behavior?
While it sends a patch request to the backend (good so far), it seems that it just closes the unmount device form. The unmount page is still active, and the tree is not updated at all. It still shows the very same devices as before the unmount.
What is the expected correct behavior?
It depends a little bit how we want to use this unmount page. If we want to allow it as a fast way to unmount many devices (once an idea by Daniel) it needs to update the tree after the unmount.
If we want it just to unmount one device, it should go to the platforms & devices page (without any kind of edit mode anymore) after sending the device. (And it has to refresh the tree too).
Some logs and/or screenshots
Possible fixes
ToDo's
-
Bug reproduced -
Cause found -
Bug fixed