Commit 52a1373
# Backport
This will backport the following commits from `main` to `9.2`:
- [[Security Solution] [Bug] The schedule can not be created if any LLM
model is selected as the default (#239049)
(#239112)](#239112)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Ievgen
Sorokopud","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-15T14:24:48Z","message":"[Security
Solution] [Bug] The schedule can not be created if any LLM model is
selected as the default (#239049) (#239112)\n\n## Summary\n\nBUG:
https://github.com/elastic/kibana/issues/239049\n\nThese changes fix the
issue where user cannot create a new attack\ndiscovery schedule when the
default LLM has been selected.\n\nThe issue happens because internally
the connector selector implicitly\nsets the default connector without
notifying parent controls. Also, the\nnature of the form that we use for
the create and edit schedules flows\nis that we need to initialize it
with the correct value or update it\nonce the form ha been mounted and
rendered.\n\nAs a fix for the upcoming release, we would allow parent
components to\nenforce user to select connector while creating the
attack discovery\nschedule - even when the default LLM exists.\n\n###
Recording of the
fix\n\n\nhttps://github.com/user-attachments/assets/f05d4959-e218-4c99-81a6-02b657bcb39d","sha":"168f852cd6b3c5ed09178bdea466a6befa54422e","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:
SecuritySolution","Team:Security Generative
AI","backport:version","v9.2.0","v9.3.0"],"title":"[Security Solution]
[Bug] The schedule can not be created if any LLM model is selected as
the default
(#239049)","number":239112,"url":"https://github.com/elastic/kibana/pull/239112","mergeCommit":{"message":"[Security
Solution] [Bug] The schedule can not be created if any LLM model is
selected as the default (#239049) (#239112)\n\n## Summary\n\nBUG:
https://github.com/elastic/kibana/issues/239049\n\nThese changes fix the
issue where user cannot create a new attack\ndiscovery schedule when the
default LLM has been selected.\n\nThe issue happens because internally
the connector selector implicitly\nsets the default connector without
notifying parent controls. Also, the\nnature of the form that we use for
the create and edit schedules flows\nis that we need to initialize it
with the correct value or update it\nonce the form ha been mounted and
rendered.\n\nAs a fix for the upcoming release, we would allow parent
components to\nenforce user to select connector while creating the
attack discovery\nschedule - even when the default LLM exists.\n\n###
Recording of the
fix\n\n\nhttps://github.com/user-attachments/assets/f05d4959-e218-4c99-81a6-02b657bcb39d","sha":"168f852cd6b3c5ed09178bdea466a6befa54422e"}},"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/239112","number":239112,"mergeCommit":{"message":"[Security
Solution] [Bug] The schedule can not be created if any LLM model is
selected as the default (#239049) (#239112)\n\n## Summary\n\nBUG:
https://github.com/elastic/kibana/issues/239049\n\nThese changes fix the
issue where user cannot create a new attack\ndiscovery schedule when the
default LLM has been selected.\n\nThe issue happens because internally
the connector selector implicitly\nsets the default connector without
notifying parent controls. Also, the\nnature of the form that we use for
the create and edit schedules flows\nis that we need to initialize it
with the correct value or update it\nonce the form ha been mounted and
rendered.\n\nAs a fix for the upcoming release, we would allow parent
components to\nenforce user to select connector while creating the
attack discovery\nschedule - even when the default LLM exists.\n\n###
Recording of the
fix\n\n\nhttps://github.com/user-attachments/assets/f05d4959-e218-4c99-81a6-02b657bcb39d","sha":"168f852cd6b3c5ed09178bdea466a6befa54422e"}}]}]
BACKPORT-->
Co-authored-by: Ievgen Sorokopud <[email protected]>
1 parent 98285bf commit 52a1373
File tree
3 files changed
+19
-1
lines changed- x-pack
- solutions/security/plugins/security_solution/public/attack_discovery/pages/settings_flyout/schedule/form_fields/connector_selector_field
3 files changed
+19
-1
lines changedLines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
132 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
| |||
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
| 169 | + | |
162 | 170 | | |
163 | 171 | | |
164 | 172 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments