Skip to content

Commit b0f9319

Browse files
[9.0] [Custom threshold rule] Allow group for ip type fields !! (#216062) (#218338)
# Backport This will backport the following commits from `main` to `9.0`: - [[Custom threshold rule] Allow group for ip type fields !! (#216062)](#216062) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-15T18:15:02Z","message":"[Custom threshold rule] Allow group for ip type fields !! (#216062)\n\nAllow group by for ip fields !!\n\n---------\n\nCo-authored-by: Faisal Kanout <[email protected]>\nCo-authored-by: kibanamachine <[email protected]>","sha":"83f3d614ccb66bca3aa626a6db39c0f41eb1a9f1","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:all-open","Team:obs-ux-management","v9.1.0"],"title":"[Custom threshold rule] Allow group for ip type fields !!","number":216062,"url":"https://github.com/elastic/kibana/pull/216062","mergeCommit":{"message":"[Custom threshold rule] Allow group for ip type fields !! (#216062)\n\nAllow group by for ip fields !!\n\n---------\n\nCo-authored-by: Faisal Kanout <[email protected]>\nCo-authored-by: kibanamachine <[email protected]>","sha":"83f3d614ccb66bca3aa626a6db39c0f41eb1a9f1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216062","number":216062,"mergeCommit":{"message":"[Custom threshold rule] Allow group for ip type fields !! (#216062)\n\nAllow group by for ip fields !!\n\n---------\n\nCo-authored-by: Faisal Kanout <[email protected]>\nCo-authored-by: kibanamachine <[email protected]>","sha":"83f3d614ccb66bca3aa626a6db39c0f41eb1a9f1"}}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]>
1 parent 54ba9da commit b0f9319

File tree

1 file changed

+1
-1
lines changed
  • x-pack/solutions/observability/plugins/observability/public/components/custom_threshold/components

1 file changed

+1
-1
lines changed

x-pack/solutions/observability/plugins/observability/public/components/custom_threshold/components/group_by.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function GroupBy({ options, onChange, fields, ...rest }: Props) {
5252
singleSelection={false}
5353
selectedOptions={selectedOptions}
5454
options={fields
55-
.filter((f) => f.aggregatable && f.type === 'string')
55+
.filter((f) => f.aggregatable && (f.type === 'string' || f.type === 'ip'))
5656
.map((f) => ({ label: f.name }))}
5757
onChange={handleChange}
5858
isClearable={true}

0 commit comments

Comments
 (0)