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

fix: skip automatic form generation when datastore is not enabled #12713

Merged
merged 3 commits into from
Jun 2, 2023

Conversation

awinberg-aws
Copy link
Contributor

@awinberg-aws awinberg-aws commented May 31, 2023

Description of changes

Updates the uibuilder plugin to use a helper recently exposed by the API category to confirm if an application has datastore enabled. Forms that are auto-generated by uibuilder are not compatible with customer applications without datastore being enabled, so this is now being incorporated into the logic for determining if they should be generated or skipped.

Issue #, if available

Description of how you validated changes

ran amplify-dev pull against a test project with datastore disabled to confirm that no auto-generated forms were created, and again with datastore enabled to confirm that the auto-generated forms are still created when opted-in.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@awinberg-aws awinberg-aws requested a review from a team as a code owner May 31, 2023 22:59
@awinberg-aws awinberg-aws force-pushed the fix-studio-form-generation branch from 472549c to e45fcc1 Compare May 31, 2023 23:54
letsbelopez
letsbelopez previously approved these changes Jun 1, 2023
Copy link
Contributor

@letsbelopez letsbelopez left a comment

Choose a reason for hiding this comment

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

LGTM

lyonsbp
lyonsbp previously approved these changes Jun 1, 2023
Copy link
Contributor

@letsbelopez letsbelopez left a comment

Choose a reason for hiding this comment

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

re-approving after merge conflicts resolved

@awinberg-aws awinberg-aws merged commit cb9b61e into dev Jun 2, 2023
@awinberg-aws awinberg-aws deleted the fix-studio-form-generation branch June 2, 2023 22:04
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.

5 participants