Skip to content

Workflow Update#2508

Merged
Alex-Tideman merged 14 commits intomainfrom
workflow-update
Jan 27, 2025
Merged

Workflow Update#2508
Alex-Tideman merged 14 commits intomainfrom
workflow-update

Conversation

@Alex-Tideman
Copy link
Collaborator

@Alex-Tideman Alex-Tideman commented Jan 15, 2025

Description & motivation 💭

Send a Workflow Update from the UI. Allow users to pick an update name from the list of registered updates or to send a custom update name.

When a validation error occurs in the update, the modal will remain open and show the validation error. If the update is in progress, the modal will remain open and an "In Progress" alert will show. If the update is successful, the modal will close and show a "Update successful" toast notification.

Screenshots (if applicable) 📸

Screenshot 2025-01-15 at 3 03 44 PM Screenshot 2025-01-15 at 3 03 53 PM Screenshot 2025-01-15 at 3 04 26 PM Screenshot 2025-01-15 at 3 04 50 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

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

Checklists

Draft Checklist

Merge Checklist

  • Do we need some kind of server version check to enable (disable if < 1.25 or whatever is the right version)? I'm thinking we don't but will double check. I've opted to add an env var workflowUpdateDisabled like the rest of our actions so users can disable the feature if they wish.

Issue(s) closed

Docs

Any docs updates needed?

@vercel
Copy link

vercel bot commented Jan 15, 2025

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 Jan 27, 2025 3:46pm

@Alex-Tideman Alex-Tideman changed the title Workflow update Workflow Update Jan 15, 2025
Copy link
Contributor

@rossedfort rossedfort left a comment

Choose a reason for hiding this comment

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

Code looks good, haven't done any testing yet

@Alex-Tideman Alex-Tideman merged commit 4ae5a8e into main Jan 27, 2025
11 checks passed
@Alex-Tideman Alex-Tideman deleted the workflow-update branch January 27, 2025 15:52
hferentschik pushed a commit to DataDog/temporalio-ui that referenced this pull request Mar 12, 2026
* Add update page and path. WIP

* Wire up update call

* Use update modal

* Use modal submit button

* Use correct lanuage prop, move success/failure to bottom of modal

* Add loading state with alert if waiting on update

* Update @temporalio packages, hide modal on success, fix types

* Add workflowUpdateEnabled boolean

* Fix update disabled translation

* Add addition success check
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.

3 participants