panel icon indicating copy to clipboard operation
panel copied to clipboard

Sync servers button

Open anondev-sudo opened this issue 4 years ago • 8 comments
trafficstars

There should be Sync servers button in admin area, that will fetch ptero api and update server details for all servers in database so server names, descriptions, state, feature limits will be actual on dashboard.

Why? When user rename server on panel, it's not renamed in dashboard and users are telling that it's not good when the name and other details are not updated.

anondev-sudo avatar Aug 12 '21 08:08 anondev-sudo

feature limits are set by the product, we can't sync them if you changed them manually on ptero. the only thing that would need matching is server names (description will be set to product desc in the upcoming updates)

AVMG20 avatar Aug 12 '21 09:08 AVMG20

Ok, just sync server name and description, and if ptero api endpoint returned 404 error when fetching server, delete it from dashboard.

anondev-sudo avatar Aug 12 '21 15:08 anondev-sudo

I have suggested that admins can create servers for users with custom specs, eggs, monthly price here https://github.com/ControlPanel-gg/dashboard/issues/65

anondev-sudo avatar Aug 12 '21 15:08 anondev-sudo

I have suggested that admins can create servers for users with custom specs, eggs, monthly price here #65

I fail to see how this is related to the current issue

AVMG20 avatar Aug 14 '21 13:08 AVMG20

I have suggested that admins can create servers for users with custom specs, eggs, monthly price here #65

I fail to see how this is related to the current issue

It's related to this problem:

feature limits are set by the product, we can't sync them if you changed them manually on ptero.

anondev-sudo avatar Aug 14 '21 15:08 anondev-sudo

@AVMG20 shouldnt this be -almost- the same logic as the Sync Button on /admin/nodes

1day2die avatar Sep 27 '21 08:09 1day2die

Yes, it should just sync server name and descriptions in database. When server was deleted on panel, delete it from dashboard database too

anondev-sudo avatar Sep 27 '21 10:09 anondev-sudo

@1day2die Can you make this?

anondev-sudo avatar Oct 26 '21 11:10 anondev-sudo

Automatic name syncing done in PR570. Server description does not have to be synced, as it is empty by default on both CP and Ptero.

ok236449 avatar Aug 19 '22 20:08 ok236449