]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: improve search and pagination behavior 65828/head
authorNizamudeen A <nia@redhat.com>
Thu, 11 Sep 2025 05:29:47 +0000 (10:59 +0530)
committerNizamudeen A <nia@redhat.com>
Wed, 8 Oct 2025 05:15:35 +0000 (10:45 +0530)
commitaa1b1eba918759a4631cf7d02768e8dcc03d6269
tree830a87f10dfeca9387b3faa2b137560105ac89a4
parentbb81d3366d5fb7785021bc20f8c2388b52a80996
mgr/dashboard: improve search and pagination behavior

add a throttle to the pagination cycle so that if you repeatedly try to
cycle through the page, it increases the delay. Doing this because
unlike search the button click to change page is deliberate and the
first click to the button should respond immediately.

another thing is that the search with a keyword stores every keystroke i
do in the search field and then after the debouncce interval it sends
all those request one by one.

for eg: if i type 222 it waits 1s for the
debounce timer and then sends a request to find osd with id 2 first then
again 2 and then again 2. Instead it should only send 222 at the end.

Fixes: https://tracker.ceph.com/issues/72979
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 5eda016780b91ca46ba394a3a5ef3fd988897ebd)
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts