-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.15`: - [[Index management] Fix passthrough field bug (#193246)](#193246) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-26T16:26:51Z","message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index Management","Team:Kibana Management","release_note:skip","v9.0.0","backport:prev-major","v8.16.0"],"title":"[Index management] Fix passthrough field bug","number":193246,"url":"https://github.com/elastic/kibana/pull/193246","mergeCommit":{"message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193246","number":193246,"mergeCommit":{"message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <[email protected]>
- Loading branch information
1 parent
9e0bc9f
commit badcb6e
Showing
6 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...onents/mappings_editor/components/document_fields/fields/field_types/passthrough_type.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import { UseField, Field, CheckBoxField } from '../../../../shared_imports'; | ||
import { getFieldConfig } from '../../../../lib'; | ||
import { BasicParametersSection } from '../edit_field'; | ||
|
||
export const PassthroughType = () => { | ||
return ( | ||
<BasicParametersSection> | ||
<UseField path="priority" config={getFieldConfig('priority')} component={Field} /> | ||
<UseField | ||
path="dynamic" | ||
config={getFieldConfig('dynamic_passthrough')} | ||
component={CheckBoxField} | ||
/> | ||
</BasicParametersSection> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters