kibana icon indicating copy to clipboard operation
kibana copied to clipboard

[Synthetics] Add monitor detail flyout

Open justinkambic opened this issue 2 years ago • 4 comments

Summary

Note to reviewers: you can test this PR using the cloud deployment we've made.

Credentials are available here.

Resolves #135150.

Introduces monitor detail flyout for Synthetics UI.

20220906164016

Additional notes

There are a few modifications to functionality that was merged previously. I've extracted the toast notifications for the enable/disable hook to an effect that is tied to the redux action responsible for the actual API request. There were numerous cases where the current solution is vulnerable to multiple notification calls because they're inferring when the send a toast based on local app state.

This way, the notification is tied to the resolution of the request, and it handles errors as well.

Testing

Some high-level things to test in addition to regular review scrutiny:

  • Viewing and opening the flyout via the actions popover
  • Opening popover by clicking metric items
  • Enable/disable monitor(s) via the flyout and actions popover

justinkambic avatar Jul 11 '22 21:07 justinkambic

@elasticmachine merge upstream

justinkambic avatar Sep 06 '22 17:09 justinkambic

Pinging @elastic/uptime (Team:uptime)

elasticmachine avatar Sep 07 '22 20:09 elasticmachine

Sorry to anyone who got an unnecessary ping.

justinkambic avatar Sep 14 '22 19:09 justinkambic

@elasticmachine merge upstream

dominiqueclarke avatar Oct 24 '22 13:10 dominiqueclarke

@dominiqueclarke I think I have addressed all the feedback from your last review except for the issue with Project Monitors. If you'd like, we can add this to the list of things we plan to iteratively fix. I'm going to make a follow-up issue detailing items we are blocked on or delaying for various reasons.

justinkambic avatar Oct 27 '22 20:10 justinkambic

:yellow_heart: Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
synthetics 1010 1013 +3

Async chunks

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

id before after diff
synthetics 1.1MB 1.1MB +12.2KB
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 58 64 +6
osquery 108 113 +5
securitySolution 440 446 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 66 72 +6
osquery 109 115 +6
securitySolution 517 523 +6
total +20

History

  • :broken_heart: Build #85098 failed b74ffa74c7dedca0c878a8ddd52b66e1a549f0b6
  • :broken_heart: Build #85097 failed b74ffa74c7dedca0c878a8ddd52b66e1a549f0b6
  • :green_heart: Build #84123 succeeded 287403c1c942074c977f7d5886dac6c8ad6526ca
  • :broken_heart: Build #83342 failed 686e9678871d7e89588cee77532921d38e7f5c5f
  • :broken_heart: Build #83258 failed 6079738d5cbfde091b2fbacf31fb55b716485244

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

cc @justinkambic

kibana-ci avatar Nov 04 '22 17:11 kibana-ci

:green_heart: Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
synthetics 1015 1018 +3

Async chunks

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

id before after diff
synthetics 1.1MB 1.1MB +12.2KB
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 58 64 +6
osquery 108 113 +5
securitySolution 440 446 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 66 72 +6
osquery 109 115 +6
securitySolution 517 523 +6
total +20

History

  • :yellow_heart: Build #85546 was flaky 4786c76895aad3e3f3fe330a7b03329af5d6e391
  • :broken_heart: Build #85098 failed b74ffa74c7dedca0c878a8ddd52b66e1a549f0b6
  • :broken_heart: Build #85097 failed b74ffa74c7dedca0c878a8ddd52b66e1a549f0b6
  • :green_heart: Build #84123 succeeded 287403c1c942074c977f7d5886dac6c8ad6526ca
  • :broken_heart: Build #83342 failed 686e9678871d7e89588cee77532921d38e7f5c5f

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

cc @justinkambic

kibana-ci avatar Nov 07 '22 16:11 kibana-ci