[8.9] [Security Solution] [Timeline] Add filter.meta.relation to timeline filters saved object mapping (#161722) (#161817)

# Backport

This will backport the following commits from `main` to `8.9`:
- [[Security Solution] [Timeline] Add filter.meta.relation to timeline
filters saved object mapping
(#161722)](https://github.com/elastic/kibana/pull/161722)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Kevin
Qualters","email":"56408403+kqualters-elastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-07-12T22:09:13Z","message":"[Security
Solution] [Timeline] Add filter.meta.relation to timeline filters saved
object mapping (#161722)\n\n## Summary\r\n\r\nWithout this mapping,
timelines that try to make use of a top level OR\r\nfilter from the
unified search filter builder cannot be saved,\r\neverything works as
expected with this change.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2caa973c61735002df5b9aaf444f1ca543c279c1","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat
Hunting:Investigations","v8.9.0","v8.10.0"],"number":161722,"url":"https://github.com/elastic/kibana/pull/161722","mergeCommit":{"message":"[Security
Solution] [Timeline] Add filter.meta.relation to timeline filters saved
object mapping (#161722)\n\n## Summary\r\n\r\nWithout this mapping,
timelines that try to make use of a top level OR\r\nfilter from the
unified search filter builder cannot be saved,\r\neverything works as
expected with this change.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2caa973c61735002df5b9aaf444f1ca543c279c1"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161722","number":161722,"mergeCommit":{"message":"[Security
Solution] [Timeline] Add filter.meta.relation to timeline filters saved
object mapping (#161722)\n\n## Summary\r\n\r\nWithout this mapping,
timelines that try to make use of a top level OR\r\nfilter from the
unified search filter builder cannot be saved,\r\neverything works as
expected with this change.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"2caa973c61735002df5b9aaf444f1ca543c279c1"}}]}]
BACKPORT-->

Co-authored-by: Kevin Qualters <56408403+kqualters-elastic@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2023-07-12 19:30:11 -04:00 committed by GitHub
parent 98978c8a16
commit 425faa5891
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": {
@ -2154,6 +2154,14 @@
}
}
},
"infrastructure-monitoring-log-view": {
"dynamic": false,
"properties": {
"name": {
"type": "text"
}
}
},
"ml-job": {
"properties": {
"job_id": {
@ -2691,6 +2699,9 @@
},
"value": {
"type": "text"
},
"relation": {
"type": "keyword"
}
}
},
@ -2827,14 +2838,6 @@
"dynamic": false,
"properties": {}
},
"infrastructure-monitoring-log-view": {
"dynamic": false,
"properties": {
"name": {
"type": "text"
}
}
},
"metrics-explorer-view": {
"dynamic": false,
"properties": {}
@ -2871,18 +2874,6 @@
}
}
},
"enterprise_search_telemetry": {
"dynamic": false,
"properties": {}
},
"app_search_telemetry": {
"dynamic": false,
"properties": {}
},
"workplace_search_telemetry": {
"dynamic": false,
"properties": {}
},
"apm-indices": {
"dynamic": false,
"properties": {}
@ -2914,5 +2905,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: {