-
Notifications
You must be signed in to change notification settings - Fork 825
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(amplify-category-function): check for new function when adding permissions #8017
Conversation
…rmissions it is handled as new function when function not found in amplify meta fix aws-amplify#7970
Codecov Report
@@ Coverage Diff @@
## master #8017 +/- ##
=======================================
Coverage 54.04% 54.04%
=======================================
Files 592 592
Lines 33380 33380
Branches 6917 6917
=======================================
Hits 18040 18040
Misses 14568 14568
Partials 772 772 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution @fossamagna! I left two minor comments
...s__/provider-utils/awscloudformation/service-walkthroughs/execPermissionsWalkthrough.test.ts
Outdated
Show resolved
Hide resolved
...tion/src/provider-utils/awscloudformation/service-walkthroughs/execPermissionsWalkthrough.ts
Outdated
Show resolved
Hide resolved
…formation/service-walkthroughs/execPermissionsWalkthrough.ts Co-authored-by: John Hockett <jhockett@users.noreply.github.com>
…rmissions (#8017) * fix(amplify-category-function): check for new function when adding permissions it is handled as new function when function not found in amplify meta fix #7970 * test(amplify-category-function): remove unnecessary line * Update packages/amplify-category-function/src/provider-utils/awscloudformation/service-walkthroughs/execPermissionsWalkthrough.ts Co-authored-by: John Hockett <jhockett@users.noreply.github.com> Co-authored-by: John Hockett <jhockett@users.noreply.github.com>
👋 Hi, this pull request was referenced in the v5.4.0 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v5.4.0. |
…rmissions (aws-amplify#8017) * fix(amplify-category-function): check for new function when adding permissions it is handled as new function when function not found in amplify meta fix aws-amplify#7970 * test(amplify-category-function): remove unnecessary line * Update packages/amplify-category-function/src/provider-utils/awscloudformation/service-walkthroughs/execPermissionsWalkthrough.ts Co-authored-by: John Hockett <jhockett@users.noreply.github.com> Co-authored-by: John Hockett <jhockett@users.noreply.github.com>
Description of changes
A function attempting to add permissions is handled as new function when is not found in amplify meta.
Issue #, if available
fix #7970
Description of how you validated changes
yarn lerna --scope amplify-category-function run test
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.