-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Unable to delete offline device #949
Comments
Possible solution
|
hey @pandafy, i have a doubt "how exactly we will know that device is disconnected ?" or " how do we know that this specific device cannot update it's Do we need to send a basic command to the device, if it fail to execute that command then we consider that device as disconnected ? |
No, we only need to provide a way to override the current flow for device deletion. Current flow:
Problem: |
i got it @pandafy, Anyone want to work on this please go ahead. i am not working on this. |
@akhilsharmaa stop the VM before deactivating the device. |
@pandafy, i tried deactivating the vm after stopping the vm. but still i can delete that device. please this screen-rec : in the video, you can see that vm is connected to the openwisp-cotroller (reboot command is working). then follow the steps. in the end you can see that i can deactivate the device. am i missing something ? Screencast.from.2024-12-16.19-26-06.webm |
You need to keep the VM powered off. The problem arises when the devices are no longer used (i.e. disconnected from the network). When you reboot the VM, OpenWrt downloads the latest configuration from OpenWISP and the configuration status is flagged as deactivated. I would recommend you to take up another issue (look for "good first issue" label). A solution for this issue would likely require some brainstorming before implementing. |
Yes, i'm leaving this issue. ; ( |
Hey @pandafy, I've replicated the bug and enabled the delete button to show when the However, I’m unsure about the best way to add the following warning text, which should appear after clicking the delete button:
Should I:
Additionally, some guidance on how to edit this warning message would be really helpful. Current Flow:Screencast.from.2025-01-01.20-01-35.webm |
Describe the bug
Devices that are no longer connected to OpenWISP cannot be deleted.
This issue occurs because, in #840, we introduced a check requiring a device's config status to be set to
deactivated
before allowing deletion. However, this prevents users from deleting disconnected devices that cannot update their config status.Steps To Reproduce
Expected behavior
It should be possible to delete the device
Workaround for users affected by this bug
Use the following steps to delete the device:
The text was updated successfully, but these errors were encountered: