[8.17] [Security Solution][Notes] change upper limit for max unassociated notes advanced setting to be 10k instead of 1k (#212786) (#212822)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Security Solution][Notes] change upper limit for max unassociated
notes advanced setting to be 10k instead of 1k
(#212786)](https://github.com/elastic/kibana/pull/212786)

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

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

<!--BACKPORT [{"author":{"name":"Philippe
Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2025-02-28T21:21:37Z","message":"[Security
Solution][Notes] change upper limit for max unassociated notes advanced
setting to be 10k instead of 1k (#212786)\n\n## Summary\n\nThis previous
[PR](https://github.com/elastic/kibana/pull/194947) made\nthe maximum
number of unassociated notes an advanced settings so that\nuser can
change the value within a certain limit. The intent was to\nallow that
value to be between 1 and 10,000 (see acceptance criteria of\nthe
[original ticket](https://github.com/elastic/kibana/issues/193097))\nbut
we missed one 0 and the maximum value allowed got set to 1000.\n\nThis
PR fixes that.\n\n#### Before\n\n![Screenshot 2025-02-28 at 9
18\n14 AM](https://github.com/user-attachments/assets/cf1d473c-5bd5-4759-a834-60888b0c8f78)\n\n####
After\n\n![Screenshot 2025-02-28 at 9
18\n47 AM](https://github.com/user-attachments/assets/129ba898-bbad-420a-b615-b0a456640af4)","sha":"eabf95d6dc157d1c1ac2bb8832c7021986285aef","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting:Investigations","backport:all-open","v8.18.0","v9.1.0","v8.19.0","v8.17.3","v8.16.5"],"title":"[Security
Solution][Notes] change upper limit for max unassociated notes advanced
setting to be 10k instead of
1k","number":212786,"url":"https://github.com/elastic/kibana/pull/212786","mergeCommit":{"message":"[Security
Solution][Notes] change upper limit for max unassociated notes advanced
setting to be 10k instead of 1k (#212786)\n\n## Summary\n\nThis previous
[PR](https://github.com/elastic/kibana/pull/194947) made\nthe maximum
number of unassociated notes an advanced settings so that\nuser can
change the value within a certain limit. The intent was to\nallow that
value to be between 1 and 10,000 (see acceptance criteria of\nthe
[original ticket](https://github.com/elastic/kibana/issues/193097))\nbut
we missed one 0 and the maximum value allowed got set to 1000.\n\nThis
PR fixes that.\n\n#### Before\n\n![Screenshot 2025-02-28 at 9
18\n14 AM](https://github.com/user-attachments/assets/cf1d473c-5bd5-4759-a834-60888b0c8f78)\n\n####
After\n\n![Screenshot 2025-02-28 at 9
18\n47 AM](https://github.com/user-attachments/assets/129ba898-bbad-420a-b615-b0a456640af4)","sha":"eabf95d6dc157d1c1ac2bb8832c7021986285aef"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x","8.17","8.16"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212786","number":212786,"mergeCommit":{"message":"[Security
Solution][Notes] change upper limit for max unassociated notes advanced
setting to be 10k instead of 1k (#212786)\n\n## Summary\n\nThis previous
[PR](https://github.com/elastic/kibana/pull/194947) made\nthe maximum
number of unassociated notes an advanced settings so that\nuser can
change the value within a certain limit. The intent was to\nallow that
value to be between 1 and 10,000 (see acceptance criteria of\nthe
[original ticket](https://github.com/elastic/kibana/issues/193097))\nbut
we missed one 0 and the maximum value allowed got set to 1000.\n\nThis
PR fixes that.\n\n#### Before\n\n![Screenshot 2025-02-28 at 9
18\n14 AM](https://github.com/user-attachments/assets/cf1d473c-5bd5-4759-a834-60888b0c8f78)\n\n####
After\n\n![Screenshot 2025-02-28 at 9
18\n47 AM](https://github.com/user-attachments/assets/129ba898-bbad-420a-b615-b0a456640af4)","sha":"eabf95d6dc157d1c1ac2bb8832c7021986285aef"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Philippe Oberti <philippe.oberti@elastic.co>
This commit is contained in:
Kibana Machine 2025-03-01 10:19:31 +11:00 committed by GitHub
parent 9415fc950d
commit 229aac1adf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -340,7 +340,7 @@ export const initUiSettings = (
value: DEFAULT_MAX_UNASSOCIATED_NOTES,
schema: schema.number({
min: 1,
max: 1000,
max: 10000,
defaultValue: DEFAULT_MAX_UNASSOCIATED_NOTES,
}),
category: [APP_ID],