The deck will be ready soon. Please try again later.
- If you're using the real-time deck, it's because the 'publish'
- function has not been invoked yet.
+ If you're using the real-time deck, it's because the 'publish' function has not been
+ invoked yet.
- If you're not using the real-time deck, it's because the corresponding
- task is still in progress.
+ If you're not using the real-time deck, it's because the corresponding task is still in
+ progress.
);
}
From 8a322373e835161d14a702fbac1348fb2174d7ab Mon Sep 17 00:00:00 2001
From: Future-Outlier
Date: Wed, 22 Jan 2025 11:04:18 +0800
Subject: [PATCH 5/6] update my code
Signed-off-by: Future-Outlier
---
.../ExecutionDetailsActions/FlyteDeckButton.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions/FlyteDeckButton.tsx b/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions/FlyteDeckButton.tsx
index 9ed232123..110699a94 100644
--- a/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions/FlyteDeckButton.tsx
+++ b/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions/FlyteDeckButton.tsx
@@ -97,7 +97,7 @@ export const FlyteDeckButton: FC = ({
}}
py={2}
>
- {t('flyteDeck')}
+ {flyteDeckText || t('flyteDeck')}
downloadLink.fetch()}>
From bb436758990e272a371378eed2ff98759dff6dc1 Mon Sep 17 00:00:00 2001
From: Carina Ursu
Date: Thu, 30 Jan 2025 10:33:05 -0800
Subject: [PATCH 6/6] handle 404 vs 500 error rendering
Signed-off-by: Carina Ursu
---
.../Executions/ExecutionDetails/ExecutionNodeDeck.tsx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx b/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx
index d37419f1a..dbafc5ca6 100644
--- a/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx
+++ b/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx
@@ -28,7 +28,11 @@ export const ExecutionNodeDeck: React.FC<{
'allow-downloads',
].join(' ');
- if (downloadLink?.lastError instanceof NotFoundError) {
+ /**
+ * if the download link query has an error other than 404, we show a 'pretty' message to the user.
+ * else: we show the built in DataError handler passed to the WaitForQuery component.
+ */
+ if (downloadLink?.lastError && !(downloadLink?.lastError instanceof NotFoundError)) {
return (
The deck will be ready soon. Please try again later.
@@ -44,6 +48,7 @@ export const ExecutionNodeDeck: React.FC<{
);
}
+ // 404 or no error case
return (