Skip to content

[8.17] [Detection Engine] Display dataview pattern as tooltip during rule creation (#226909)#227553

Merged
kibanamachine merged 1 commit intoelastic:8.17from
kibanamachine:backport/8.17/pr-226909
Jul 11, 2025
Merged

[8.17] [Detection Engine] Display dataview pattern as tooltip during rule creation (#226909)#227553
kibanamachine merged 1 commit intoelastic:8.17from
kibanamachine:backport/8.17/pr-226909

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.17:

Questions ?

Please refer to the Backport tool documentation

…eation (elastic#226909)

## Summary

The story behind this feature is a little circuitous: the [original
issue](elastic#137823) was about the
full dataview index pattern being truncated, and the [first
attempt](elastic#214495) to fix this did
so by instead displaying the data view _name_ instead of its index
pattern. However, this meant that users were less likely to see _any_
index pattern associated to the dataview, rather than the full pattern.

This PR finishes the story by, in addition to preferring the data view's
_name_ as the dropdown option, adds its full index pattern as the
_tooltip_ for the corresponding option.

## What this PR does
* Adds the index pattern for the dataview as a tooltip on the Data View
dropdown during rule creation

## Screenshots

<kbd>Before:
<img width="894" alt="Screenshot 2025-07-07 at 5 13 34 PM"
src="https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64"
/>

</kbd>

<kbd>After:
<img width="894" alt="Screenshot 2025-07-07 at 5 14 26 PM"
src="https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1"
/>

</kbd>

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 7086158)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 11, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) July 11, 2025 01:47
@kibanamachine kibanamachine merged commit 94f6ed7 into elastic:8.17 Jul 11, 2025
11 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #7 / Policy Advanced Settings section should expand and collapse section when button is clicked

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
securitySolution 8.8MB 8.8MB +17.0B

cc @rylnd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants