1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-10 04:06:47 +00:00

chore: drop references to the local roadmap from code and tests

Comments, docstrings and live test names cited item IDs of a roadmap
that is not part of the repository. They now say what is meant, or
nothing where the sentence stands without them. Test assertions and
behavior are unchanged.
This commit is contained in:
catborise 2026-10-04 11:09:25 +03:00
parent 39feb373ed
commit f94b3cee7a
37 changed files with 87 additions and 89 deletions

View file

@ -1,4 +1,4 @@
"""R-05: ownership survives a VM's temporary disappearance or an out-of-band move."""
"""Ownership survives a VM's temporary disappearance or an out-of-band move."""
from datetime import timedelta
from unittest.mock import MagicMock

View file

@ -13,7 +13,7 @@ from . import forms, views
def superuser_only_patterns(patterns):
"""
Wrap every view below these patterns with superuser_only. Everything under
/computes/ is host administration (ROADMAP S-10), so the check is applied
/computes/ is host administration, so the check is applied
to the whole namespace instead of per view, and a view added here later
cannot be exposed by forgetting a decorator.
"""

View file

@ -207,7 +207,7 @@ def refresh_instance_database(compute):
Libvirt is the single source of truth:
- VMs removed in virt-manager/virsh are deleted from the database; their
ownership is moved to the same UUID on another compute or kept in a
tombstone for INSTANCE_OWNERSHIP_RETENTION_DAYS (R-05).
tombstone for INSTANCE_OWNERSHIP_RETENTION_DAYS.
- VMs created in virt-manager/virsh are added to the database.
- VMs renamed in virt-manager/virsh have their name updated without losing
UserInstance permission relationships (matched by UUID).
@ -265,7 +265,7 @@ def refresh_instance_database(compute):
# 2. Instances gone from this compute. Their ownership goes to the
# same UUID on another compute (an out-of-band move) or is kept
# in a tombstone in case the VM comes back (R-05).
# in a tombstone in case the VM comes back.
for inst in db_instances:
if inst.uuid not in host_domains:
elsewhere = Instance.objects.filter(uuid=inst.uuid).exclude(compute=compute).first()