Skip to content

Migrate RC to depend directly on Installations SDK. #1579

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 13 commits into from
Jun 17, 2020
Merged

Conversation

danasilver
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes Override cla label May 21, 2020
@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 21, 2020

Coverage Report

Affected SDKs

  • firebase-config

    SDK overall coverage changed from 88.83% (43f5c6d) to 88.71% (aea06f22) by -0.12%.

    Filename Base (43f5c6d) Head (aea06f22) Diff
    ConfigFetchHandler.java 98.55% 97.20% -1.35%
    FirebaseRemoteConfig.java 88.19% 88.28% +0.08%

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (aea06f22) is created by Prow via merging commits: 43f5c6d 5dcf294.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 21, 2020

Binary Size Report

Affected SDKs

  • firebase-abt

    Type Base (43f5c6d) Head (aea06f22) Diff
    apk (aggressive) 85.3 kB 85.3 kB +6 B (+0.0%)
  • firebase-common

    Type Base (43f5c6d) Head (aea06f22) Diff
    apk (aggressive) 82.5 kB 82.5 kB +18 B (+0.0%)
    apk (debug) 770 kB 770 kB +5 B (+0.0%)
  • firebase-common-ktx

    Type Base (43f5c6d) Head (aea06f22) Diff
    apk (aggressive) 272 kB 272 kB +5 B (+0.0%)
    apk (debug) 1.56 MB 1.56 MB -82 B (-0.0%)
  • firebase-components

    Type Base (43f5c6d) Head (aea06f22) Diff
    apk (aggressive) 11.0 kB 11.0 kB +6 B (+0.1%)
    apk (debug) 35.9 kB 35.9 kB +3 B (+0.0%)
  • firebase-config

    Type Base (43f5c6d) Head (aea06f22) Diff
    aar 215 kB 215 kB +40 B (+0.0%)
    apk (aggressive) 403 kB 129 kB -274 kB (-67.9%)
    apk (debug) 1.34 MB 1.05 MB -294 kB (-21.9%)
    apk (release) 1.15 MB 870 kB -280 kB (-24.4%)
  • firebase-config-ktx

    Type Base (43f5c6d) Head (aea06f22) Diff
    aar 6.16 kB 5.83 kB -328 B (-5.3%)
    apk (aggressive) 593 kB 319 kB -274 kB (-46.1%)
    apk (debug) 2.13 MB 1.84 MB -295 kB (-13.8%)
    apk (release) 1.78 MB 1.50 MB -279 kB (-15.7%)
  • firebase-installations

    Type Base (43f5c6d) Head (aea06f22) Diff
    apk (aggressive) 84.2 kB 84.3 kB +21 B (+0.0%)
    apk (debug) 794 kB 794 kB -27 B (-0.0%)
  • firebase-installations-interop

    Type Base (43f5c6d) Head (aea06f22) Diff
    apk (aggressive) 61.7 kB 61.7 kB +7 B (+0.0%)
    apk (debug) 744 kB 744 kB -1 B (-0.0%)

Test Logs

Notes

Head commit (aea06f22) is created by Prow via merging commits: 43f5c6d 5dcf294.

@firebase firebase deleted a comment from taiyokun May 21, 2020
@danasilver
Copy link
Contributor Author

/test smoke-tests

@danasilver danasilver requested a review from ankitaj224 June 2, 2020 19:36
@ankitaj224 ankitaj224 requested a review from andirayo June 5, 2020 00:08
Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

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

A couple of terminology things for you, thanks!


Tasks.whenAllComplete(idTask, tokenTask)
.addOnCompleteListener(
unusedCompletedTasks -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about ignoredTasks?
I am not sure what Android naming convention is here, but do you also use the underscore "_" prefix?
_ignoredTasks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure there's a real convention in Android or Java, but we use "unused" consistently as a prefix in Remote Config at least, so I'd lean towards keeping it.

Comment on lines +215 to +216
return fetchFromBackendAndCacheResponse(
installationId, installationToken, currentTime);
Copy link
Contributor

Choose a reason for hiding this comment

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

I know we already talked about this, but I strongly recommend to only upload the FIS auth token, because the auth token contains all the information needed on server side, particularly the FID.
Thus, uploading both values is redundancy and might lead to inconsistencies on server side.

As far as I understood our conversations, you are planning to get rid of uploading the FID in the future, but want to upload it for now to keep the current processes consistent.
That is absolutely fine. I just wanted to mention it again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for calling it out!

@danasilver
Copy link
Contributor Author

/test smoke-tests

@danasilver danasilver merged commit d4776b3 into master Jun 17, 2020
@danasilver danasilver deleted the rc-fis-dep branch June 17, 2020 23:07
@firebase firebase locked and limited conversation to collaborators Jul 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Override cla size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants