Skip to content

Fix beforeLogin for users logging in with AuthData #6872

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

Merged
merged 12 commits into from
Aug 25, 2020

Conversation

kvnkuang
Copy link
Contributor

Fix beforeLogin trigger to prevent error from occurring when users log in with AuthData.

Details in issue #6871.

@dplewis
Copy link
Member

dplewis commented Aug 20, 2020

Can you rebase from master to fix the test? Also is it possible to add a test case for this fix?

snyk-bot and others added 10 commits August 20, 2020 17:29
* fix: upgrade winston from 3.2.1 to 3.3.2

Snyk has created this PR to upgrade winston from 3.2.1 to 3.3.2.

See this package in NPM:
https://www.npmjs.com/package/winston

See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr

* fix tests

Co-authored-by: Diamond Lewis <[email protected]>
@kvnkuang
Copy link
Contributor Author

Test case added.

@codecov
Copy link

codecov bot commented Aug 21, 2020

Codecov Report

Merging #6872 into master will decrease coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6872      +/-   ##
==========================================
- Coverage   93.92%   93.78%   -0.14%     
==========================================
  Files         169      168       -1     
  Lines       12210    12186      -24     
==========================================
- Hits        11468    11429      -39     
- Misses        742      757      +15     
Impacted Files Coverage Δ
src/Adapters/Auth/index.js 93.44% <100.00%> (-0.11%) ⬇️
src/RestWrite.js 93.82% <100.00%> (-0.16%) ⬇️
src/GraphQL/transformers/query.js 83.14% <0.00%> (-6.75%) ⬇️
src/GraphQL/parseGraphQLUtils.js 93.93% <0.00%> (-6.07%) ⬇️
src/GraphQL/transformers/mutation.js 93.54% <0.00%> (-3.23%) ⬇️
src/GraphQL/loaders/parseClassQueries.js 97.95% <0.00%> (-2.05%) ⬇️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 92.92% <0.00%> (-0.67%) ⬇️
src/GraphQL/ParseGraphQLSchema.js 97.46% <0.00%> (-0.51%) ⬇️

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 4cec333...c565e15. Read the comment docs.

@mtrezza
Copy link
Member

mtrezza commented Aug 25, 2020

This looks good to me, can we merge, or is there anything to add?

Copy link
Member

@dplewis dplewis left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants