Skip to content

Commit 217bf4d

Browse files
authored
Ensure that .keyword fields are selectable in the group by dropdown in bucket monitor (#1234)
Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent 8253286 commit 217bf4d

File tree

1 file changed

+5
-0
lines changed
  • public/pages/CreateMonitor/containers/DefineMonitor/utils

1 file changed

+5
-0
lines changed

public/pages/CreateMonitor/containers/DefineMonitor/utils/mappings.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ export function getTypeFromMappings(mappings, dataTypes, path = '') {
3636

3737
if (dataTypes[type]) dataTypes[type].add(path);
3838
else dataTypes[type] = new Set([path]);
39+
40+
if (mappings.fields && mappings.fields.keyword) {
41+
if (dataTypes["keyword"]) dataTypes["keyword"].add(`${path}.keyword`);
42+
else dataTypes["keyword"] = new Set([`${path}.keyword`]);
43+
}
3944
return dataTypes;
4045
}
4146

0 commit comments

Comments
 (0)