-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Overview - standardize queries for monitor duration metric item #145916
[Synthetics] Overview - standardize queries for monitor duration metric item #145916
Conversation
Pinging @elastic/uptime (Team:uptime) |
…thub.com/dominiqueclarke/kibana into fix/synthetics-overview-project-monitors
…-ref HEAD~1..HEAD --fix'
…thub.com/dominiqueclarke/kibana into fix/synthetics-overview-project-monitors
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
Saved Objects .kibana field count
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
…ic item (elastic#145916) ## Summary Resolves elastic#145922 Resolves elastic#145270 Fixes a regression from elastic#143309 Standardizes the way the monitor duration metric is queried, ensuring that both monitor types, UI and Project, are queries in the same way. The changes were also carried into changes to the Monitor Flyout Before (duration for UI monitor shows, but not the duration for project monitors) ![image](https://user-images.githubusercontent.com/11356435/203143905-4564b14e-a2af-402c-a2c1-5b95d22ad1e3.png) After (duration shows for both monitor types) <img width="1366" alt="Screen Shot 2022-11-21 at 2 39 09 PM" src="https://user-images.githubusercontent.com/11356435/203144056-d74617e5-6745-4c17-9a68-e5164f4be689.png"> ### Testing 1. Create at least one project monitor and one UI monitor 2. Ensure that both monitor types display the duration metric on the Overview page after running 3. In the actions popover, click edit monitor. Ensure the page redirects to the monitor edit page appropriately 4. In the actions popover, click go to monitor. Ensure that the page redirects to the monitor details page appropriately 5. In the actions popover, disable the monitor. Ensure it is successful. 6. In the actions popover, click inspect. Ensure the monitor flyout appears, then close the flyout. 7. Click on both monitor types, ensure the monitor flyout appears 8. Ensure the monitor duration metric appears in the monitor flyout 9. Ensure the last test run appears in the monitor flyout 10. Ensure both enable toggles work in the monitor flyout (in the body of the flyout and actions popover next to the flyout title) 11. Ensure the go to monitor link works in the monitor flyout actions popover next to the monitor title 12. Ensure the edit monitor link works in the monitor flyout actions popover next to the monitor title Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit e8d77b3)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…n metric item (#145916) (#146005) # Backport This will backport the following commits from `main` to `8.6`: - [[Synthetics] Overview - standardize queries for monitor duration metric item (#145916)](#145916) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dominique Clarke","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-22T14:49:07Z","message":"[Synthetics] Overview - standardize queries for monitor duration metric item (#145916)\n\n## Summary\r\n\r\nResolves https://github.com/elastic/kibana/issues/145922\r\nResolves https://github.com/elastic/kibana/issues/145270\r\n\r\nFixes a regression from https://github.com/elastic/kibana/issues/143309\r\n\r\nStandardizes the way the monitor duration metric is queried, ensuring\r\nthat both monitor types, UI and Project, are queries in the same way.\r\n\r\nThe changes were also carried into changes to the Monitor Flyout\r\n\r\nBefore (duration for UI monitor shows, but not the duration for project\r\nmonitors)\r\n\r\n![image](https://user-images.githubusercontent.com/11356435/203143905-4564b14e-a2af-402c-a2c1-5b95d22ad1e3.png)\r\n\r\nAfter (duration shows for both monitor types)\r\n<img width=\"1366\" alt=\"Screen Shot 2022-11-21 at 2 39 09 PM\"\r\nsrc=\"https://user-images.githubusercontent.com/11356435/203144056-d74617e5-6745-4c17-9a68-e5164f4be689.png\">\r\n\r\n### Testing\r\n1. Create at least one project monitor and one UI monitor\r\n2. Ensure that both monitor types display the duration metric on the\r\nOverview page after running\r\n3. In the actions popover, click edit monitor. Ensure the page redirects\r\nto the monitor edit page appropriately\r\n4. In the actions popover, click go to monitor. Ensure that the page\r\nredirects to the monitor details page appropriately\r\n5. In the actions popover, disable the monitor. Ensure it is successful.\r\n6. In the actions popover, click inspect. Ensure the monitor flyout\r\nappears, then close the flyout.\r\n7. Click on both monitor types, ensure the monitor flyout appears\r\n8. Ensure the monitor duration metric appears in the monitor flyout\r\n9. Ensure the last test run appears in the monitor flyout\r\n10. Ensure both enable toggles work in the monitor flyout (in the body\r\nof the flyout and actions popover next to the flyout title)\r\n11. Ensure the go to monitor link works in the monitor flyout actions\r\npopover next to the monitor title\r\n12. Ensure the edit monitor link works in the monitor flyout actions\r\npopover next to the monitor title\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"e8d77b3f0f46ac62e9220ffe28eb455880854906","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:uptime","release_note:skip","v8.6.0","v8.7.0"],"number":145916,"url":"https://github.com/elastic/kibana/pull/145916","mergeCommit":{"message":"[Synthetics] Overview - standardize queries for monitor duration metric item (#145916)\n\n## Summary\r\n\r\nResolves https://github.com/elastic/kibana/issues/145922\r\nResolves https://github.com/elastic/kibana/issues/145270\r\n\r\nFixes a regression from https://github.com/elastic/kibana/issues/143309\r\n\r\nStandardizes the way the monitor duration metric is queried, ensuring\r\nthat both monitor types, UI and Project, are queries in the same way.\r\n\r\nThe changes were also carried into changes to the Monitor Flyout\r\n\r\nBefore (duration for UI monitor shows, but not the duration for project\r\nmonitors)\r\n\r\n![image](https://user-images.githubusercontent.com/11356435/203143905-4564b14e-a2af-402c-a2c1-5b95d22ad1e3.png)\r\n\r\nAfter (duration shows for both monitor types)\r\n<img width=\"1366\" alt=\"Screen Shot 2022-11-21 at 2 39 09 PM\"\r\nsrc=\"https://user-images.githubusercontent.com/11356435/203144056-d74617e5-6745-4c17-9a68-e5164f4be689.png\">\r\n\r\n### Testing\r\n1. Create at least one project monitor and one UI monitor\r\n2. Ensure that both monitor types display the duration metric on the\r\nOverview page after running\r\n3. In the actions popover, click edit monitor. Ensure the page redirects\r\nto the monitor edit page appropriately\r\n4. In the actions popover, click go to monitor. Ensure that the page\r\nredirects to the monitor details page appropriately\r\n5. In the actions popover, disable the monitor. Ensure it is successful.\r\n6. In the actions popover, click inspect. Ensure the monitor flyout\r\nappears, then close the flyout.\r\n7. Click on both monitor types, ensure the monitor flyout appears\r\n8. Ensure the monitor duration metric appears in the monitor flyout\r\n9. Ensure the last test run appears in the monitor flyout\r\n10. Ensure both enable toggles work in the monitor flyout (in the body\r\nof the flyout and actions popover next to the flyout title)\r\n11. Ensure the go to monitor link works in the monitor flyout actions\r\npopover next to the monitor title\r\n12. Ensure the edit monitor link works in the monitor flyout actions\r\npopover next to the monitor title\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"e8d77b3f0f46ac62e9220ffe28eb455880854906"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145916","number":145916,"mergeCommit":{"message":"[Synthetics] Overview - standardize queries for monitor duration metric item (#145916)\n\n## Summary\r\n\r\nResolves https://github.com/elastic/kibana/issues/145922\r\nResolves https://github.com/elastic/kibana/issues/145270\r\n\r\nFixes a regression from https://github.com/elastic/kibana/issues/143309\r\n\r\nStandardizes the way the monitor duration metric is queried, ensuring\r\nthat both monitor types, UI and Project, are queries in the same way.\r\n\r\nThe changes were also carried into changes to the Monitor Flyout\r\n\r\nBefore (duration for UI monitor shows, but not the duration for project\r\nmonitors)\r\n\r\n![image](https://user-images.githubusercontent.com/11356435/203143905-4564b14e-a2af-402c-a2c1-5b95d22ad1e3.png)\r\n\r\nAfter (duration shows for both monitor types)\r\n<img width=\"1366\" alt=\"Screen Shot 2022-11-21 at 2 39 09 PM\"\r\nsrc=\"https://user-images.githubusercontent.com/11356435/203144056-d74617e5-6745-4c17-9a68-e5164f4be689.png\">\r\n\r\n### Testing\r\n1. Create at least one project monitor and one UI monitor\r\n2. Ensure that both monitor types display the duration metric on the\r\nOverview page after running\r\n3. In the actions popover, click edit monitor. Ensure the page redirects\r\nto the monitor edit page appropriately\r\n4. In the actions popover, click go to monitor. Ensure that the page\r\nredirects to the monitor details page appropriately\r\n5. In the actions popover, disable the monitor. Ensure it is successful.\r\n6. In the actions popover, click inspect. Ensure the monitor flyout\r\nappears, then close the flyout.\r\n7. Click on both monitor types, ensure the monitor flyout appears\r\n8. Ensure the monitor duration metric appears in the monitor flyout\r\n9. Ensure the last test run appears in the monitor flyout\r\n10. Ensure both enable toggles work in the monitor flyout (in the body\r\nof the flyout and actions popover next to the flyout title)\r\n11. Ensure the go to monitor link works in the monitor flyout actions\r\npopover next to the monitor title\r\n12. Ensure the edit monitor link works in the monitor flyout actions\r\npopover next to the monitor title\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"e8d77b3f0f46ac62e9220ffe28eb455880854906"}}]}] BACKPORT--> Co-authored-by: Dominique Clarke <[email protected]>
Summary
Resolves #145922
Resolves #145270
Fixes a regression from #143309
Standardizes the way the monitor duration metric is queried, ensuring that both monitor types, UI and Project, are queries in the same way.
The changes were also carried into changes to the Monitor Flyout
Before (duration for UI monitor shows, but not the duration for project monitors)
After (duration shows for both monitor types)
Testing