mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 09:26:03 +00:00
fix(tags): second audit: unchanged saves, report, other lists, hosts list
- Saving a VM's tags unchanged writes no audit row. - The VM report has a Tags column. - A host's VM list and a user's VMs (account page) show the VMs' tags. - The hosts list says "No host matches the filters." with Clear the filters, as the VM list does; the tag list keeps to a phone's width with a long tag. - A removed VM's delete page says its owners and tags no longer come back; the VM history rows say "owners and tags kept/restored". - The API's ?tag= is trimmed; Tom Select's "Add tag" line shows the name in lower case as it is made; Bulk Migrate's tag list goes back to its title after a choice, so the same tag can be chosen again.
This commit is contained in:
parent
45225df1a4
commit
b74e798e70
23 changed files with 376 additions and 324 deletions
|
|
@ -135,9 +135,9 @@ def _bury(inst):
|
|||
if owners or inst.is_template or tags:
|
||||
InstanceTombstone.objects.create(uuid=inst.uuid, name=inst.name, host=inst.compute.name,
|
||||
is_template=inst.is_template, owners=owners, tags=tags)
|
||||
_log(inst, "owners kept on the Removed VMs page")
|
||||
_log(inst, "owners and tags kept on the Removed VMs page")
|
||||
else:
|
||||
_log(inst, "left the panel (no owners)")
|
||||
_log(inst, "left the panel (no owners or tags)")
|
||||
|
||||
|
||||
def _restore(inst):
|
||||
|
|
@ -159,7 +159,7 @@ def _restore(inst):
|
|||
inst.is_template = True
|
||||
inst.save(update_fields=["is_template"])
|
||||
InstanceTombstone.objects.filter(uuid=inst.uuid).delete()
|
||||
_log(inst, "owners restored")
|
||||
_log(inst, "owners and tags restored")
|
||||
|
||||
|
||||
def _host_domains(compute):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue