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

[8.x] [Synthetics] Improve loading state for metric items (#192930) #193190

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## Summary

There are some cases where the latest addition to the overview grid
causes metric items not to load for very small numbers of monitors. This
PR aims to fix that issue, and to add a more robust loading state to the
individual items to make it easier to track when there is a request
in-flight.

Additionally, it adds a type guard to the server code and an io-ts codec
for verifying the safety of the code we use to generate our server
responses.

## Testing

Ensure that you see metric items load their duration graphs for small
numbers (3 or less) of monitors, and that scrolling etc., continues
working for larger ones.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 7a7888b)
@kibanamachine kibanamachine enabled auto-merge (squash) September 17, 2024 15:37
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-management Observability Management User Experience Team labels Sep 17, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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
synthetics 963.5KB 964.1KB +647.0B

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

cc @justinkambic

@kibanamachine kibanamachine merged commit 69b7d3e into elastic:8.x Sep 17, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport ci:project-deploy-observability Create an Observability project Team:obs-ux-management Observability Management User Experience Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants