amplify-js icon indicating copy to clipboard operation
amplify-js copied to clipboard

refactor(amazon-cognito-identity-js): refactor issue 8969 better typings

Open Yoshiitaka opened this issue 3 years ago • 11 comments

Issue #https://github.com/aws-amplify/amplify-js/issues/8969,

Better type definitions for amazon-cognito-identity-js.

Checklist

  • [x] PR description included

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

Yoshiitaka avatar May 25 '22 11:05 Yoshiitaka

+1

ShawnCockburn avatar Jun 30 '22 13:06 ShawnCockburn

Hey @Yoshiitaka , Thanks for your contribution to the AWS Amplify JS Library. We are actively reviewing your PR and will provide feedback soon if needed.

chintannp avatar Jul 21 '22 15:07 chintannp

@Yoshiitaka , I won't be able fix the merge conflict as your forked branch is behind. Can you fix the merge conflicts so that we can review the PR and be able to merge it?

chintannp avatar Jul 21 '22 17:07 chintannp

@chintannp Thank you check this PR. I updated the forked branch and fixed the conflicts part :) Please Could you review this PR?

Yoshiitaka avatar Jul 21 '22 23:07 Yoshiitaka

@Yoshiitaka, In order to get this change out quickly, Can you please review and address the feedback provided by @elorzafe ?

chintannp avatar Jul 29 '22 18:07 chintannp

@elorzafe Thank you for reviewing. This PR was dealt with a long time ago, So I will check the points to be pointed out and corrections from now.

Certainly, I was understood that the token payload may break the mold as you pointed out.

Yoshiitaka avatar Jul 30 '22 12:07 Yoshiitaka

@chintannp Sorry for the late confirmation and reply. I will check the review pointed out from this and correct it.

Yoshiitaka avatar Jul 30 '22 12:07 Yoshiitaka

@Yoshiitaka , Can you address the feedback provide by @elorzafe ?

chintannp avatar Aug 22 '22 18:08 chintannp

@chintannp I have already responded to @elorzafe 's feedback comment, So Please could you check it?

Yoshiitaka avatar Aug 23 '22 03:08 Yoshiitaka

Codecov Report

Merging #9935 (e463eda) into main (91fdcd9) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #9935   +/-   ##
=======================================
  Coverage   84.40%   84.40%           
=======================================
  Files         258      258           
  Lines       18698    18698           
  Branches     4021     4021           
=======================================
  Hits        15782    15782           
  Misses       2826     2826           
  Partials       90       90           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov-commenter avatar Aug 23 '22 03:08 codecov-commenter

When I use Hub.listen and get the payload.data, the found CognitoUser doesn't have any methods. That's because it is serialized. So, the properties should be still added. The getters are not enough.

aminya avatar Jan 18 '23 08:01 aminya