Skip to content

Commit 6c8ce1a

Browse files
opensearch-trigger-bot[bot]github-actions[bot]kavilla
authored
[Dashboards listing] fix listing limit (#4021) (#4033)
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 Signed-off-by: Kawika Avilla <kavilla414@gmail.com> (cherry picked from commit 8121c9d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Kawika Avilla <kavilla414@gmail.com>
1 parent 5ba7a45 commit 6c8ce1a

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)