Skip to content

feat(slo): limit perPage in find api#167185

Merged
kdelemme merged 2 commits intoelastic:mainfrom
kdelemme:fix/max-limit-find-api
Sep 28, 2023
Merged

feat(slo): limit perPage in find api#167185
kdelemme merged 2 commits intoelastic:mainfrom
kdelemme:fix/max-limit-find-api

Conversation

@kdelemme
Copy link
Contributor

Resolves #166768

Summary

This PR fixes the find SLO api by limiting the maximum allowed perPage query parameter to 5000.

Previously providing a perPage value greater than 5000 was producing an ES error which was caught and handled in a way that no response was returned from the API.

@ghost
Copy link

ghost commented Sep 25, 2023

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@kdelemme kdelemme self-assigned this Sep 25, 2023
@kdelemme kdelemme added release_note:skip Skip the PR/issue when compiling release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.11.0 Feature:SLO labels Sep 25, 2023
@kdelemme kdelemme marked this pull request as ready for review September 25, 2023 18:19
@kdelemme kdelemme requested a review from a team September 25, 2023 18:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/actionable-observability (Team: Actionable Observability)

@kibana-ci
Copy link

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @kdelemme

@mgiota mgiota self-requested a review September 26, 2023 11:33
Copy link
Contributor

@mgiota mgiota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kdelemme kdelemme merged commit c2745d3 into elastic:main Sep 28, 2023
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Sep 28, 2023
@kdelemme kdelemme deleted the fix/max-limit-find-api branch September 28, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:SLO release_note:skip Skip the PR/issue when compiling release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SLO] Limit perPage to 5000 on find api

5 participants