Skip to content
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

DT-2499 - wf reset ux improvement #2359

Merged
merged 5 commits into from
Sep 30, 2024
Merged

Conversation

rossedfort
Copy link
Contributor

Description & motivation 💭

Apparently a WorkflowTaskFailed event in the even history of a workflow execution that is the result of a reset is expected. This PR adjusts the styling/content of the workflow details page for this case so that it doesn't look like things went wrong.

  • Remove the Typed Error when cause == ResetWorkflow
  • Remove red background from timeline when WorkflowTaskFailed event is a ResetWorkflow task failed event
  • Remove red background from event history row when WorkflowTaskFailed event is a ResetWorkflow task failed event

Screenshots (if applicable) 📸

before after
Screenshot 2024-09-30 at 2 07 27 PM Screenshot 2024-09-30 at 2 27 21 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

  • With the UI running, run any sample workflow from a samples repo
  • Kill the worker process for that sample
  • Reset the workflow that was created via the sample
  • View the workflow execution that was the result of the workflow reset

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

don't highlight workflow task failure error in event history table if ResetWorkflow error
Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 9:33pm

$: {
cause = getErrorCause(error);
}
</script>

{#if cause}
{#if cause && cause !== 'ResetWorkflow'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure there will be more of these cases but not gonna overthink trying to abstract that way yet. This is fine.

@rossedfort rossedfort merged commit fcc8279 into main Sep 30, 2024
14 checks passed
@rossedfort rossedfort deleted the DT-2499-wf-reset-ux-improvement branch September 30, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants