From 17effb677c88244e0a7474b1499ee51a94c6c16a Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Wed, 5 Jun 2024 12:41:20 -0700 Subject: [PATCH 1/4] Implement deprovision/update/provision fn for preparing ingest execution Signed-off-by: Tyler Ohlsen --- .../ingest_inputs/ingest_data.tsx | 49 +----- .../workflow_inputs/workflow_inputs.tsx | 139 ++++++++++++------ 2 files changed, 97 insertions(+), 91 deletions(-) diff --git a/public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx b/public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx index d8259f1f..e961881b 100644 --- a/public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx +++ b/public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx @@ -18,36 +18,10 @@ interface IngestDataProps { onFormChange: () => void; } -enum OPTION { - NEW = 'new', - EXISTING = 'existing', -} - -const options = [ - { - id: OPTION.NEW, - label: 'Create a new index', - }, - { - id: OPTION.EXISTING, - label: 'Choose existing index', - }, -]; - /** * Input component for configuring the data ingest (the OpenSearch index) */ export function IngestData(props: IngestDataProps) { - const [selectedOption, setSelectedOption] = useState