]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: services page flickering with empty table 70230/head
authorNaman Munet <naman.munet@ibm.com>
Wed, 15 Jul 2026 14:11:14 +0000 (19:41 +0530)
committerNaman Munet <naman.munet@ibm.com>
Wed, 15 Jul 2026 14:11:49 +0000 (19:41 +0530)
fixes: https://tracker.ceph.com/issues/78247

why the changes were made:
The Services table had autoSave enabled by default, which persists table state (including sort configuration) to browser localStorage. This created a conflict because:

The table uses server-side pagination ([serverSide]="true")
The table auto-reloads every 5 seconds ([autoReload]="5000")
On initialization, the table would load stale sort configuration from localStorage
This cached sort state would override the intended default sort (by service_name ascending)
User sort interactions would be saved to localStorage but could conflict with server-side sort handling

Signed-off-by: Naman Munet <naman.munet@ibm.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.html

index 1176de61b08bd2b398f431e60be2389161a24097..a1f61330815342b0d3e7d9de68ca7b0382d86ea0 100644 (file)
@@ -8,6 +8,7 @@
     columnMode="flex"
     selectionType="single"
     [autoReload]="5000"
+    [autoSave]="false"
     (fetchData)="getServices($event)"
     [hasDetails]="hasDetails"
     [serverSide]="true"