mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Deleting a newly-set primary allocation on a server #166
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?
Originally created by @JustNotSebas on GitHub (Oct 6, 2024).
Current Behavior
Discovered this on total accident, but when having an allocation selected on the server edit page, and setting that allocation as primary, it doesn't remove the selection (still appears as 1 record selected even though the checkmark dissapeared), and it allows to dissociate all the allocations on the server, including the primary one, which isn't supposed to be deleted.


It also makes the address show as "n/a" on the user page.

It's not that big of a deal, because you can set back the allocation on the server page, but being that it happened to me by accident, it's best to have it solved to avoid issues.
Expected Behavior
When clicking on "Make Primary", it should remove the selection, or at the very least, have a warning if the user attempts to delete the primary allocation of the server.
Steps to Reproduce
Prerrequisite: Have at least two allocations on the server, one being the primary one.
The allocation will remain selected, even though the checkmark dissapeared.
Panel Version
1.0.0-beta10
Wings Version
1.0.0-beta4
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
No response
Is there an existing issue for this?
@notAreYouScared commented on GitHub (Oct 6, 2024):
I think think this would be a filament bug as that's all handled by it and it's packages.