Skip to content

Commit e9c568a

Browse files
opensearch-trigger-bot[bot]github-actions[bot]kavilla
authored
[Dashboards listing] fix listing limit (#4021) (#4034)
Initial page size was passed to the search function instead of the listing limit causing the max amount received to be significantly less than the previously implementation. Saved objects per page is `20` by default and the listing limit per page is `1000` by default. Issue: #4017 (cherry picked from commit 8121c9d) Signed-off-by: Kawika Avilla <kavilla414@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Kawika Avilla <kavilla414@gmail.com>
1 parent 5d4feb2 commit e9c568a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/dashboard/public/application/legacy_app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function initDashboardApp(app, deps) {
150150
type: $scope.dashboardListTypes,
151151
search: search ? `${search}*` : undefined,
152152
fields: ['title', 'type', 'description', 'updated_at'],
153-
perPage: $scope.initialPageSize,
153+
perPage: $scope.listingLimit,
154154
page: 1,
155155
searchFields: ['title^3', 'type', 'description'],
156156
defaultSearchOperator: 'AND',

0 commit comments

Comments
 (0)