OpenSearch/x-pack/plugin
Martijn van Groningen 17bd559253
Fix the timestamp field of a data stream to @timestamp (#59210)
Backport of #59076 to 7.x branch.

The commit makes the following changes:
* The timestamp field of a data stream definition in a composable
  index template can only be set to '@timestamp'.
* Removed custom data stream timestamp field validation and reuse the validation from `TimestampFieldMapper` and
  instead only check that the _timestamp field mapping has been defined on a backing index of a data stream.
* Moved code that injects _timestamp meta field mapping from `MetadataCreateIndexService#applyCreateIndexRequestWithV2Template58956(...)` method
  to `MetadataIndexTemplateService#collectMappings(...)` method.
* Fixed a bug (#58956) that cases timestamp field validation to be performed
  for each template and instead of the final mappings that is created.
* only apply _timestamp meta field if index is created as part of a data stream or data stream rollover,
this fixes a docs test, where a regular index creation matches (logs-*) with a template with a data stream definition.

Relates to #58642
Relates to #53100
Closes #58956
Closes #58583
2020-07-08 17:30:46 +02:00
..
analytics Improve cardinality measure used to build aggs (#56533) (#59107) 2020-07-08 08:42:23 -04:00
async [7.x] EQL: Adds an ability to execute an asynchronous EQL search (#58192) 2020-06-25 14:11:57 -04:00
async-search Improve cardinality measure used to build aggs (#56533) (#59107) 2020-07-08 08:42:23 -04:00
autoscaling 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
ccr Sending operations concurrently in peer recovery (#58018) 2020-07-07 22:03:31 -04:00
core Fix the timestamp field of a data stream to @timestamp (#59210) 2020-07-08 17:30:46 +02:00
deprecation [7.x] Add include_data_streams flag for authorization (#59008) 2020-07-03 12:58:39 -05:00
enrich 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
eql EQL: Fix bug in skipping window (#59196) 2020-07-08 14:36:39 +03:00
frozen-indices MappedFieldType should not extend FieldType (#58160) 2020-06-16 16:56:43 +01:00
graph 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
identity-provider Treat roles as a SortedSet (#58988) 2020-07-03 13:40:58 +10:00
ilm [7.9] GET data stream API returns additional information (#59128) (#59177) 2020-07-07 20:30:09 +01:00
logstash Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
mapper-constant-keyword Field capabilities - make `keyword` a family of field types (#58315) (#58483) 2020-06-24 12:32:14 +01:00
mapper-flattened Move MappedFieldType#getSearchAnalyzer and #getSearchQuoteAnalyzer to TextSearchInfo (#58830) 2020-07-01 14:52:14 +01:00
ml Fix the timestamp field of a data stream to @timestamp (#59210) 2020-07-08 17:30:46 +02:00
monitoring Split license allowed checks into two types (#58704) (#58797) 2020-07-01 07:11:05 -07:00
ql EQL: Obey size request parameter (#59014) 2020-07-06 19:14:25 +03:00
rollup Deduplicate Empty InternalAggregations (#58386) (#59032) 2020-07-04 14:02:16 +02:00
search-business-rules Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00
searchable-snapshots Clean searchable snapshots cache on startup (#59009) 2020-07-08 15:17:52 +01:00
security Even more robust test for API key auth 429 response (#59159) (#59208) 2020-07-08 16:43:07 +10:00
spatial Improve cardinality measure used to build aggs (#56533) (#59107) 2020-07-08 08:42:23 -04:00
sql Remove misc dependency related deprecation warnings (7.x backport) (#59122) 2020-07-07 17:10:31 +02:00
src/test Add basic searchable snapshots usage information (#58828) (#59160) 2020-07-08 13:09:29 +02:00
stack [7.9] GET data stream API returns additional information (#59128) (#59177) 2020-07-07 20:30:09 +01:00
transform Fix the timestamp field of a data stream to @timestamp (#59210) 2020-07-08 17:30:46 +02:00
vectors Add text search information to MappedFieldType (#58230) (#58432) 2020-06-23 14:37:26 +01:00
voting-only-node Introduce node.roles setting (#58512) 2020-06-25 14:14:51 -04:00
watcher 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
wildcard Move MappedFieldType#getSearchAnalyzer and #getSearchQuoteAnalyzer to TextSearchInfo (#58830) 2020-07-01 14:52:14 +01:00
build.gradle 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00