-
Notifications
You must be signed in to change notification settings - Fork 121
Show message for missing archival result #992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show message for missing archival result #992
Conversation
...summary-tab/workflow-summary-tab-json-view/__tests__/workflow-summary-tab-json-view.test.tsx
Outdated
Show resolved
Hide resolved
) : ( | ||
<PrettyJson json={jsonMap[activeTab]} /> | ||
{activeTab === 'input' && <PrettyJson json={jsonMap[activeTab]} />} | ||
{activeTab === 'result' && isArchived && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the if-else logic for the result rendering could be simplified a bit, but I'm not sure if there's a better way to do that besides moving it to a different component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving it to a separate component was one of the things that i considered, while i didn't go for an extra separation since the logic is still manageable (75 lines).
...views/workflow-summary-tab/workflow-summary-tab-json-view/workflow-summary-tab-json-view.tsx
Outdated
Show resolved
Hide resolved
...views/workflow-summary-tab/workflow-summary-tab-json-view/workflow-summary-tab-json-view.tsx
Outdated
Show resolved
Hide resolved
.../workflow-summary-tab/workflow-summary-tab-json-view/workflow-summary-tab-json-view.types.ts
Outdated
Show resolved
Hide resolved
…__tests__/workflow-summary-tab-json-view.test.tsx Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
…workflow-summary-tab-json-view.tsx Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
)} | ||
{activeTab === 'result' && !isArchived && ( | ||
<> | ||
{isWorkflowRunning && <PrettyJsonSkeleton width="200px" />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe for later, but we can replace this placeholder with a more useful "workflow is still running" message
Summary
Close event is not available in the response of
describeWorkflow
for archival events. This makes result tab keeps showing loading. Instead we need to show users a message indicating that result won't be available in summary page for archival workflowsScreenshots

Note:
through
was replaced byin
, screenshot is not up to date.