Fix cutover compare tab switching and order detail columns Key/Compare/Display.

Remount BizComparePage per route so templates↔jobs no longer stuck; align column order.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-20 16:52:37 +08:00
parent 3d2489041a
commit 34a98fefcf
5 changed files with 57 additions and 34 deletions

View file

@ -289,8 +289,8 @@ class CompareRulesTests(unittest.TestCase):
compare_fields=["mac"],
display_fields=["vrf", "age", "ip"],
)
# keys first, then display order extras, compare forced if missing
self.assertEqual(explicit, ["ip", "iface", "vrf", "age", "mac"])
# Key → Compare → Display-only (compare forced even if not ticked)
self.assertEqual(explicit, ["ip", "iface", "mac", "vrf", "age"])
def test_display_only_field_does_not_change(self) -> None:
"""Context column in display but not compare → value drift ignored."""