Skip to content

[Detection Engine] Display dataview pattern as tooltip during rule creation#226909

Merged
rylnd merged 2 commits intoelastic:mainfrom
rylnd:show-dataview-indexes
Jul 11, 2025
Merged

[Detection Engine] Display dataview pattern as tooltip during rule creation#226909
rylnd merged 2 commits intoelastic:mainfrom
rylnd:show-dataview-indexes

Conversation

@rylnd
Copy link
Contributor

@rylnd rylnd commented Jul 7, 2025

Summary

The story behind this feature is a little circuitous: the original issue was about the full dataview index pattern being truncated, and the first attempt 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

Before:
Screenshot 2025-07-07 at 5 13 34 PM

After:
Screenshot 2025-07-07 at 5 14 26 PM

Checklist

@rylnd rylnd self-assigned this Jul 7, 2025
@rylnd rylnd added release_note:fix Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Rule Creation Security Solution Detection Rule Creation workflow backport:all-open Backport to all branches that could still receive a release Team:Detection Engine Security Solution Detection Engine Area labels Jul 7, 2025
@rylnd
Copy link
Contributor Author

rylnd commented Jul 8, 2025

/ci

@rylnd rylnd marked this pull request as ready for review July 8, 2025 21:32
@rylnd rylnd requested a review from a team as a code owner July 8, 2025 21:32
@rylnd rylnd requested a review from denar50 July 8, 2025 21:32
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-engine (Team:Detection Engine)

Copy link
Contributor

@denar50 denar50 left a comment

Choose a reason for hiding this comment

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

LGTM!

@rylnd rylnd enabled auto-merge (squash) July 11, 2025 00:43
@rylnd rylnd merged commit 7086158 into elastic:main Jul 11, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.18, 8.19, 9.0, 9.1

https://github.com/elastic/kibana/actions/runs/16209848183

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

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

History

cc @rylnd

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 11, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Jul 11, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Jul 11, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Jul 11, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Jul 11, 2025
…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
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.17
8.18
8.19
9.0
9.1

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 11, 2025
…ule creation (#226909) (#227557)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Detection Engine] Display dataview pattern as tooltip during rule
creation (#226909)](#226909)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ryland
Herrick","email":"ryalnd@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T01:40:55Z","message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Data
Views","Feature:Rule Creation","backport:all-open","Team:Detection
Engine","v9.2.0"],"title":"[Detection Engine] Display dataview pattern
as tooltip during rule
creation","number":226909,"url":"https://github.com/elastic/kibana/pull/226909","mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226909","number":226909,"mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}}]}]
BACKPORT-->

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
kibanamachine added a commit that referenced this pull request Jul 11, 2025
…ule creation (#226909) (#227556)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Detection Engine] Display dataview pattern as tooltip during rule
creation (#226909)](#226909)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ryland
Herrick","email":"ryalnd@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T01:40:55Z","message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Data
Views","Feature:Rule Creation","backport:all-open","Team:Detection
Engine","v9.2.0"],"title":"[Detection Engine] Display dataview pattern
as tooltip during rule
creation","number":226909,"url":"https://github.com/elastic/kibana/pull/226909","mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226909","number":226909,"mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}}]}]
BACKPORT-->

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
kibanamachine added a commit that referenced this pull request Jul 11, 2025
…rule creation (#226909) (#227553)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Detection Engine] Display dataview pattern as tooltip during rule
creation (#226909)](#226909)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ryland
Herrick","email":"ryalnd@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T01:40:55Z","message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Data
Views","Feature:Rule Creation","backport:all-open","Team:Detection
Engine","v9.2.0"],"title":"[Detection Engine] Display dataview pattern
as tooltip during rule
creation","number":226909,"url":"https://github.com/elastic/kibana/pull/226909","mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226909","number":226909,"mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}}]}]
BACKPORT-->

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
kibanamachine added a commit that referenced this pull request Jul 11, 2025
…rule creation (#226909) (#227554)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Detection Engine] Display dataview pattern as tooltip during rule
creation (#226909)](#226909)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ryland
Herrick","email":"ryalnd@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T01:40:55Z","message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Data
Views","Feature:Rule Creation","backport:all-open","Team:Detection
Engine","v9.2.0"],"title":"[Detection Engine] Display dataview pattern
as tooltip during rule
creation","number":226909,"url":"https://github.com/elastic/kibana/pull/226909","mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226909","number":226909,"mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}}]}]
BACKPORT-->

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
@kibanamachine kibanamachine added v8.18.4 backport missing Added to PRs automatically when the are determined to be missing a backport. labels Jul 11, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @rylnd

1 similar comment
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @rylnd

@rylnd rylnd deleted the show-dataview-indexes branch July 15, 2025 20:12
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @rylnd

@rylnd
Copy link
Contributor Author

rylnd commented Jul 16, 2025

💚 All backports created successfully

Status Branch Result
8.19

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

Questions ?

Please refer to the Backport tool documentation

rylnd added a commit to rylnd/kibana that referenced this pull request Jul 16, 2025
…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)
rylnd added a commit to kibanamachine/kibana that referenced this pull request Jul 16, 2025
…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 added a commit that referenced this pull request Jul 16, 2025
…rule creation (#226909) (#227555)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Detection Engine] Display dataview pattern as tooltip during rule
creation (#226909)](#226909)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ryland
Herrick","email":"ryalnd@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T01:40:55Z","message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Data
Views","Feature:Rule Creation","backport:all-open","Team:Detection
Engine","v9.2.0"],"title":"[Detection Engine] Display dataview pattern
as tooltip during rule
creation","number":226909,"url":"https://github.com/elastic/kibana/pull/226909","mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226909","number":226909,"mergeCommit":{"message":"[Detection
Engine] Display dataview pattern as tooltip during rule creation
(#226909)\n\n## Summary\n\nThe story behind this feature is a little
circuitous: the
[original\nissue](#137823) was
about the\nfull dataview index pattern being truncated, and the
[first\nattempt](#214495) to fix
this did\nso by instead displaying the data view _name_ instead of its
index\npattern. However, this meant that users were less likely to see
_any_\nindex pattern associated to the dataview, rather than the full
pattern.\n\nThis PR finishes the story by, in addition to preferring the
data view's\n_name_ as the dropdown option, adds its full index pattern
as the\n_tooltip_ for the corresponding option.\n\n## What this PR
does\n* Adds the index pattern for the dataview as a tooltip on the Data
View\ndropdown during rule creation\n\n## Screenshots\n\n<kbd>Before:
\n<img width=\"894\" alt=\"Screenshot 2025-07-07 at 5 13
34 PM\"\nsrc=\"https://github.com/user-attachments/assets/1079f8c0-148f-4b1f-9469-ab17fc408d64\"\n/>\n\n</kbd>\n\n<kbd>After:\n<img
width=\"894\" alt=\"Screenshot 2025-07-07 at 5 14
26 PM\"\nsrc=\"https://github.com/user-attachments/assets/335e54f9-9c6b-4833-8d1d-a254329ab7c1\"\n/>\n\n</kbd>\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"7086158afef2d5dfa67efdd76ba9962df1e1af95"}}]}]
BACKPORT-->

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
@kibanamachine kibanamachine added v8.19.0 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Jul 16, 2025
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:all-open Backport to all branches that could still receive a release Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Rule Creation Security Solution Detection Rule Creation workflow release_note:fix Team:Detection Engine Security Solution Detection Engine Area v8.17.9 v8.18.4 v8.19.0 v9.0.4 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants