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(amplify-category-function): check for new function when adding permissions #8017

Merged
merged 3 commits into from
Aug 25, 2021

Conversation

fossamagna
Copy link
Contributor

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

  • Unit Testing yarn lerna --scope amplify-category-function run test
  • Manual Testing

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

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

…rmissions

it is handled as new function when function not found in amplify meta

fix aws-amplify#7970
@fossamagna fossamagna requested a review from a team as a code owner August 24, 2021 04:23
@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2021

Codecov Report

Merging #8017 (7fb4343) into master (b0600c8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

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

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, thanks for the contribution @fossamagna! I left two minor comments

fossamagna and others added 2 commits August 25, 2021 08:49
…formation/service-walkthroughs/execPermissionsWalkthrough.ts

Co-authored-by: John Hockett <jhockett@users.noreply.github.com>
@cjihrig cjihrig merged commit 7af3b0d into aws-amplify:master Aug 25, 2021
jhockett added a commit that referenced this pull request Aug 25, 2021
…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>
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

👋 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.

@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label Sep 2, 2021
marcvberg pushed a commit to marcvberg/amplify-cli that referenced this pull request Oct 13, 2021
…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>
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.

Creating Function with access to another services
4 participants