No relay deletion endpoint or UI #31
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There is no
DELETE /relays/:idendpoint in the backend router and no delete action in any frontend component. Users who want to clean up test relays, renamed relays, or abandoned relays have no way to do so. Inactive relays accumulate in the database and in the relay list UI indefinitely.I'm not sure about this one. I agree it would be nice to clean up clutter, but I think it's also important to implement soft delete so that we have a record of stuff that's been done in the past. I would have set up inactivate to delete the zooid config file, but we don't keep a copy of the relay secret, so that would require migrating relay secrets on reactivation (and data loss because the database would be deleted).
Let's do this: add an option to delete a relay, but make that a new relay status, instead of something that actually deletes the row. However, on delete, actually delete the zooid config file (and database? I have been thinking about it and I think we probably need to refactor zooid's db layer). Deleted relays can't be un-deleted, and only inactive relays can be deleted.
Marking this as low priority for now, since it’s an enhancement rather than something blocking the launch.