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: separate out subscription errors from field level resolver generation #9671

Merged

Conversation

danielleadams
Copy link
Contributor

@danielleadams danielleadams commented Feb 1, 2022

Description of changes

This pull requests separates out generation of field-level resolvers from checking for errors on types with subscriptions configured.

Checklist

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

@danielleadams danielleadams requested a review from a team as a code owner February 1, 2022 20:55
@ammarkarachi ammarkarachi requested a review from lazpavel February 1, 2022 20:59
Copy link
Contributor

@SwaySway SwaySway left a comment

Choose a reason for hiding this comment

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

lgtm aside from potential scenario with no @model in schema

@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2022

Codecov Report

Merging #9671 (767cd4c) into master (4a87373) will decrease coverage by 0.03%.
The diff coverage is 36.04%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9671      +/-   ##
==========================================
- Coverage   52.93%   52.90%   -0.04%     
==========================================
  Files         829      830       +1     
  Lines       45865    45948      +83     
  Branches     9789     9812      +23     
==========================================
+ Hits        24279    24308      +29     
- Misses      19581    19628      +47     
- Partials     2005     2012       +7     
Impacted Files Coverage Δ
...amplify-cli-core/src/feature-flags/featureFlags.ts 80.83% <ø> (ø)
...c/extensions/amplify-helpers/auth-notifications.ts 34.14% <34.14%> (ø)
...l-auth-transformer/src/graphql-auth-transformer.ts 89.62% <50.00%> (ø)
packages/graphql-transformer-core/src/index.ts 97.29% <100.00%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a87373...767cd4c. Read the comment docs.

@danielleadams
Copy link
Contributor Author

@jhockett @SwaySway addressed comments

Copy link
Contributor

@jhockett jhockett left a comment

Choose a reason for hiding this comment

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

LGTM

@lgtm-com
Copy link

lgtm-com bot commented Feb 1, 2022

This pull request introduces 1 alert when merging 720b434 into ff70827 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@lgtm-com
Copy link

lgtm-com bot commented Feb 2, 2022

This pull request introduces 1 alert when merging 767cd4c into ff70827 - view on LGTM.com

new alerts:

  • 1 for Useless conditional

@ammarkarachi ammarkarachi merged commit 657c344 into aws-amplify:master Feb 2, 2022
@github-actions
Copy link

github-actions bot commented Feb 3, 2022

👋 Hi, this pull request was referenced in the v7.6.15 release!

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

@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label Feb 3, 2022
@danielleadams danielleadams deleted the da/fix-non-null-auth branch February 15, 2022 17:16
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.

7 participants