Skip to content

[bug] Unable to delete offline device #949

@pandafy

Description

@pandafy

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

  1. Navigate to the Devices section.
  2. Select a device that is no longer connected to OpenWISP.
  3. Attempt to delete the device.

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:

  1. Delete the configuration of the device
  2. Deactivate the device
  3. After deactivating, delete button would be visible on the device page. You can delete the device normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions