Skip to content

Commit

Permalink
[Security Solution] [Timeline] Add filter.meta.relation to timeline f…
Browse files Browse the repository at this point in the history
…ilters saved object mapping (#161722)

## Summary

Without this mapping, timelines that try to make use of a top level OR
filter from the unified search filter builder cannot be saved,
everything works as expected with this change.

---------

Co-authored-by: kibanamachine <[email protected]>
  • Loading branch information
kqualters-elastic and kibanamachine authored Jul 12, 2023
1 parent c2559ac commit 2caa973
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 45 deletions.
91 changes: 47 additions & 44 deletions packages/kbn-check-mappings-update-cli/current_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,30 @@
}
}
},
"tag": {
"properties": {
"name": {
"type": "text"
},
"description": {
"type": "text"
},
"color": {
"type": "text"
}
}
},
"search": {
"dynamic": false,
"properties": {
"title": {
"type": "text"
},
"description": {
"type": "text"
}
}
},
"alert": {
"dynamic": false,
"properties": {
Expand Down Expand Up @@ -874,30 +898,6 @@
}
}
},
"tag": {
"properties": {
"name": {
"type": "text"
},
"description": {
"type": "text"
},
"color": {
"type": "text"
}
}
},
"search": {
"dynamic": false,
"properties": {
"title": {
"type": "text"
},
"description": {
"type": "text"
}
}
},
"graph-workspace": {
"properties": {
"description": {
Expand Down Expand Up @@ -2259,6 +2259,14 @@
}
}
},
"infrastructure-monitoring-log-view": {
"dynamic": false,
"properties": {
"name": {
"type": "text"
}
}
},
"ml-job": {
"properties": {
"job_id": {
Expand Down Expand Up @@ -2796,6 +2804,9 @@
},
"value": {
"type": "text"
},
"relation": {
"type": "keyword"
}
}
},
Expand Down Expand Up @@ -2932,14 +2943,6 @@
"dynamic": false,
"properties": {}
},
"infrastructure-monitoring-log-view": {
"dynamic": false,
"properties": {
"name": {
"type": "text"
}
}
},
"metrics-explorer-view": {
"dynamic": false,
"properties": {}
Expand Down Expand Up @@ -2976,18 +2979,6 @@
}
}
},
"enterprise_search_telemetry": {
"dynamic": false,
"properties": {}
},
"app_search_telemetry": {
"dynamic": false,
"properties": {}
},
"workplace_search_telemetry": {
"dynamic": false,
"properties": {}
},
"apm-indices": {
"dynamic": false,
"properties": {}
Expand Down Expand Up @@ -3019,5 +3010,17 @@
"type": "text"
}
}
},
"enterprise_search_telemetry": {
"dynamic": false,
"properties": {}
},
"app_search_telemetry": {
"dynamic": false,
"properties": {}
},
"workplace_search_telemetry": {
"dynamic": false,
"properties": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('checking migration metadata changes on all registered SO types', () =>
"security-rule": "07abb4d7e707d91675ec0495c73816394c7b521f",
"security-solution-signals-migration": "9d99715fe5246f19de2273ba77debd2446c36bb1",
"siem-detection-engine-rule-actions": "54f08e23887b20da7c805fab7c60bc67c428aff9",
"siem-ui-timeline": "670a02b3c2a399bca781ff1e4781793b208b471a",
"siem-ui-timeline": "820b5a7c478cd4d5ae9cd92ce0d05ac988fee69c",
"siem-ui-timeline-note": "0a32fb776907f596bedca292b8c646496ae9c57b",
"siem-ui-timeline-pinned-event": "082daa3ce647b33873f6abccf340bdfa32057c8d",
"slo": "2048ab6791df2e1ae0936f29c20765cb8d2fcfaa",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ export const timelineSavedObjectMappings: SavedObjectsType['mappings'] = {
value: {
type: 'text',
},
relation: {
type: 'keyword',
},
},
},
exists: {
Expand Down

0 comments on commit 2caa973

Please sign in to comment.