Skip to content

Commit 18e14d9

Browse files
[9.2] [Automatic Migrations] Deselect current selection after index pattern updated (#239245) (#239251)
# Backport This will backport the following commits from `main` to `9.2`: - [[Automatic Migrations] Deselect current selection after index pattern updated (#239245)](#239245) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Kevin Qualters","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-16T01:36:22Z","message":"[Automatic Migrations] Deselect current selection after index pattern updated (#239245)\n\n## Summary\n\nIssue: [#239062](https://github.com/elastic/kibana/issues/239062)\n\nWhen a user selects some rule migrations on the page and updates the\nindex pattern placeholder to an actual index pattern, previously the\nselection would remain. This fixes that problem by setting the selection\nto an empty array on successfully applying the new pattern.\n\n\n\nhttps://github.com/user-attachments/assets/21816e68-a80e-4730-8d09-957f0a705cfe\n\n\n\n### Checklist\n\n- [x] [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":"12007d55f352d953dbd08a0dfe56321842adf7c8","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Threat Hunting:Investigations","backport:version","v9.2.0","v9.3.0"],"title":"[Automatic Migrations] Deselect current selection after index pattern updated","number":239245,"url":"https://github.com/elastic/kibana/pull/239245","mergeCommit":{"message":"[Automatic Migrations] Deselect current selection after index pattern updated (#239245)\n\n## Summary\n\nIssue: [#239062](https://github.com/elastic/kibana/issues/239062)\n\nWhen a user selects some rule migrations on the page and updates the\nindex pattern placeholder to an actual index pattern, previously the\nselection would remain. This fixes that problem by setting the selection\nto an empty array on successfully applying the new pattern.\n\n\n\nhttps://github.com/user-attachments/assets/21816e68-a80e-4730-8d09-957f0a705cfe\n\n\n\n### Checklist\n\n- [x] [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":"12007d55f352d953dbd08a0dfe56321842adf7c8"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/239245","number":239245,"mergeCommit":{"message":"[Automatic Migrations] Deselect current selection after index pattern updated (#239245)\n\n## Summary\n\nIssue: [#239062](https://github.com/elastic/kibana/issues/239062)\n\nWhen a user selects some rule migrations on the page and updates the\nindex pattern placeholder to an actual index pattern, previously the\nselection would remain. This fixes that problem by setting the selection\nto an empty array on successfully applying the new pattern.\n\n\n\nhttps://github.com/user-attachments/assets/21816e68-a80e-4730-8d09-957f0a705cfe\n\n\n\n### Checklist\n\n- [x] [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":"12007d55f352d953dbd08a0dfe56321842adf7c8"}}]}] BACKPORT--> Co-authored-by: Kevin Qualters <[email protected]>
1 parent 51c7458 commit 18e14d9

File tree

1 file changed

+1
-0
lines changed
  • x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table

1 file changed

+1
-0
lines changed

x-pack/solutions/security/plugins/security_solution/public/siem_migrations/rules/components/rules_table/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export const MigrationRulesTable: React.FC<MigrationRulesTableProps> = React.mem
219219
ids: selectedMigrationRules.map((rule) => rule.id),
220220
});
221221
setTableLoading(false);
222+
setSelectedMigrationRules([]);
222223
},
223224
[migrationId, updateIndexPattern, selectedMigrationRules, setTableLoading]
224225
);

0 commit comments

Comments
 (0)