mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Log threshold] Fix showing the correct log view in the rule creation flyout (#189205)
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:
<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:

|Before|After|
|---|---|
||
This commit is contained in:
parent
98a7da9a83
commit
9c242ac773
1 changed files with 4 additions and 1 deletions
|
@ -105,7 +105,10 @@ export const ExpressionEditor: React.FC<
|
|||
<Editor {...props} />
|
||||
</SourceStatusWrapper>
|
||||
) : (
|
||||
<LogViewProvider logViews={logsShared.logViews.client}>
|
||||
<LogViewProvider
|
||||
logViews={logsShared.logViews.client}
|
||||
initialLogViewReference={props.ruleParams.logView}
|
||||
>
|
||||
<SourceStatusWrapper {...props}>
|
||||
<Editor {...props} />
|
||||
</SourceStatusWrapper>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue