firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Recent fixes + improvements to FIRDatabaseQuery#getDataWithCompletionBlock

Open jmwski opened this issue 3 years ago • 2 comments
trafficstars

This change includes fixes ported from:

  • https://github.com/firebase/firebase-android-sdk/pull/3887
  • https://github.com/firebase/firebase-android-sdk/pull/3962
  • https://github.com/firebase/firebase-android-sdk/pull/3485

Highlights:

  • FSyncTree {add, remove}EventRegistration now have skipListenDedup and skipListenSetup which are set to true by keepQuery if it's being called to establish a short-lived View to update persistent cache in getDataWithCompletionBlock.
  • The branch in FPersistentConnection that waits for a connection to be established is now removed. The first getDataWithCompletionBlock will block until initial connect. Every get() thereafter fallback to persisted cache in the worst case.

jmwski avatar Nov 17 '22 00:11 jmwski

1 Warning
:warning: Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by :no_entry_sign: Danger

google-oss-bot avatar Nov 17 '22 00:11 google-oss-bot

Coverage Report 1

Affected Products

  • FirebaseDatabase-iOS-FirebaseDatabase.framework

    Overall coverage changed from 56.99% (09aae23) to 56.91% (e29350b) by -0.08%.

    FilenameBase (09aae23)Merge (e29350b)Diff
    FPersistentConnection.m21.28%21.81%+0.54%
    FRepo.m13.49%13.01%-0.48%
    FSyncTree.m71.33%70.87%-0.46%

Test Logs

google-oss-bot avatar Nov 17 '22 01:11 google-oss-bot

  • @aashishpatil-g Please close, merge, or comment. We plan to close stale PRs on November 28, 2023.

paulb777 avatar Nov 14 '23 00:11 paulb777

@paulb777 - We are still actively considering this PR for merge.

aashishpatil-g avatar Nov 20 '23 22:11 aashishpatil-g

Closing. Will re-open once the master branch is re-named.

maneesht avatar Dec 04 '23 23:12 maneesht