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

[Log threshold] Fix showing the correct log view in the rule creation flyout #189205

Merged

Conversation

maryam-saeidi
Copy link
Member

@maryam-saeidi maryam-saeidi commented Jul 25, 2024

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:

image

Before After
image image

@maryam-saeidi maryam-saeidi added release_note:fix backport:prev-minor Backport to the previous minor version (i.e. one version back from main) Team:obs-ux-management Observability Management User Experience Team labels Jul 25, 2024
@maryam-saeidi maryam-saeidi self-assigned this Jul 25, 2024
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner July 25, 2024 16:23
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Jul 25, 2024
@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jul 25, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #81 / management index pattern not found redirects to the main view if data view is missing

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
infra 1.5MB 1.5MB +45.0B

History

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

cc @maryam-saeidi

Copy link
Contributor

@benakansara benakansara left a comment

Choose a reason for hiding this comment

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

LGTM, nice fix!

@maryam-saeidi maryam-saeidi merged commit 9c242ac into elastic:main Jul 26, 2024
34 checks passed
@maryam-saeidi maryam-saeidi deleted the 187291-fix-log-threshold-log-view branch July 26, 2024 15:11
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 26, 2024
… 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)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 26, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project release_note:fix Team:obs-ux-management Observability Management User Experience Team v8.15.0 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants