]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: devices with same UID causes multiselection
authorNizamudeen A <nia@redhat.com>
Thu, 5 May 2022 17:43:38 +0000 (23:13 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 31 May 2022 13:27:20 +0000 (18:57 +0530)
commit8b3abf1420b9135b39db530724e4f85d3d6e93e2
tree49da8d9aee25e3d581f99136f947b4c514a4991c
parent952cab438ba4ec7e873b391d1505e501a7b33a51
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>
(cherry picked from commit 9fe18a62529037c0586edd032411f863f81b8f27)
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