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: schema migrator utility #8720

Merged
merged 8 commits into from
Nov 8, 2021

Conversation

edwardfoyle
Copy link
Contributor

@edwardfoyle edwardfoyle commented Nov 8, 2021

Description of changes

Refactor the migration tool to be behind a new command amplify migrate api instead of running during the push workflow. Also fixes several bugs, most importantly that the migrator now works with schemas that are split across multiple files.

This PR does NOT change the actual migration behavior, ie. schemas are still translated in the same way.

Issue #, if available

Description of how you validated changes

Manual testing at this point. Need to write some unit tests but going ahead and publishing the PR

Checklist

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

@edwardfoyle edwardfoyle requested a review from a team as a code owner November 8, 2021 02:35
@edwardfoyle edwardfoyle changed the title Migrator refactor fix: schema migrator refactor Nov 8, 2021
@edwardfoyle edwardfoyle changed the title fix: schema migrator refactor fix: schema migrator utility Nov 8, 2021
@lgtm-com
Copy link

lgtm-com bot commented Nov 8, 2021

This pull request introduces 1 alert when merging 1f65b1c into 81cc461 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

Code LGTM, but the CI is failing.

packages/amplify-category-api/src/commands/api.js Outdated Show resolved Hide resolved
Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

LGTM. We should probably track the lack of a real documentation link.

@edwardfoyle edwardfoyle merged commit 46e1ee6 into aws-amplify:master Nov 8, 2021
@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label Nov 11, 2021
@github-actions
Copy link

👋 Hi, this pull request was referenced in the v6.4.0 release!

Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v6.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
referenced-in-release Issues referenced in a published release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants