Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.17] [Infra] Limit the number of metrics accepted by Snapshot API (#188181) #188242

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

crespocarlos
Copy link
Contributor

Backport

This will backport the following commits from main to 7.17:

Questions ?

Please refer to the Backport tool documentation

…#188181)

part of [3628](elastic/observability-dev#3628)
- private

## Summary

After adding 20 items, users can no longer add more metrics and will see
the "Add metric" button disabled with a tooltip

<img width="1713" alt="image"
src="https://github.com/user-attachments/assets/c784b08b-e118-4491-b53d-46bfde898216">

### How to test

- Start a local Kibana instance pointing to an oblt cluster
- Navigate to Infrastructure
- Try to add more than 20 metrics in the Metrics dropdown.

(cherry picked from commit f2d1a8b)

# Conflicts:
#	x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/index.tsx
#	x-pack/plugins/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/mode_switcher.tsx
#	x-pack/plugins/infra/server/routes/snapshot/index.ts
#	x-pack/plugins/observability_solution/infra/common/constants.ts
#	x-pack/plugins/observability_solution/infra/public/pages/metrics/inventory_view/components/waffle/metric_control/custom_metric_form.tsx
#	x-pack/test/functional/page_objects/infra_home_page.ts
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
infra 939.7KB 940.2KB +497.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
infra 87.8KB 87.8KB +39.0B

History

@crespocarlos crespocarlos merged commit 8197581 into elastic:7.17 Jul 15, 2024
105 checks passed
adelisle pushed a commit to Makila-AI/kibana that referenced this pull request Aug 5, 2024
…lastic#188181) (elastic#188242)

# Backport

This will backport the following commits from `main` to `7.17`:
- [[Infra] Limit the number of metrics accepted by Snapshot API
(elastic#188181)](elastic#188181)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-12T13:53:53Z","message":"[Infra]
Limit the number of metrics accepted by Snapshot API (elastic#188181)\n\npart
of [3628](https://github.com/elastic/observability-dev/issues/3628)\r\n-
private\r\n\r\n\r\n## Summary\r\n\r\nAfter adding 20 items, users can no
longer add more metrics and will see\r\nthe \"Add metric\" button
disabled with a tooltip\r\n\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/c784b08b-e118-4491-b53d-46bfde898216\">\r\n\r\n\r\n###
How to test\r\n\r\n- Start a local Kibana instance pointing to an oblt
cluster\r\n- Navigate to Infrastructure\r\n- Try to add more than 20
metrics in the Metrics
dropdown.","sha":"f2d1a8b6d24486cedb0dad97e71cd660845f353c","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0"],"number":188181,"url":"https://github.com/elastic/kibana/pull/188181","mergeCommit":{"message":"[Infra]
Limit the number of metrics accepted by Snapshot API (elastic#188181)\n\npart
of [3628](https://github.com/elastic/observability-dev/issues/3628)\r\n-
private\r\n\r\n\r\n## Summary\r\n\r\nAfter adding 20 items, users can no
longer add more metrics and will see\r\nthe \"Add metric\" button
disabled with a tooltip\r\n\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/c784b08b-e118-4491-b53d-46bfde898216\">\r\n\r\n\r\n###
How to test\r\n\r\n- Start a local Kibana instance pointing to an oblt
cluster\r\n- Navigate to Infrastructure\r\n- Try to add more than 20
metrics in the Metrics
dropdown.","sha":"f2d1a8b6d24486cedb0dad97e71cd660845f353c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/188181","number":188181,"mergeCommit":{"message":"[Infra]
Limit the number of metrics accepted by Snapshot API (elastic#188181)\n\npart
of [3628](https://github.com/elastic/observability-dev/issues/3628)\r\n-
private\r\n\r\n\r\n## Summary\r\n\r\nAfter adding 20 items, users can no
longer add more metrics and will see\r\nthe \"Add metric\" button
disabled with a tooltip\r\n\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/c784b08b-e118-4491-b53d-46bfde898216\">\r\n\r\n\r\n###
How to test\r\n\r\n- Start a local Kibana instance pointing to an oblt
cluster\r\n- Navigate to Infrastructure\r\n- Try to add more than 20
metrics in the Metrics
dropdown.","sha":"f2d1a8b6d24486cedb0dad97e71cd660845f353c"}},{"url":"https://github.com/elastic/kibana/pull/188231","number":188231,"branch":"8.15","state":"OPEN"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants