From d0173cd46538256d716b3d933f4175b2089099bc Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:39:08 -0700 Subject: [PATCH] fix for explorer data grid not paginating (#1139) (#1140) (cherry picked from commit 7f6b95ed59afbdfc58495eaab6dfa1d680a2b9d6) Signed-off-by: Paul Sebastian Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] (cherry picked from commit 276834d8e0f9533176efd8e342ae135598c6595c) --- auto_sync_commit_metadata.json | 4 ++-- public/components/event_analytics/explorer/explorer.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auto_sync_commit_metadata.json b/auto_sync_commit_metadata.json index 4cbd8a2efc..e6cadc592a 100644 --- a/auto_sync_commit_metadata.json +++ b/auto_sync_commit_metadata.json @@ -1,4 +1,4 @@ { - "last_github_commit": "a151236831c33564d92c28e50ae13adf7ee016a0", - "last_gitfarm_commit": "8bde82112a1e46449f93b780f3bb32214cd2485a" + "last_github_commit": "276834d8e0f9533176efd8e342ae135598c6595c", + "last_gitfarm_commit": "6406a11e8ef8912633825b4e97fe9658c6cafa67" } \ No newline at end of file diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index e20f288fa4..0f60b71c51 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -577,7 +577,7 @@ export const Explorer = ({ explorerFields={explorerFields} timeStampField={queryRef.current![SELECTED_TIMESTAMP]} rawQuery={appBasedRef.current || queryRef.current![RAW_QUERY]} - totalHits={explorerData?.datarows?.length || 0} + totalHits={_.sum(countDistribution.data['count()'])} requestParams={requestParams} startTime={appLogEvents ? startTime : dateRange[0]} endTime={appLogEvents ? endTime : dateRange[1]}