mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Implement new single Server State/Status display #97
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 @ItsNeil17 on GitHub (Jun 10, 2024).
We currently have 2 separate enums for server state and server status.
Server state refers to our own state such as reinstall, transfer, etc.
Server status refers to the docker container's status such as running, stopped, etc.
If the current server state exists, then show it. If it's empty, then we should show the current container status.
This also includes the labelling in the Edit Server page.
@iamkubi commented on GitHub (Jun 12, 2024):
I'm fairly certain this is intentional. You don't want to have to query the docker status of the server every time you want to render a server in the UI.
@iamkubi commented on GitHub (Jun 12, 2024):
Although the way the API represents the state could be improved, it is important for performance reasons not to combine these 2 fields.