-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support query execution; support index settings/mappings; support cre…
…ate/edit states for ingest (#186) Signed-off-by: Tyler Ohlsen <[email protected]>
- Loading branch information
Showing
17 changed files
with
426 additions
and
101 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
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
50 changes: 50 additions & 0 deletions
50
public/pages/workflow_detail/workflow_inputs/ingest_inputs/advanced_settings.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,50 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { | ||
EuiAccordion, | ||
EuiFlexGroup, | ||
EuiFlexItem, | ||
EuiSpacer, | ||
} from '@elastic/eui'; | ||
import { IConfigField, WorkflowConfig } from '../../../../../common'; | ||
import { JsonField } from '../input_fields'; | ||
|
||
interface AdvancedSettingsProps { | ||
uiConfig: WorkflowConfig; | ||
onFormChange: () => void; | ||
} | ||
|
||
/** | ||
* Input component for configuring ingest-side advanced settings | ||
*/ | ||
export function AdvancedSettings(props: AdvancedSettingsProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<EuiAccordion id="advancedSettings" buttonContent="Advanced settings"> | ||
<EuiSpacer size="s" /> | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem> | ||
<JsonField | ||
field={props.uiConfig.ingest.index?.mappings as IConfigField} | ||
fieldPath={'ingest.index.mappings'} | ||
onFormChange={props.onFormChange} | ||
/> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<JsonField | ||
field={props.uiConfig.ingest.index?.settings as IConfigField} | ||
fieldPath={'ingest.index.settings'} | ||
onFormChange={props.onFormChange} | ||
/> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiAccordion> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
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
Oops, something went wrong.