[8.17] [Security Solution] [Detections] Disables sorting ip ranges in value list modal (#210922) (#211007)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Security Solution] [Detections] Disables sorting ip ranges in value
list modal (#210922)](https://github.com/elastic/kibana/pull/210922)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Devin W.
Hurley","email":"devin.hurley@elastic.co"},"sourceCommit":{"committedDate":"2025-02-13T13:37:37Z","message":"[Security
Solution] [Detections] Disables sorting ip ranges in value list modal
(#210922)\n\n## Summary\n\nDisables sorting ip range values in a value
list until this bug is\nfixed in elasticsearch.\n\nrelated:
https://github.com/elastic/elasticsearch/issues/122358","sha":"18ef744a9c3bf5b5eff585cbddcc4cb34eab9b8f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","review","release_note:fix","v9.0.0","sdh-linked","Team:Detection
Engine","backport:version","v8.18.0","v9.1.0","v8.17.3"],"title":"[Security
Solution] [Detections] Disables sorting ip ranges in value list
modal","number":210922,"url":"https://github.com/elastic/kibana/pull/210922","mergeCommit":{"message":"[Security
Solution] [Detections] Disables sorting ip ranges in value list modal
(#210922)\n\n## Summary\n\nDisables sorting ip range values in a value
list until this bug is\nfixed in elasticsearch.\n\nrelated:
https://github.com/elastic/elasticsearch/issues/122358","sha":"18ef744a9c3bf5b5eff585cbddcc4cb34eab9b8f"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.17"],"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/210922","number":210922,"mergeCommit":{"message":"[Security
Solution] [Detections] Disables sorting ip ranges in value list modal
(#210922)\n\n## Summary\n\nDisables sorting ip range values in a value
list until this bug is\nfixed in elasticsearch.\n\nrelated:
https://github.com/elastic/elasticsearch/issues/122358","sha":"18ef744a9c3bf5b5eff585cbddcc4cb34eab9b8f"}},{"branch":"8.17","label":"v8.17.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
This commit is contained in:
Kibana Machine 2025-02-14 02:38:33 +11:00 committed by GitHub
parent bd4b57de68
commit c7cd1bb8c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ export const ListItemTable = ({
name: COLUMN_VALUE,
render: (value, item) =>
canWriteIndex ? <InlineEditListItemValue listItem={item} key={value} /> : value,
sortable: list.type !== 'text',
sortable: list.type !== 'text' && list.type !== 'ip_range',
},
{
field: LIST_ITEM_FIELDS.updatedAt,