-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Log threshold] Fix showing the correct log view in the rule creation flyout #189205
[Log threshold] Fix showing the correct log view in the rule creation flyout #189205
Conversation
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
HistoryTo update your PR or re-run it, just comment with: |
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.
LGTM, nice fix!
… flyout (elastic#189205) Related to elastic#187291 ## Summary This PR passes the rule's logView to the Log threshold rule creation flyout. Thanks to @Kerry350 and @weltenwort for explaining how this logic works ❤️ For example, if the log view ID is passed an invalid id, like this: <img src="https://github.com/user-attachments/assets/f9d4ac74-9b16-406e-93e5-141ea82d1687" width=500 /> it will fall back to the default log view will be used, and now we show the correct log view in the rule flyout. Example setting: ![image](https://github.com/user-attachments/assets/67b03d70-4e87-433a-830e-295f042bce92) |Before|After| |---|---| |![image](https://github.com/user-attachments/assets/8ac9d0d9-5c2f-424d-9b31-cad42bcbf893)|![image](https://github.com/user-attachments/assets/2b727635-8403-4372-9a03-e124f3987ccb)| (cherry picked from commit 9c242ac)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…reation flyout (#189205) (#189299) # Backport This will backport the following commits from `main` to `8.15`: - [[Log threshold] Fix showing the correct log view in the rule creation flyout (#189205)](#189205) <!--- Backport version: 9.4.3 --> ### 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":"2024-07-26T15:11:30Z","message":"[Log threshold] Fix showing the correct log view in the rule creation flyout (#189205)\n\nRelated to #187291\r\n\r\n## Summary\r\n\r\nThis PR passes the rule's logView to the Log threshold rule creation\r\nflyout. Thanks to @Kerry350 and @weltenwort for explaining how this\r\nlogic works ❤️\r\n\r\nFor example, if the log view ID is passed an invalid id, like this:\r\n\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/f9d4ac74-9b16-406e-93e5-141ea82d1687\"\r\nwidth=500 />\r\n\r\nit will fall back to the default log view will be used, and now we show\r\nthe correct log view in the rule flyout.\r\n\r\nExample setting:\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/67b03d70-4e87-433a-830e-295f042bce92)\r\n\r\n|Before|After|\r\n|---|---|\r\n\r\n|![image](https://github.com/user-attachments/assets/8ac9d0d9-5c2f-424d-9b31-cad42bcbf893)|![image](https://github.com/user-attachments/assets/2b727635-8403-4372-9a03-e124f3987ccb)|","sha":"9c242ac7736115a721c14581e8df3fe943bc9cd1","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0"],"title":"[Log threshold] Fix showing the correct log view in the rule creation flyout","number":189205,"url":"#189205 threshold] Fix showing the correct log view in the rule creation flyout (#189205)\n\nRelated to #187291\r\n\r\n## Summary\r\n\r\nThis PR passes the rule's logView to the Log threshold rule creation\r\nflyout. Thanks to @Kerry350 and @weltenwort for explaining how this\r\nlogic works ❤️\r\n\r\nFor example, if the log view ID is passed an invalid id, like this:\r\n\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/f9d4ac74-9b16-406e-93e5-141ea82d1687\"\r\nwidth=500 />\r\n\r\nit will fall back to the default log view will be used, and now we show\r\nthe correct log view in the rule flyout.\r\n\r\nExample setting:\r\n\r\n\r\n![image](#189205 threshold] Fix showing the correct log view in the rule creation flyout (#189205)\n\nRelated to #187291\r\n\r\n## Summary\r\n\r\nThis PR passes the rule's logView to the Log threshold rule creation\r\nflyout. Thanks to @Kerry350 and @weltenwort for explaining how this\r\nlogic works ❤️\r\n\r\nFor example, if the log view ID is passed an invalid id, like this:\r\n\r\n<img\r\nsrc=\"https://github.com/user-attachments/assets/f9d4ac74-9b16-406e-93e5-141ea82d1687\"\r\nwidth=500 />\r\n\r\nit will fall back to the default log view will be used, and now we show\r\nthe correct log view in the rule flyout.\r\n\r\nExample setting:\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/67b03d70-4e87-433a-830e-295f042bce92)\r\n\r\n|Before|After|\r\n|---|---|\r\n\r\n|![image](https://github.com/user-attachments/assets/8ac9d0d9-5c2f-424d-9b31-cad42bcbf893)|![image](https://github.com/user-attachments/assets/2b727635-8403-4372-9a03-e124f3987ccb)|","sha":"9c242ac7736115a721c14581e8df3fe943bc9cd1"}}]}] BACKPORT--> Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
Related to #187291
Summary
This PR passes the rule's logView to the Log threshold rule creation flyout. Thanks to @Kerry350 and @weltenwort for explaining how this logic works ❤️
For example, if the log view ID is passed an invalid id, like this:
it will fall back to the default log view will be used, and now we show the correct log view in the rule flyout.
Example setting: