From 7c313f83fe1df29bbffcf6a351457985a0fc9543 Mon Sep 17 00:00:00 2001 From: Jeff Puzzo Date: Thu, 13 Jun 2024 09:38:07 -0400 Subject: [PATCH] [RHOAIENG-4385] DSPA - Add back the Folder Info --- .../ObjectStorageSection.tsx | 54 +++++++++++++++---- .../content/configurePipelinesServer/const.ts | 3 ++ 2 files changed, 46 insertions(+), 11 deletions(-) diff --git a/frontend/src/concepts/pipelines/content/configurePipelinesServer/ObjectStorageSection.tsx b/frontend/src/concepts/pipelines/content/configurePipelinesServer/ObjectStorageSection.tsx index 2b33457413..413a0ff20a 100644 --- a/frontend/src/concepts/pipelines/content/configurePipelinesServer/ObjectStorageSection.tsx +++ b/frontend/src/concepts/pipelines/content/configurePipelinesServer/ObjectStorageSection.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import { FormSection, Title, @@ -7,14 +8,17 @@ import { InputGroup, Tooltip, InputGroupItem, + Alert, + Popover, } from '@patternfly/react-core'; -import React from 'react'; import { DataConnection } from '~/pages/projects/types'; -import { PIPELINE_AWS_FIELDS } from '~/pages/projects/dataConnections/const'; +import { AwsKeys, PIPELINE_AWS_FIELDS } from '~/pages/projects/dataConnections/const'; import { FieldListField } from '~/components/FieldList'; +import ExternalLink from '~/components/ExternalLink'; +import { PipelineDropdown } from './PipelineDropdown'; import { PipelineServerConfigType } from './types'; import './ConfigurePipelinesServerModal.scss'; -import { PipelineDropdown } from './PipelineDropdown'; +import { storingDataHelpLink } from './const'; export type FieldOptions = { key: string; @@ -85,14 +89,42 @@ export const ObjectStorageSection = ({ ) : ( - data.key === field.key)?.value || '' - } - options={field} - onChange={onChange} - /> + <> + data.key === field.key)?.value || '' + } + options={field} + onChange={onChange} + /> + + {field.key === AwsKeys.AWS_S3_BUCKET && ( + + Uploaded pipelines will be stored in the /pipelines directory. +
+ When running a pipeline, artifacts will be stored in dedicated folders at the{' '} + /root directory. + + } + footerContent={} + > + +
+ )} + ), )} diff --git a/frontend/src/concepts/pipelines/content/configurePipelinesServer/const.ts b/frontend/src/concepts/pipelines/content/configurePipelinesServer/const.ts index e3215e14eb..5acbde6a4b 100644 --- a/frontend/src/concepts/pipelines/content/configurePipelinesServer/const.ts +++ b/frontend/src/concepts/pipelines/content/configurePipelinesServer/const.ts @@ -70,3 +70,6 @@ export const EMPTY_DATABASE_CONNECTION: EnvVariableDataEntry[] = [ value: '', }, ]; + +export const storingDataHelpLink = + 'https://access.redhat.com/documentation/en-us/red_hat_openshift_ai_cloud_service/1/html/working_on_data_science_projects/working-with-data-science-pipelines_ds-pipelines#storing-data-with-data-science-pipelines_ds-pipelines';