-
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
[AO] Fix issue with alert summary widget refresh on the Alerts page #160159
[AO] Fix issue with alert summary widget refresh on the Alerts page #160159
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
@@ -106,7 +106,8 @@ function InternalAlertsPage() { | |||
bucketSize?.intervalString || DEFAULT_INTERVAL, | |||
bucketSize?.dateFormat || DEFAULT_DATE_FORMAT | |||
), | |||
[alertSearchBarStateProps.rangeFrom, alertSearchBarStateProps.rangeTo, bucketSize] | |||
// eslint-disable-next-line react-hooks/exhaustive-deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: if you take in esQuery
into the getAlertSummaryTimeRange
function, ESLint won't complain about the unnecessary dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by moving esQuery
into the getAlertSummaryTimeRange
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will merge my PR, but if you share with me details of your suggestion, I can cover it in my future PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion added, but looks fine
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
…lastic#160159) Fixes elastic#157245 ## Summary This PR updates the absolute time range when the refresh button is clicked. ## 🧪 How to test - On the Alerts page, click on refresh and check the time range of `_alert_summary` API call, it should be updated with each refresh ![image](https://github.com/elastic/kibana/assets/12370520/0522d770-6cf5-4af7-8c42-bb508e614164) (cherry picked from commit 7f906bd)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…page (#160159) (#160233) # Backport This will backport the following commits from `main` to `8.8`: - [[AO] Fix issue with alert summary widget refresh on the Alerts page (#160159)](#160159) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Maryam Saeidi","email":"maryam.saeidi@elastic.co"},"sourceCommit":{"committedDate":"2023-06-22T08:36:41Z","message":"[AO] Fix issue with alert summary widget refresh on the Alerts page (#160159)\n\nFixes #157245\r\n\r\n## Summary\r\n\r\nThis PR updates the absolute time range when the refresh button is\r\nclicked.\r\n\r\n## 🧪 How to test\r\n- On the Alerts page, click on refresh and check the time range of\r\n`_alert_summary` API call, it should be updated with each refresh\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/12370520/0522d770-6cf5-4af7-8c42-bb508e614164)","sha":"7f906bd0c1bddba64e23fdcdfeb61304542fa9c8","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team: Actionable Observability","backport:prev-minor","v8.9.0"],"number":160159,"url":"https://github.com/elastic/kibana/pull/160159","mergeCommit":{"message":"[AO] Fix issue with alert summary widget refresh on the Alerts page (#160159)\n\nFixes #157245\r\n\r\n## Summary\r\n\r\nThis PR updates the absolute time range when the refresh button is\r\nclicked.\r\n\r\n## 🧪 How to test\r\n- On the Alerts page, click on refresh and check the time range of\r\n`_alert_summary` API call, it should be updated with each refresh\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/12370520/0522d770-6cf5-4af7-8c42-bb508e614164)","sha":"7f906bd0c1bddba64e23fdcdfeb61304542fa9c8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160159","number":160159,"mergeCommit":{"message":"[AO] Fix issue with alert summary widget refresh on the Alerts page (#160159)\n\nFixes #157245\r\n\r\n## Summary\r\n\r\nThis PR updates the absolute time range when the refresh button is\r\nclicked.\r\n\r\n## 🧪 How to test\r\n- On the Alerts page, click on refresh and check the time range of\r\n`_alert_summary` API call, it should be updated with each refresh\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/12370520/0522d770-6cf5-4af7-8c42-bb508e614164)","sha":"7f906bd0c1bddba64e23fdcdfeb61304542fa9c8"}}]}] BACKPORT--> Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
Fixes #157245
Summary
This PR updates the absolute time range when the refresh button is clicked.
🧪 How to test
_alert_summary
API call, it should be updated with each refresh