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

[Synthetics] Rely on refresh context to update status panel #143308

Conversation

justinkambic
Copy link
Contributor

Summary

We previously intended for the overview status panel on the Synthetics Overview page to refresh at the same time as the cards in the monitor list update. The functionality of how the cards fresh is not as simple to access as I anticipated, so we are moving a dedicated dispatch for data back into the component itself, and referencing the refresh context to trigger updates to the count.

Testing this PR

I am going to trigger a cloud deployment for this PR. You should be able to log in and add/edit monitors for multiple locations. Disable them, make some monitors that are down, and ensure the totals expressed in the status panel are aligned with your expectations.

@justinkambic justinkambic added bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability release_note:skip Skip the PR/issue when compiling release notes ci:cloud-deploy Create or update a Cloud deployment v8.6.0 labels Oct 13, 2022
@justinkambic justinkambic self-assigned this Oct 13, 2022
@justinkambic justinkambic requested a review from a team as a code owner October 13, 2022 17:42
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@justinkambic justinkambic changed the title Rely on refresh context to update stats independently of overview cards. [Synthetics] Rely on refresh context to update status panel Oct 13, 2022
@justinkambic justinkambic force-pushed the synthetics_use-refresh-context-for-overview-status branch from d83c0ee to 4975273 Compare October 17, 2022 14:09
Copy link
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

LGTM. Tested and saw both the stats and cards update a the same time when a previously up monitor went to down.

@justinkambic justinkambic force-pushed the synthetics_use-refresh-context-for-overview-status branch from 5e986bb to f498e77 Compare October 19, 2022 17:25
@justinkambic justinkambic force-pushed the synthetics_use-refresh-context-for-overview-status branch from f498e77 to 9a8e9af Compare October 19, 2022 21:39
@kibana-ci
Copy link
Collaborator

kibana-ci commented Oct 19, 2022

💚 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
synthetics 1.0MB 1.0MB +55.0B

History

  • 💔 Build #81526 failed f498e77b1ade6ff35c89db882c7ebc6a017e143b
  • 💔 Build #81401 failed 5e986bbe31ecfc7a155af53c91e7a928aab10ecb
  • 💚 Build #80752 succeeded 4975273dd871af28ed7af6e1b562482c98f90a4f
  • 💔 Build #80226 failed d83c0eec2712c788dad86d7b37ae9b2774dfe0c5

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

cc @justinkambic

@justinkambic justinkambic merged commit 2b4ad51 into elastic:main Oct 20, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Oct 20, 2022
@justinkambic justinkambic deleted the synthetics_use-refresh-context-for-overview-status branch October 20, 2022 20:34
jloleysens added a commit to jloleysens/kibana that referenced this pull request Oct 24, 2022
* main: (57 commits)
  [Files] Filepicker (elastic#143111)
  [Infrastructure UI] Replace Lens table with EUI table and own api (elastic#142871)
  [api-docs] Daily api_docs build (elastic#143829)
  [api-docs] Daily api_docs build (elastic#143825)
  [api-docs] Daily api_docs build (elastic#143823)
  [Security Solution] Restructuring folders of Detection Engine + refactoring Rule Management (elastic#142950)
  [Dev tools] Fix performance issue with autocomplete suggestions (elastic#143428)
  [Security Solution] Disable ML rule's edit button link under basic license (elastic#143260)
  [Lens]  Use the language-documentation package for formula (elastic#143649)
  [api-docs] Daily api_docs build (elastic#143811)
  [Security Solution] Fix missing title on inspect pop-up (elastic#143601)
  fix incorrect filters being passed to events table causing duplicate entries in our inpsect tool request tab (elastic#143239)
  [Security Solution][Endpoint] `get-file` response action kibana download file API (elastic#143708)
  Rely on refresh context to update stats independently of overview cards. (elastic#143308)
  [RAM] Rule event log - Fix incorrect results when filtering by message and outcome simultaneously (elastic#143119)
  [ML] Display link to create data view from error cases in data frame analytics results pages (elastic#143596)
  Update links in README :) (elastic#143675)
  Add more tests for ml_inference_logic (elastic#143764)
  skip failing test suite (elastic#143717)
  [DOCS] Add assignees to case APIs (elastic#143610)
  ...
@shahzad31
Copy link
Contributor

POST FF Testing looks good, refresh is working fine now !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting bug Fixes for quality problems that affect the customer experience ci:cloud-deploy Create or update a Cloud deployment release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants