Skip to content

Use an empty object as default value of options for Google Sign in #6844

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 3 commits into from
Oct 15, 2020

Conversation

kvnkuang
Copy link
Contributor

@kvnkuang kvnkuang commented Aug 4, 2020

This pull request is to address the issue parse-community/docs#754.

Without a default value of options, we will have to explicitly define (at least) an empty object at initialization so that Google sign in function won't crash.

@mtrezza
Copy link
Member

mtrezza commented Aug 9, 2020

We should make sure this PR contains a test case for #6852

@kvnkuang
Copy link
Contributor Author

I think #6852 can be fixed by this PR as well. Should I write a new test case for this?

@Moumouls
Copy link
Member

Moumouls commented Oct 1, 2020

yes a test case is needed :) @kvnkuang

@kvnkuang
Copy link
Contributor Author

@Moumouls Thanks! Test case added.

@codecov
Copy link

codecov bot commented Oct 13, 2020

Codecov Report

Merging #6844 into master will decrease coverage by 0.15%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6844      +/-   ##
==========================================
- Coverage   93.92%   93.76%   -0.16%     
==========================================
  Files         169      169              
  Lines       12210    12221      +11     
==========================================
- Hits        11468    11459       -9     
- Misses        742      762      +20     
Impacted Files Coverage Δ
src/Adapters/Auth/google.js 92.95% <0.00%> (+0.10%) ⬆️
src/GraphQL/parseGraphQLUtils.js 91.66% <0.00%> (-8.34%) ⬇️
src/GraphQL/transformers/query.js 83.14% <0.00%> (-6.75%) ⬇️
src/GraphQL/transformers/mutation.js 93.54% <0.00%> (-3.23%) ⬇️
src/GraphQL/loaders/usersQueries.js 95.23% <0.00%> (-2.39%) ⬇️
src/GraphQL/loaders/parseClassQueries.js 97.95% <0.00%> (-2.05%) ⬇️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 92.92% <0.00%> (-0.67%) ⬇️
src/Config.js 89.92% <0.00%> (-0.66%) ⬇️
src/GraphQL/ParseGraphQLSchema.js 97.46% <0.00%> (-0.51%) ⬇️
src/middlewares.js 97.18% <0.00%> (-0.44%) ⬇️
... and 17 more

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...9ed87af. Read the comment docs.

Copy link
Member

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