]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: devices with same UID causes multiselection 46174/head
authorNizamudeen A <nia@redhat.com>
Thu, 5 May 2022 17:43:38 +0000 (23:13 +0530)
committerNizamudeen A <nia@redhat.com>
Sun, 8 May 2022 14:50:35 +0000 (20:20 +0530)
commit9fe18a62529037c0586edd032411f863f81b8f27
treeee1a18434b650e1b429bafad38244a8aeb1e8e36
parent1ffef5da9e56059adce9032f22746ec85c4ea4f1
mgr/dashboard: devices with same UID causes multiselection

In the Physical Disks page, the uids for multiple devices are coming in
as same and that causes the selection to go berserk and select multiple
rows with same UID. The uid is generated in the frontend service call
itself. I just added some more parameters to it inorder to make it more
unique.

The second issue is the number of selected number getting multiplied
exponentially. Its because each time the table is updated or refreshed,
we push the row with the number of selected items we had before and that
causes the number of selection to multiply.

Fixes: https://tracker.ceph.com/issues/55523
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/api/host.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts