-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(auth): Expose modular API that matches the Firebase web JS SDK v9 API #7015
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #7015 +/- ##
=============================================
- Coverage 53.58% 19.29% -34.29%
+ Complexity 736 286 -450
=============================================
Files 235 236 +1
Lines 11740 11895 +155
Branches 1876 1880 +4
=============================================
- Hits 6290 2294 -3996
- Misses 5096 8877 +3781
- Partials 354 724 +370 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to note passes all tests locally, structurally looks right, I'm running through index.js right now with an eye towards how platform differences were handled (always a point of discussion, but already discussed I think...) and why github is telling me that there was no test coverage on the new modular APIs (when it looks like they were covered... 🤔 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All seems to work, and the cause of coverage notices appears to be that the declaration lines are not covered but the implementation lines are? This seems odd and worth a (separate, not related to this PR) investigation but shouldn't be a blocker. Hypothesis based on looking at this: https://app.codecov.io/gh/invertase/react-native-firebase/pull/7015
I have a couple real questions though:
- can we have only the modular e2e tests, with their non-modular compat testing inside of them, and remove the non-modular tests? Really, just make the modular tests the new default, no need to have modular in the name
- the provider, rnReload, and multifactor tests do not seem to be modularized, if those are not modularized / exercising those features in the v9 / modular way I fear they will break in the future. Unless I am misunderstanding (I could be! please let me know) I think that's a blocker for merge
Thanks for the review.
|
|
||
// test correct user is returned after signing | ||
// in with a different user then reloading | ||
await signOut(defaultAuth); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This signOut hangs out, I have no idea why @mikehardy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh - that is unexpected (of course!) - I'll check it locally and see what I can do about CI / investigating
Okay - agreed there, I think we did one of them (the most recent?) with just convert-main-file-name-to-modular + compat-inside-modular and I'd like that going forward. You are correct that since there are quite a few in the old style (that this one is using) of old-style + modular-with-compat-inside we can do one PR that realigns all at once. No need to hold this up waiting for that I'll check the new tests and see what I can find out about signOut hanging. Thanks @Lyokone ! |
☝️ lint failure here @Lyokone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a PhoneAuthProvider test needs to be updated. And there's the lint failure that Mike mentioned. Other than that, LGTM 👌.
2898264
to
3dac0a5
Compare
I fixed the PhoneAuthProvider constructor to throw in a backwards-compatible way and cleared the lint error, rebased to current main and re-pushed, we'll see what CI says, seems to run fine locally... |
Note to self: need to add API for #7148 that came in while this was in-flight |
3dac0a5
to
f1c96a6
Compare
rebased to main and re-pushed but signOut likely still hanging, I believe it's a javascript level error, possibly with interaction between rnReload |
f1c96a6
to
f5761a0
Compare
This comment was marked as resolved.
This comment was marked as resolved.
a904fda
to
8c0a612
Compare
I think everything is fixed now, pending CI |
8c0a612
to
56381a1
Compare
Passed all the tests except lint on the last run, I fixed the lint one - merging! |
Hello, I was wondering if this PR being merged means that the next release of |
Description
Related issues
#6705
Release Summary
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter