[Security Solution] [Timeline] Add filter.meta.relation to timeline filters 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 <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Kevin Qualters 2023-07-12 18:09:13 -04:00 committed by GitHub
parent c2559ac655
commit 2caa973c61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 45 deletions

View file

@ -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": {
@ -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": {
@ -2259,6 +2259,14 @@
}
}
},
"infrastructure-monitoring-log-view": {
"dynamic": false,
"properties": {
"name": {
"type": "text"
}
}
},
"ml-job": {
"properties": {
"job_id": {
@ -2796,6 +2804,9 @@
},
"value": {
"type": "text"
},
"relation": {
"type": "keyword"
}
}
},
@ -2932,14 +2943,6 @@
"dynamic": false,
"properties": {}
},
"infrastructure-monitoring-log-view": {
"dynamic": false,
"properties": {
"name": {
"type": "text"
}
}
},
"metrics-explorer-view": {
"dynamic": false,
"properties": {}
@ -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": {}
@ -3019,5 +3010,17 @@
"type": "text"
}
}
},
"enterprise_search_telemetry": {
"dynamic": false,
"properties": {}
},
"app_search_telemetry": {
"dynamic": false,
"properties": {}
},
"workplace_search_telemetry": {
"dynamic": false,
"properties": {}
}
}

View file

@ -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",

View file

@ -213,6 +213,9 @@ export const timelineSavedObjectMappings: SavedObjectsType['mappings'] = {
value: {
type: 'text',
},
relation: {
type: 'keyword',
},
},
},
exists: {