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-auth): handle undefined aliasattributes #8222

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

johnpc
Copy link
Contributor

@johnpc johnpc commented Sep 20, 2021

Description of changes

amplify update auth is currently broken for CLI users that created auth before v5.2.0, because generated parameters.json file does not contain aliasAttributes key. This PR adds handling for the undefined alias attributes case, fixing amplify update auth for that case

Issue #, if available

#8221

Description of how you validated changes

Created auth using v5.1.0
Updated auth using v6 (including this change)

Checklist

  • PR description included
  • yarn test passes

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

@johnpc johnpc requested a review from a team as a code owner September 20, 2021 17:27
@codecov-commenter
Copy link

Codecov Report

Merging #8222 (00e704f) into master (53295a2) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8222   +/-   ##
=======================================
  Coverage   54.42%   54.42%           
=======================================
  Files         663      663           
  Lines       37871    37871           
  Branches     7786     7786           
=======================================
  Hits        20611    20611           
  Misses      16415    16415           
  Partials      845      845           
Impacted Files Coverage Δ
.../amplify-category-auth/src/commands/auth/update.js 62.90% <0.00%> (ø)

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 dbdfe81...00e704f. Read the comment docs.

Copy link
Contributor

@sundersc sundersc left a comment

Choose a reason for hiding this comment

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

LGTM.

@sundersc sundersc merged commit c3b89af into master Sep 20, 2021
@attilah attilah linked an issue Sep 20, 2021 that may be closed by this pull request
4 tasks
@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label Sep 20, 2021
@github-actions
Copy link

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

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

marcvberg pushed a commit to marcvberg/amplify-cli that referenced this pull request Oct 13, 2021
@danielleadams danielleadams deleted the handle-undefined-aliasattributes branch November 21, 2022 19:53
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.

6.0.0 broke pushes
3 participants