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

refactor(ui): heavily simplify WorkflowCreator effect #13094

Merged
merged 1 commit into from
May 27, 2024

Conversation

agilgur5
Copy link
Member

@agilgur5 agilgur5 commented May 27, 2024

Motivation

Reduce tech debt, code complexity, etc

Modifications

  • reduce nesting in this effect quite significantly with early returns

Verification

No semantic changes, functionally equivalent.
Tested creating a Workflow in different ways and it worked fine.

Notes to Reviewers

The diff is much easier to read with the ignore whitespace setting

- reduce nesting in this effect quite significantly with early returns
  - and remove an unnecessary `switch` statement (not sure if it had more than one `case` before?)

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
Copy link
Member

@tczhao tczhao left a comment

Choose a reason for hiding this comment

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

lgtm

@tczhao tczhao merged commit 0076cc2 into argoproj:main May 27, 2024
20 checks passed
@agilgur5 agilgur5 deleted the refactor-ui-simplify-creator-effect branch May 27, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants