]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: improve search and pagination behavior 65482/head
authorNizamudeen A <nia@redhat.com>
Thu, 11 Sep 2025 05:29:47 +0000 (10:59 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 11 Sep 2025 08:02:54 +0000 (13:32 +0530)
commit5eda016780b91ca46ba394a3a5ef3fd988897ebd
treea6ef01840e764c39e65809b1796f8c1dbed3bd46
parent66ce55ae2bc823e39f5f0c9e4f1db7609f85974d
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>
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts