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

Scaffolder Root Object Validation And Step Scoped Validation #352

Merged
merged 7 commits into from
Oct 10, 2023

Conversation

jbolda
Copy link
Contributor

@jbolda jbolda commented Oct 4, 2023

Motivation

Validation was running for every piece for formData regardless of the step. This led to some confusing errors especially if the user went back and forth in the form.

Additionally, when using a type: 'object', the async validation would not run at the root.

Approach

Wrote some tests for this hook, then checked each output. We reordered the conditions so object is handled first, and included handling the validation at the root.

@changeset-bot
Copy link

changeset-bot bot commented Oct 4, 2023

🦋 Changeset detected

Latest commit: dd62c62

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@frontside/backstage-plugin-scaffolder-workflow Minor
app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@frontsidejack
Copy link
Member

frontsidejack commented Oct 4, 2023

📣 NOTIFICATION
You are receiving this message because we did not publish any packages.

Generated by @thefrontside/actions Frontside

@jbolda jbolda requested a review from taras October 5, 2023 21:52
@jbolda jbolda marked this pull request as ready for review October 5, 2023 21:52
Copy link
Member

@taras taras left a comment

Choose a reason for hiding this comment

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

👍

@jbolda jbolda merged commit 16099d1 into main Oct 10, 2023
3 checks passed
@jbolda jbolda deleted the useAsyncValidation-root-object-validation branch October 10, 2023 22: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.

3 participants