canonical / maas-ui

The UI for MAAS (metal-as-a-service)
https://maas.io
Other
49 stars 48 forks source link

[UI, feature] Add ability to edit/delete (manage) tags over the UI #1550

Closed webteam-app closed 2 years ago

webteam-app commented 4 years ago

Bug originally filed by juan.vela at https://bugs.launchpad.net/bugs/1822840

The tags and the network spaces can't be managed through the UI. Once you create one you can't rename it, neither delete it.

Caleb-Ellis commented 4 years ago

Tags are a pretty important way for MAAS users to categorise machines. It's kinda nuts that we don't have a way to edit or delete tags via the UI yet.

amylily1011 commented 3 years ago

Can we do something like this for adding/removing tags in MAAS? @huwshimi @Caleb-Ellis

This is a mock from the LXD cluster work, but the same form should apply for Tagging machines in the machine listing UI as well.

Would this require API work?

Is it possible to add a count in these labels?

LXD Cluster view - remove tag

huwshimi commented 2 years ago

Hi @amylily1011, in these forms how would you handle tags that apply to some machines/pods and not others? e.g. if pod-A has "blue" and "green" and pod-B has "blue" and "red" then I presume the input would show "blue (2) green (1) red (1)" but if you click 'Save' won't it apply the all tags in the input to the selected machines?

amylily1011 commented 2 years ago

@huwshimi

So in this design I've separated add tags and remove tags into 2 different fields. Add tags would put a new tag to the selected machines.

It's basically 2 separate functions. An alternative solution is to create 2 separate forms: one for add tags and one for remove tags.

Let me know if this make sense logically. If not I'll iterate on it :)

LXD Cluster view - remove tag

Caleb-Ellis commented 2 years ago

This exists now!