Skip to content

Commit

Permalink
[8.14] [Index Management] Fix mapping_tab error due to _data_stream_t…
Browse files Browse the repository at this point in the history
…imestamp (#183187) (#183306)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[Index Management] Fix mapping_tab error due to
_data_stream_timestamp
(#183187)](#183187)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Saikat
Sarkar","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-05-13T15:15:19Z","message":"[Index
Management] Fix mapping_tab error due to _data_stream_timestamp
(#183187)","sha":"3d79d4349443608c92ad42b981d5f010921af97f","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:EnterpriseSearch","backport:prev-minor","ci:cloud-deploy","v8.14.0","v8.15.0"],"title":"[Index
Management] Fix mapping_tab error due to
_data_stream_timestamp","number":183187,"url":"#183187
Management] Fix mapping_tab error due to _data_stream_timestamp
(#183187)","sha":"3d79d4349443608c92ad42b981d5f010921af97f"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"#183187
Management] Fix mapping_tab error due to _data_stream_timestamp
(#183187)","sha":"3d79d4349443608c92ad42b981d5f010921af97f"}}]}]
BACKPORT-->

Co-authored-by: Saikat Sarkar <[email protected]>
  • Loading branch information
kibanamachine and saikatsarkar056 committed May 13, 2024
1 parent 7c69572 commit c2718e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ describe('Mappings configuration validator', () => {
required: false,
},
dynamic: true,
_data_stream_timestamp: {
enabled: true,
},
// Mapper-size plugin
_size: {
enabled: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export const validateProperties = (properties: unknown = {}): PropertiesValidato
export const mappingsConfigurationSchema = t.exact(
t.partial({
properties: t.UnknownRecord,
_data_stream_timestamp: t.interface({
enabled: t.boolean,
}),
runtime: t.UnknownRecord,
dynamic: t.union([
t.literal(true),
Expand Down

0 comments on commit c2718e3

Please sign in to comment.