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-1740 - update workflow reset UI for new reapply types in 1.24 #2014

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rossedfort
Copy link
Contributor

@rossedfort rossedfort commented Apr 17, 2024

Description & motivation 💭

in temporal server version 1.24, a new API will be available for resetting workflows that supports reapplying Updates after the reset point, in addition to Signals. This PR makes the changes necessary to the UI support this new option. Note - the behavior is inverse, i.e. the API expects opting out of reapplies as opposed to opting in.

  • For UI running against temporal server version <1.24 - no change. Show a checkbox whether to re-apply signals after reset point, if checked send RESET_REAPPLY_TYPE_SIGNAL, if unchecked send RESET_REAPPLY_TYPE_NONE in resetReapplyType field
  • For UI running against temporal server version >=1.24 - keep checkbox for Signal, add a checkbox for Update - inverse behavior of <1.24. if only “Exclude signals” is checked - send RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL, if only “Exclude updates” is checked, send RESET_REAPPLY_EXCLUDE_TYPE_UPDATE. If both are checked send both, if none are checked, send RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED in resetReapplyExcludeTypes field

Screenshots (if applicable) 📸

<1.24 >=1.24
Screenshot 2024-04-17 at 2 12 52 PM Screenshot 2024-04-17 at 2 19 33 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

Issue(s) closed

Docs

Any docs updates needed?

Copy link

vercel bot commented Apr 17, 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 Apr 18, 2024 4:09pm

@rossedfort rossedfort marked this pull request as draft April 17, 2024 21:04
Comment on lines 93 to 94
'reset-exclude-signals': 'Exclude signals that occur after the reset point.',
'reset-exclude-updates': 'Exclude updates that occur after the reset point.',
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's capitalize Signals and Updates here

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.

None yet

2 participants