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

chore: Remove unused Amplify managed table & RDS transformer & generator #3063

Conversation

palpatim
Copy link
Member

@palpatim palpatim commented Dec 10, 2024

Description of changes

Removes the SQL and Amplify-managed DDB table logic from @aws-amplify/graphql-model-transformer:

  • RDS & Amplify-managed generators
  • SQL lambdas
  • RDS-related E2E tests

This PR is not technically a prerequisite for it, but I'm doing this as part of the work for #3006.

Although the functional changes in this PR are limited to @aws-amplify/graphql-model-transformer, it has broad-reaching implications for tests elsewhere, since we make heavy use of snapshot tests and the generated resources will no longer contain SQL or Amplify-managed resolvers. Thus, this PR touches or deletes 91(!) files. This PR simply removes RDS & Amplify-managed DDB tests.

Finally, removing the RDS tests reduced coverage in some cases; those coverage thresholds have been adjusted down accordingly.

Issue #, if available

#3006

Description of how you validated changes

  • Local tests pass
  • E2Es pass

Checklist

  • PR description included
  • yarn test passes
  • E2E test run passes

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

@palpatim palpatim force-pushed the palpatim.chore.remove-unused-model-xformer branch 2 times, most recently from 99e42c8 to 46d6c27 Compare December 11, 2024 22:59
@palpatim palpatim force-pushed the palpatim.chore.remove-unused-model-xformer branch from 46d6c27 to 810e55a Compare December 11, 2024 23:24
@palpatim palpatim closed this Dec 12, 2024
@palpatim
Copy link
Member Author

Gen2 RDS tests still use Gen 1 RDS functionality to provision the stack. Once we get all of our tests no longer using Gen 1 CLI, we can revisit this effort.

@palpatim palpatim deleted the palpatim.chore.remove-unused-model-xformer branch December 12, 2024 20:23
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.

1 participant