Skip to content

[Security Solution] Remove null in confirmation dialog when bulk editing index patterns for rules.#236572

Merged
sdesalas merged 1 commit intoelastic:mainfrom
sdesalas:confirmation-dialog-shows-null-when-bulk-editing-index-patterns
Oct 1, 2025
Merged

[Security Solution] Remove null in confirmation dialog when bulk editing index patterns for rules.#236572
sdesalas merged 1 commit intoelastic:mainfrom
sdesalas:confirmation-dialog-shows-null-when-bulk-editing-index-patterns

Conversation

@sdesalas
Copy link
Member

@sdesalas sdesalas commented Sep 26, 2025

Resolves: #235794

Summary

This PR removes a null value appearing on a success confirmation dialog when bulk-editing multiple security rules and setting a new index pattern.

This is done by swapping null for empty string and adding unit tests for explainBulkExitSucess().

Testing

To test this PR please checkout the relevant branch and run kibana locally.

  1. Security App > Rules > Detection Rules (SIEM)
  2. Make sure several rules are created or pre installed.
  3. Select 3 rules > Bulk actions > Index patterns > Add Index patterns
  4. Add index pattern (ie test123-*) > Save

Expected Result:

  1. Dialog shows: Rules Updated: You've successfully updated 3 rules.

Click to see detailed testing steps (screenshots)

@sdesalas sdesalas added Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team release_note:skip Skip the PR/issue when compiling release notes v9.2.0 bug Fixes for quality problems that affect the customer experience release_note:fix Feature:Rule Management Security Solution Detection Rule Management area and removed release_note:skip Skip the PR/issue when compiling release notes labels Sep 26, 2025
@sdesalas sdesalas requested a review from banderror September 26, 2025 11:28
@sdesalas sdesalas self-assigned this Sep 26, 2025
@sdesalas sdesalas changed the title [Security Solution] Swap null for empty string in confirmation dialog when bulk editing rules. [Security Solution] Remove null in confirmation dialog when bulk editing rules. Sep 26, 2025
@sdesalas sdesalas changed the title [Security Solution] Remove null in confirmation dialog when bulk editing rules. [Security Solution] Remove null in confirmation dialog when bulk editing index patterns for rules. Sep 26, 2025
@sdesalas sdesalas force-pushed the confirmation-dialog-shows-null-when-bulk-editing-index-patterns branch from 220bef3 to 5971d98 Compare September 26, 2025 14:00
@sdesalas sdesalas added v8.18.8 and removed v8.18.8 labels Sep 29, 2025
@sdesalas sdesalas force-pushed the confirmation-dialog-shows-null-when-bulk-editing-index-patterns branch from acbfdbf to c39e12f Compare September 30, 2025 07:48
@sdesalas sdesalas added v8.18.8 v8.19.5 v9.0.8 v9.1.5 backport:version Backport to applied version labels ci:project-deploy-security Create a Security Serverless Project ci:cloud-deploy Create or update a Cloud deployment labels Sep 30, 2025
@elasticmachine
Copy link
Contributor

elasticmachine commented Sep 30, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #3 / Core Analysis - Entity Store @ess CRUD API - Upsert upsert user Should update an existing user

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 10.8MB 10.8MB -2.0B

History

cc @sdesalas

@sdesalas sdesalas marked this pull request as ready for review September 30, 2025 10:05
@sdesalas sdesalas requested a review from a team as a code owner September 30, 2025 10:05
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

@sdesalas sdesalas enabled auto-merge (squash) September 30, 2025 10:11
@banderror banderror requested a review from maximpn September 30, 2025 12:02
Copy link
Contributor

@maximpn maximpn left a comment

Choose a reason for hiding this comment

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

@sdesalas Thanks for fixing the bug and adding unit tests 🙏

The fix is trivial and works well locally 👍

@sdesalas sdesalas merged commit dff0cac into elastic:main Oct 1, 2025
28 checks passed
@kibanamachine
Copy link
Contributor

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

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 1, 2025
…iting index patterns for rules. (elastic#236572)

**Resolves:  elastic#235794**

## Summary

This PR removes a `null` value appearing on a success confirmation
dialog when bulk-editing multiple security rules and setting a new index
pattern.

<img width="500"
src="https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d"
/>

This is done by swapping `null` for empty string and adding unit tests
for `explainBulkExitSucess()`.

### Testing

To test this PR please checkout the relevant branch and run kibana
locally.

1. Security App > `Rules` > `Detection Rules (SIEM)`
2. Make sure several rules are created or pre installed.
3. Select 3 rules > `Bulk actions` > `Index patterns` > `Add Index
patterns`
4. Add index pattern (ie test123-*) > `Save`

Expected Result:

5. Dialog shows: `Rules Updated: You've successfully updated 3 rules.`

<details>
<summary><h3>Click to see detailed testing steps
(screenshots)</h3></summary>

<img width="800"
src="https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615"
/>

<img width="800"
src="https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7"
/>

<img width="800"
src="https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0"
/>

</details>

(cherry picked from commit dff0cac)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 1, 2025
…iting index patterns for rules. (elastic#236572)

**Resolves:  elastic#235794**

## Summary

This PR removes a `null` value appearing on a success confirmation
dialog when bulk-editing multiple security rules and setting a new index
pattern.

<img width="500"
src="https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d"
/>

This is done by swapping `null` for empty string and adding unit tests
for `explainBulkExitSucess()`.

### Testing

To test this PR please checkout the relevant branch and run kibana
locally.

1. Security App > `Rules` > `Detection Rules (SIEM)`
2. Make sure several rules are created or pre installed.
3. Select 3 rules > `Bulk actions` > `Index patterns` > `Add Index
patterns`
4. Add index pattern (ie test123-*) > `Save`

Expected Result:

5. Dialog shows: `Rules Updated: You've successfully updated 3 rules.`

<details>
<summary><h3>Click to see detailed testing steps
(screenshots)</h3></summary>

<img width="800"
src="https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615"
/>

<img width="800"
src="https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7"
/>

<img width="800"
src="https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0"
/>

</details>

(cherry picked from commit dff0cac)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 1, 2025
…iting index patterns for rules. (elastic#236572)

**Resolves:  elastic#235794**

## Summary

This PR removes a `null` value appearing on a success confirmation
dialog when bulk-editing multiple security rules and setting a new index
pattern.

<img width="500"
src="https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d"
/>

This is done by swapping `null` for empty string and adding unit tests
for `explainBulkExitSucess()`.

### Testing

To test this PR please checkout the relevant branch and run kibana
locally.

1. Security App > `Rules` > `Detection Rules (SIEM)`
2. Make sure several rules are created or pre installed.
3. Select 3 rules > `Bulk actions` > `Index patterns` > `Add Index
patterns`
4. Add index pattern (ie test123-*) > `Save`

Expected Result:

5. Dialog shows: `Rules Updated: You've successfully updated 3 rules.`

<details>
<summary><h3>Click to see detailed testing steps
(screenshots)</h3></summary>

<img width="800"
src="https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615"
/>

<img width="800"
src="https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7"
/>

<img width="800"
src="https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0"
/>

</details>

(cherry picked from commit dff0cac)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 1, 2025
…iting index patterns for rules. (elastic#236572)

**Resolves:  elastic#235794**

## Summary

This PR removes a `null` value appearing on a success confirmation
dialog when bulk-editing multiple security rules and setting a new index
pattern.

<img width="500"
src="https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d"
/>

This is done by swapping `null` for empty string and adding unit tests
for `explainBulkExitSucess()`.

### Testing

To test this PR please checkout the relevant branch and run kibana
locally.

1. Security App > `Rules` > `Detection Rules (SIEM)`
2. Make sure several rules are created or pre installed.
3. Select 3 rules > `Bulk actions` > `Index patterns` > `Add Index
patterns`
4. Add index pattern (ie test123-*) > `Save`

Expected Result:

5. Dialog shows: `Rules Updated: You've successfully updated 3 rules.`

<details>
<summary><h3>Click to see detailed testing steps
(screenshots)</h3></summary>

<img width="800"
src="https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615"
/>

<img width="800"
src="https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7"
/>

<img width="800"
src="https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0"
/>

</details>

(cherry picked from commit dff0cac)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
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 Oct 1, 2025
…ulk editing index patterns for rules. (#236572) (#237093)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Security Solution] Remove `null` in confirmation dialog when bulk
editing index patterns for rules.
(#236572)](#236572)

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

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

<!--BACKPORT [{"author":{"name":"Steven de
Salas","email":"sdesalas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-01T10:05:33Z","message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Detections
and Resp","Team: SecuritySolution","Feature:Rule
Management","Team:Detection Rule
Management","ci:cloud-deploy","ci:project-deploy-security","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for
rules.","number":236572,"url":"https://github.com/elastic/kibana/pull/236572","mergeCommit":{"message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236572","number":236572,"mergeCommit":{"message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Steven de Salas <sdesalas@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Oct 1, 2025
…ulk editing index patterns for rules. (#236572) (#237092)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Security Solution] Remove `null` in confirmation dialog when bulk
editing index patterns for rules.
(#236572)](#236572)

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

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

<!--BACKPORT [{"author":{"name":"Steven de
Salas","email":"sdesalas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-01T10:05:33Z","message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Detections
and Resp","Team: SecuritySolution","Feature:Rule
Management","Team:Detection Rule
Management","ci:cloud-deploy","ci:project-deploy-security","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for
rules.","number":236572,"url":"https://github.com/elastic/kibana/pull/236572","mergeCommit":{"message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236572","number":236572,"mergeCommit":{"message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Steven de Salas <sdesalas@users.noreply.github.com>
Co-authored-by: Steven de Salas <steven.desalas@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 1, 2025
…bulk editing index patterns for rules. (#236572) (#237090)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Security Solution] Remove `null` in confirmation dialog when bulk
editing index patterns for rules.
(#236572)](#236572)

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

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

<!--BACKPORT [{"author":{"name":"Steven de
Salas","email":"sdesalas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-01T10:05:33Z","message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Detections
and Resp","Team: SecuritySolution","Feature:Rule
Management","Team:Detection Rule
Management","ci:cloud-deploy","ci:project-deploy-security","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for
rules.","number":236572,"url":"https://github.com/elastic/kibana/pull/236572","mergeCommit":{"message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236572","number":236572,"mergeCommit":{"message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Steven de Salas <sdesalas@users.noreply.github.com>
Co-authored-by: Steven de Salas <steven.desalas@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 1, 2025
…bulk editing index patterns for rules. (#236572) (#237091)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Security Solution] Remove `null` in confirmation dialog when bulk
editing index patterns for rules.
(#236572)](#236572)

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

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

<!--BACKPORT [{"author":{"name":"Steven de
Salas","email":"sdesalas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-01T10:05:33Z","message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Detections
and Resp","Team: SecuritySolution","Feature:Rule
Management","Team:Detection Rule
Management","ci:cloud-deploy","ci:project-deploy-security","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for
rules.","number":236572,"url":"https://github.com/elastic/kibana/pull/236572","mergeCommit":{"message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236572","number":236572,"mergeCommit":{"message":"[Security
Solution] Remove `null` in confirmation dialog when bulk editing index
patterns for rules. (#236572)\n\n**Resolves: #235794**\n\n##
Summary\n\nThis PR removes a `null` value appearing on a success
confirmation\ndialog when bulk-editing multiple security rules and
setting a new index\npattern.\n\n<img
width=\"500\"\nsrc=\"https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d\"\n/>\n\nThis
is done by swapping `null` for empty string and adding unit tests\nfor
`explainBulkExitSucess()`.\n\n### Testing\n\nTo test this PR please
checkout the relevant branch and run kibana\nlocally.\n\n1. Security App
> `Rules` > `Detection Rules (SIEM)`\n2. Make sure several rules are
created or pre installed.\n3. Select 3 rules > `Bulk actions` > `Index
patterns` > `Add Index\npatterns`\n4. Add index pattern (ie test123-*) >
`Save`\n\nExpected Result:\n\n5. Dialog shows: `Rules Updated: You've
successfully updated 3 rules.`\n\n<details>\n<summary><h3>Click to see
detailed testing steps\n(screenshots)</h3></summary>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7\"\n/>\n\n<img
width=\"800\"\nsrc=\"https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0\"\n/>\n\n</details>","sha":"dff0cacee82714765a8463753789d191ebf5c65a"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Steven de Salas <sdesalas@users.noreply.github.com>
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
…iting index patterns for rules. (elastic#236572)

**Resolves:  elastic#235794**

## Summary

This PR removes a `null` value appearing on a success confirmation
dialog when bulk-editing multiple security rules and setting a new index
pattern.

<img width="500"
src="https://github.com/user-attachments/assets/06241840-3bc0-4eec-93b0-94755c77cd9d"
/>

This is done by swapping `null` for empty string and adding unit tests
for `explainBulkExitSucess()`.

### Testing

To test this PR please checkout the relevant branch and run kibana
locally.

1. Security App > `Rules` > `Detection Rules (SIEM)`
2. Make sure several rules are created or pre installed.
3. Select 3 rules > `Bulk actions` > `Index patterns` > `Add Index
patterns`
4. Add index pattern (ie test123-*) > `Save`

Expected Result:

5. Dialog shows: `Rules Updated: You've successfully updated 3 rules.`

<details>
<summary><h3>Click to see detailed testing steps
(screenshots)</h3></summary>

<img width="800"
src="https://github.com/user-attachments/assets/b5cdb962-7e01-4cec-8021-0ff3928b2615"
/>

<img width="800"
src="https://github.com/user-attachments/assets/07692af9-7f61-499a-b813-359aeee6def7"
/>

<img width="800"
src="https://github.com/user-attachments/assets/9332be94-41ab-4325-81d6-acf7ee947fb0"
/>

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

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience ci:cloud-deploy Create or update a Cloud deployment ci:project-deploy-security Create a Security Serverless Project Feature:Rule Management Security Solution Detection Rule Management area release_note:fix Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.18.8 v8.19.5 v9.0.8 v9.1.5 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security Solution] Confirmation dialog shows null when bulk editing index patterns for rules

4 participants