From 753a8ecf13742a2c6dd7f3994cdeaeaa6ee7edd8 Mon Sep 17 00:00:00 2001 From: Ilya Bondar Date: Tue, 10 Dec 2024 18:15:02 +0100 Subject: [PATCH 1/3] chore(chat): add `bypass_ort` --- .github/workflows/pr.yml | 2 ++ .github/workflows/release.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 36a5ac3642..ab2a24aa01 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,3 +12,5 @@ jobs: run_tests: uses: epam/ai-dial-ci/.github/workflows/node_pr.yml@1.10.0 secrets: inherit + with: + bypass_ort: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10882714cd..8c33b4b9db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,3 +12,5 @@ jobs: release: uses: epam/ai-dial-ci/.github/workflows/node_release.yml@1.10.0 secrets: inherit + with: + bypass_ort: true From 0612dd718d46470b6ca194ec93a588cc2d59d764 Mon Sep 17 00:00:00 2001 From: Ilya Bondar Date: Tue, 10 Dec 2024 22:26:23 +0100 Subject: [PATCH 2/3] use ort_version: 42.1.0 --- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ab2a24aa01..e99e1bf869 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,4 +13,4 @@ jobs: uses: epam/ai-dial-ci/.github/workflows/node_pr.yml@1.10.0 secrets: inherit with: - bypass_ort: true + ort_version: 42.1.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c33b4b9db..750d3e6c37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,4 +13,4 @@ jobs: uses: epam/ai-dial-ci/.github/workflows/node_release.yml@1.10.0 secrets: inherit with: - bypass_ort: true + ort_version: 42.1.0 From 956ecbca7221d2182411ffb58f05a6866d1086f2 Mon Sep 17 00:00:00 2001 From: Derikyan Date: Tue, 28 Jan 2025 13:47:08 +0400 Subject: [PATCH 3/3] fix(chat): disable fields after editing shared app (Issue #3017) --- .../components/Common/ApplicationWizard/ApplicationWizard.tsx | 2 -- .../Common/ApplicationWizard/CodeAppView/CodeAppView.tsx | 3 ++- .../src/components/Common/ApplicationWizard/CustomAppView.tsx | 3 ++- .../src/components/Common/ApplicationWizard/QuickAppView.tsx | 3 ++- .../chat/src/components/Common/ApplicationWizard/view-props.ts | 1 - 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/chat/src/components/Common/ApplicationWizard/ApplicationWizard.tsx b/apps/chat/src/components/Common/ApplicationWizard/ApplicationWizard.tsx index 5d8dd95f76..8c9a19a71c 100644 --- a/apps/chat/src/components/Common/ApplicationWizard/ApplicationWizard.tsx +++ b/apps/chat/src/components/Common/ApplicationWizard/ApplicationWizard.tsx @@ -41,7 +41,6 @@ export const ApplicationWizard: React.FC = ({ const selectedApplication = useAppSelector( ApplicationSelectors.selectApplicationDetail, ); - const isSharedWithMe = selectedApplication?.sharedWithMe; const handleClose = useCallback( (result?: boolean) => { @@ -105,7 +104,6 @@ export const ApplicationWizard: React.FC = ({ isEdit={isEdit} currentReference={currentReference} selectedApplication={isEdit ? selectedApplication : undefined} - isSharedWithMe={!!isSharedWithMe} /> )} diff --git a/apps/chat/src/components/Common/ApplicationWizard/CodeAppView/CodeAppView.tsx b/apps/chat/src/components/Common/ApplicationWizard/CodeAppView/CodeAppView.tsx index f59046111c..faff1a05be 100644 --- a/apps/chat/src/components/Common/ApplicationWizard/CodeAppView/CodeAppView.tsx +++ b/apps/chat/src/components/Common/ApplicationWizard/CodeAppView/CodeAppView.tsx @@ -74,7 +74,6 @@ export const CodeAppView: FC = ({ type, selectedApplication, currentReference, - isSharedWithMe, }) => { const { t } = useTranslation(Translation.Chat); @@ -90,6 +89,8 @@ export const CodeAppView: FC = ({ selectedApplication && isApplicationDeployed(selectedApplication); const isCodeEditorDirty = useAppSelector(CodeEditorSelectors.selectIsDirty); + const isSharedWithMe = selectedApplication?.sharedWithMe; + const [editorConfirmation, setEditorConfirmation] = useState(); useEffect(() => { diff --git a/apps/chat/src/components/Common/ApplicationWizard/CustomAppView.tsx b/apps/chat/src/components/Common/ApplicationWizard/CustomAppView.tsx index 39a1e05434..7e257be504 100644 --- a/apps/chat/src/components/Common/ApplicationWizard/CustomAppView.tsx +++ b/apps/chat/src/components/Common/ApplicationWizard/CustomAppView.tsx @@ -49,7 +49,6 @@ export const CustomAppView: React.FC = ({ type, currentReference, selectedApplication, - isSharedWithMe, }) => { const { t } = useTranslation(Translation.Chat); @@ -59,6 +58,8 @@ export const CustomAppView: React.FC = ({ const topics = useAppSelector(SettingsSelectors.selectTopics); const models = useAppSelector(ModelsSelectors.selectModels); + const isSharedWithMe = selectedApplication?.sharedWithMe; + const modelsWithFolderId = models.map((model) => ({ ...model, folderId: '', diff --git a/apps/chat/src/components/Common/ApplicationWizard/QuickAppView.tsx b/apps/chat/src/components/Common/ApplicationWizard/QuickAppView.tsx index d1ff9b67da..a0c43d018a 100644 --- a/apps/chat/src/components/Common/ApplicationWizard/QuickAppView.tsx +++ b/apps/chat/src/components/Common/ApplicationWizard/QuickAppView.tsx @@ -49,7 +49,6 @@ export const QuickAppView: React.FC = ({ type, currentReference, selectedApplication, - isSharedWithMe, }) => { const { t } = useTranslation(Translation.Chat); @@ -60,6 +59,8 @@ export const QuickAppView: React.FC = ({ const topics = useAppSelector(SettingsSelectors.selectTopics); const models = useAppSelector(ModelsSelectors.selectModels); + const isSharedWithMe = selectedApplication?.sharedWithMe; + const modelsWithFolderId = models.map((model) => ({ ...model, folderId: '', diff --git a/apps/chat/src/components/Common/ApplicationWizard/view-props.ts b/apps/chat/src/components/Common/ApplicationWizard/view-props.ts index c005c9c626..8dc090d103 100644 --- a/apps/chat/src/components/Common/ApplicationWizard/view-props.ts +++ b/apps/chat/src/components/Common/ApplicationWizard/view-props.ts @@ -10,5 +10,4 @@ export interface ViewProps { isEdit?: boolean; currentReference?: string; selectedApplication?: CustomApplicationModel; - isSharedWithMe?: boolean; }