Skip to content

Add expected count to target #4574

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

Conversation

milaGGL
Copy link
Contributor

@milaGGL milaGGL commented Jan 19, 2023

@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

Javadoc Changes:
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/firestore/AggregateQuery.html	2023-01-23 22:36:44.833135283 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/firestore/AggregateQuery.html	2023-01-23 22:36:03.185297062 +0000
@@ -47,7 +47,7 @@
           <tr>
             <td width="40%"><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html">Task</a>&lt;<a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateQuerySnapshot.html">AggregateQuerySnapshot</a>&gt;</code></td>
             <td>
-              <div><code><a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateQuery.html#get(com.google.firebase.firestore.AggregateSource)">get</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateSource.html">AggregateSource</a>&nbsp;source)</code></div>
+              <div><code><a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateQuery.html#get(com.google.firebase.firestore.AggregateSource)">get</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;source)</code></div>
               <p>Executes this query.</p>
             </td>
           </tr>
@@ -122,7 +122,7 @@
     </div>
     <div><a name="get-com.google.firebase.firestore.AggregateSource-"></a><a name="get"></a>
       <h3 class="api-name" id="get(com.google.firebase.firestore.AggregateSource)">get</h3>
-      <pre class="api-signature no-pretty-print">public&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html">Task</a>&lt;<a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateQuerySnapshot.html">AggregateQuerySnapshot</a>&gt;&nbsp;<a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateQuery.html#get(com.google.firebase.firestore.AggregateSource)">get</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateSource.html">AggregateSource</a>&nbsp;source)</pre>
+      <pre class="api-signature no-pretty-print">public&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html">Task</a>&lt;<a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateQuerySnapshot.html">AggregateQuerySnapshot</a>&gt;&nbsp;<a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateQuery.html#get(com.google.firebase.firestore.AggregateSource)">get</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;source)</pre>
       <p>Executes this query.</p>
       <div class="devsite-table-wrapper">
         <table class="responsive">
@@ -133,7 +133,7 @@
           </thead>
           <tbody class="list">
             <tr>
-              <td width="40%"><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/AggregateSource.html">AggregateSource</a>&nbsp;source</code></td>
+              <td width="40%"><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;source</code></td>
               <td>
                 <p>The source from which to acquire the aggregate results.</p>
               </td>
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/firestore/LoadBundleTaskProgress.html	2023-01-23 22:36:44.833135283 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/firestore/LoadBundleTaskProgress.html	2023-01-23 22:36:03.185297062 +0000
@@ -81,7 +81,7 @@
             </td>
           </tr>
           <tr>
-            <td width="40%"><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a></code></td>
+            <td width="40%"><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/LoadBundleTaskProgress.TaskState.html">LoadBundleTaskProgress.TaskState</a></code></td>
             <td>
               <div><code><a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/LoadBundleTaskProgress.html#getTaskState()">getTaskState</a>()</code></div>
               <p>Returns the current state of the <code><a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/LoadBundleTask.html">LoadBundleTask</a></code>.</p>
@@ -137,7 +137,7 @@
     </div>
     <div><a name="getTaskState--"></a><a name="gettaskstate"></a>
       <h3 class="api-name" id="getTaskState()">getTaskState</h3>
-      <pre class="api-signature no-pretty-print">public&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;<a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/LoadBundleTaskProgress.html#getTaskState()">getTaskState</a>()</pre>
+      <pre class="api-signature no-pretty-print">public&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/LoadBundleTaskProgress.TaskState.html">LoadBundleTaskProgress.TaskState</a>&nbsp;<a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/LoadBundleTaskProgress.html#getTaskState()">getTaskState</a>()</pre>
       <p>Returns the current state of the <code><a href="/https/github.com/docs/reference/android/com/google/firebase/firestore/LoadBundleTask.html">LoadBundleTask</a></code>.</p>
     </div>
     <div><a name="getTotalBytes--"></a><a name="gettotalbytes"></a>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/firestore/AggregateQuery.html	2023-01-23 22:36:44.849135220 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/firestore/AggregateQuery.html	2023-01-23 22:36:03.201297000 +0000
@@ -47,7 +47,7 @@
           <tr>
             <td width="40%"><code><a href="https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html">Task</a>&lt;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateQuerySnapshot.html">AggregateQuerySnapshot</a>!&gt;</code></td>
             <td>
-              <div><code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateQuery.html#get(com.google.firebase.firestore.AggregateSource)">get</a>(source:&nbsp;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateSource.html">AggregateSource</a>)</code></div>
+              <div><code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateQuery.html#get(com.google.firebase.firestore.AggregateSource)">get</a>(source:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>)</code></div>
               <p>Executes this query.</p>
             </td>
           </tr>
@@ -122,7 +122,7 @@
     </div>
     <div><a name="get-com.google.firebase.firestore.AggregateSource-"></a><a name="get"></a>
       <h3 class="api-name" id="get(com.google.firebase.firestore.AggregateSource)">get</h3>
-      <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateQuery.html#get(com.google.firebase.firestore.AggregateSource)">get</a>(source:&nbsp;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateSource.html">AggregateSource</a>):&nbsp;<a href="https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html">Task</a>&lt;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateQuerySnapshot.html">AggregateQuerySnapshot</a>!&gt;</pre>
+      <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateQuery.html#get(com.google.firebase.firestore.AggregateSource)">get</a>(source:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>):&nbsp;<a href="https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html">Task</a>&lt;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateQuerySnapshot.html">AggregateQuerySnapshot</a>!&gt;</pre>
       <p>Executes this query.</p>
       <div class="devsite-table-wrapper">
         <table class="responsive">
@@ -133,7 +133,7 @@
           </thead>
           <tbody class="list">
             <tr>
-              <td width="40%"><code>source:&nbsp;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/AggregateSource.html">AggregateSource</a></code></td>
+              <td width="40%"><code>source:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a></code></td>
               <td>
                 <p>The source from which to acquire the aggregate results.</p>
               </td>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/firestore/LoadBundleTaskProgress.html	2023-01-23 22:36:44.845135236 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/firestore/LoadBundleTaskProgress.html	2023-01-23 22:36:03.201297000 +0000
@@ -81,7 +81,7 @@
             </td>
           </tr>
           <tr>
-            <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a></code></td>
+            <td width="40%"><code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/LoadBundleTaskProgress.TaskState.html">LoadBundleTaskProgress.TaskState</a></code></td>
             <td>
               <div><code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/LoadBundleTaskProgress.html#getTaskState()">getTaskState</a>()</code></div>
               <p>Returns the current state of the <code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/LoadBundleTask.html">LoadBundleTask</a></code>.</p>
@@ -137,7 +137,7 @@
     </div>
     <div><a name="getTaskState--"></a><a name="gettaskstate"></a>
       <h3 class="api-name" id="getTaskState()">getTaskState</h3>
-      <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/LoadBundleTaskProgress.html#getTaskState()">getTaskState</a>():&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a></pre>
+      <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/LoadBundleTaskProgress.html#getTaskState()">getTaskState</a>():&nbsp;<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/LoadBundleTaskProgress.TaskState.html">LoadBundleTaskProgress.TaskState</a></pre>
       <p>Returns the current state of the <code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/firestore/LoadBundleTask.html">LoadBundleTask</a></code>.</p>
     </div>
     <div><a name="getTotalBytes--"></a><a name="gettotalbytes"></a>

@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 19, 2023

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from ? (82280ca) to 44.25% (a955a53) by ?.

    320 individual files with coverage change

    FilenameBase (82280ca)Merge (a955a53)Diff
    AbstractStream.java?34.81%?
    ActivityScope.java?0.00%?
    AggregateQuery.java?15.00%?
    AggregateQuerySnapshot.java?0.00%?
    AggregateSource.java?0.00%?
    AggregationResult.java?0.00%?
    AggregationResultOrBuilder.java?0.00%?
    AggregationResultProto.java?0.00%?
    AndroidConnectivityMonitor.java?39.51%?
    ApiUtil.java?12.50%?
    ArrayContainsAnyFilter.java?100.00%?
    ArrayContainsFilter.java?100.00%?
    ArrayTransformOperation.java?86.49%?
    ArrayValue.java?48.60%?
    ArrayValueOrBuilder.java?0.00%?
    Assert.java?60.00%?
    AsyncEventListener.java?0.00%?
    AsyncQueue.java?70.65%?
    AutoValue_FieldIndex.java?58.33%?
    AutoValue_FieldIndex_IndexOffset.java?58.62%?
    AutoValue_FieldIndex_IndexState.java?59.09%?
    AutoValue_FieldIndex_Segment.java?54.17%?
    AutoValue_IndexEntry.java?34.21%?
    AutoValue_Overlay.java?54.55%?
    BackgroundQueue.java?81.25%?
    BasePath.java?86.54%?
    BatchGetDocumentsRequest.java?0.00%?
    BatchGetDocumentsRequestOrBuilder.java?0.00%?
    BatchGetDocumentsResponse.java?0.00%?
    BatchGetDocumentsResponseOrBuilder.java?0.00%?
    BeginTransactionRequest.java?0.00%?
    BeginTransactionRequestOrBuilder.java?0.00%?
    BeginTransactionResponse.java?0.00%?
    BeginTransactionResponseOrBuilder.java?0.00%?
    BitSequence.java?0.00%?
    BitSequenceOrBuilder.java?0.00%?
    Blob.java?76.92%?
    BloomFilter.java?93.88%?
    BloomFilterOrBuilder.java?0.00%?
    BloomFilterProto.java?0.00%?
    Bound.java?39.29%?
    BundleCache.java?0.00%?
    BundleCallback.java?0.00%?
    BundledDocumentMetadata.java?0.00%?
    BundledDocumentMetadataOrBuilder.java?0.00%?
    BundleDocument.java?90.00%?
    BundledQuery.java?34.57%?
    BundledQueryOrBuilder.java?0.00%?
    BundleElement.java?0.00%?
    BundleElementOrBuilder.java?0.00%?
    BundleLoader.java?100.00%?
    BundleMetadata.java?0.00%?
    BundleMetadataOrBuilder.java?0.00%?
    BundleProto.java?0.00%?
    BundleReader.java?95.29%?
    BundleSerializer.java?89.47%?
    ByteBufferInputStream.java?83.33%?
    CollectionReference.java?13.64%?
    CommitRequest.java?0.00%?
    CommitRequestOrBuilder.java?0.00%?
    CommitResponse.java?0.00%?
    CommitResponseOrBuilder.java?0.00%?
    CommonProto.java?0.00%?
    ComponentProvider.java?100.00%?
    CompositeFilter.java?98.57%?
    ConnectivityMonitor.java?0.00%?
    Consumer.java?0.00%?
    CreateDocumentRequest.java?0.00%?
    CreateDocumentRequestOrBuilder.java?0.00%?
    CredentialsProvider.java?100.00%?
    Cursor.java?35.29%?
    CursorOrBuilder.java?0.00%?
    CustomClassMapper.java?84.25%?
    DatabaseId.java?70.37%?
    DatabaseInfo.java?90.91%?
    Datastore.java?23.28%?
    DatastoreTestTrace.java?0.00%?
    DeleteDocumentRequest.java?0.00%?
    DeleteDocumentRequestOrBuilder.java?0.00%?
    DeleteMutation.java?95.24%?
    DirectionalIndexByteEncoder.java?100.00%?
    Document.java?100.00%?
    DocumentChange.java?67.61%?
    DocumentChangeOrBuilder.java?0.00%?
    DocumentCollections.java?83.33%?
    DocumentDelete.java?34.62%?
    DocumentDeleteOrBuilder.java?0.00%?
    DocumentId.java?0.00%?
    DocumentKey.java?97.14%?
    DocumentMask.java?40.66%?
    DocumentMaskOrBuilder.java?0.00%?
    DocumentOrBuilder.java?0.00%?
    DocumentOverlayCache.java?0.00%?
    DocumentProto.java?0.00%?
    DocumentReference.java?13.24%?
    DocumentRemove.java?29.23%?
    DocumentRemoveOrBuilder.java?0.00%?
    DocumentSet.java?83.78%?
    DocumentSnapshot.java?37.50%?
    DocumentTransform.java?29.31%?
    DocumentTransformOrBuilder.java?0.00%?
    DocumentViewChange.java?90.91%?
    DocumentViewChangeSet.java?87.88%?
    EncodedPath.java?93.22%?
    EventListener.java?0.00%?
    EventManager.java?96.15%?
    Exclude.java?0.00%?
    Executors.java?100.00%?
    ExistenceFilter.java?80.00%?
    ExistenceFilterOrBuilder.java?0.00%?
    ExponentialBackoff.java?30.43%?
    FieldFilter.java?93.06%?
    FieldIndex.java?98.18%?
    FieldMask.java?57.89%?
    FieldPath.java?89.66%?
    FieldTransform.java?64.71%?
    FieldValue.java?82.14%?
    FileUtil.java?0.00%?
    Filter.java?0.00%?
    FirebaseAppCheckTokenProvider.java?93.75%?
    FirebaseAuthCredentialsProvider.java?100.00%?
    FirebaseClientGrpcMetadataProvider.java?44.00%?
    FirebaseFirestore.java?36.67%?
    FirebaseFirestoreException.java?83.72%?
    FirebaseFirestoreSettings.java?75.00%?
    FirestoreCallCredentials.java?18.60%?
    FirestoreChannel.java?18.10%?
    FirestoreClient.java?36.11%?
    FirestoreGrpc.java?2.46%?
    FirestoreIndexValueWriter.java?77.11%?
    FirestoreMultiDbComponent.java?100.00%?
    FirestoreProto.java?0.00%?
    FirestoreRegistrar.java?100.00%?
    Function.java?0.00%?
    GeoPoint.java?91.67%?
    GetDocumentRequest.java?0.00%?
    GetDocumentRequestOrBuilder.java?0.00%?
    GrpcCallProvider.java?69.41%?
    GrpcMetadataProvider.java?0.00%?
    IgnoreExtraProperties.java?0.00%?
    IncomingStreamObserver.java?0.00%?
    Index.java?30.02%?
    IndexBackfiller.java?100.00%?
    IndexByteEncoder.java?88.57%?
    IndexEntry.java?100.00%?
    IndexManager.java?100.00%?
    IndexOrBuilder.java?0.00%?
    IndexProto.java?0.00%?
    InFilter.java?100.00%?
    IntMath.java?41.67%?
    KeyFieldFilter.java?66.67%?
    KeyFieldInFilter.java?0.00%?
    KeyFieldNotInFilter.java?0.00%?
    LimboDocumentChange.java?70.59%?
    ListCollectionIdsRequest.java?0.00%?
    ListCollectionIdsRequestOrBuilder.java?0.00%?
    ListCollectionIdsResponse.java?0.00%?
    ListCollectionIdsResponseOrBuilder.java?0.00%?
    ListDocumentsRequest.java?0.00%?
    ListDocumentsRequestOrBuilder.java?0.00%?
    ListDocumentsResponse.java?0.00%?
    ListDocumentsResponseOrBuilder.java?0.00%?
    Listener.java?0.00%?
    ListenerRegistration.java?0.00%?
    ListenerRegistrationImpl.java?0.00%?
    ListenRequest.java?13.20%?
    ListenRequestOrBuilder.java?0.00%?
    ListenResponse.java?32.64%?
    ListenResponseOrBuilder.java?0.00%?
    ListenSequence.java?100.00%?
    LoadBundleTask.java?25.26%?
    LoadBundleTaskProgress.java?60.47%?
    LocalDocumentsResult.java?100.00%?
    LocalDocumentsView.java?100.00%?
    LocalSerializer.java?97.35%?
    LocalStore.java?99.37%?
    LocalViewChanges.java?100.00%?
    Logger.java?75.00%?
    LogicUtils.java?96.67%?
    LruDelegate.java?0.00%?
    LruGarbageCollector.java?93.46%?
    MapValue.java?53.00%?
    MapValueOrBuilder.java?0.00%?
    MemoryBundleCache.java?100.00%?
    MemoryComponentProvider.java?100.00%?
    MemoryDocumentOverlayCache.java?100.00%?
    MemoryEagerReferenceDelegate.java?100.00%?
    MemoryIndexManager.java?68.97%?
    MemoryLruReferenceDelegate.java?96.00%?
    MemoryMutationQueue.java?98.57%?
    MemoryOverlayMigrationManager.java?100.00%?
    MemoryPersistence.java?100.00%?
    MemoryRemoteDocumentCache.java?98.21%?
    MemoryTargetCache.java?100.00%?
    MetadataChanges.java?100.00%?
    MutableDocument.java?100.00%?
    Mutation.java?100.00%?
    MutationBatch.java?89.23%?
    MutationBatchResult.java?100.00%?
    MutationQueue.java?0.00%?
    MutationResult.java?100.00%?
    NamedQuery.java?0.00%?
    NamedQueryOrBuilder.java?0.00%?
    NotInFilter.java?85.71%?
    NumberComparisonHelper.java?100.00%?
    NumericIncrementTransformOperation.java?87.50%?
    ObjectValue.java?99.06%?
    OnlineState.java?100.00%?
    OnlineStateTracker.java?98.11%?
    OnProgressListener.java?0.00%?
    OrderBy.java?96.55%?
    OrderedCodeWriter.java?68.52%?
    Overlay.java?100.00%?
    OverlayedDocument.java?100.00%?
    OverlayMigrationManager.java?0.00%?
    PatchMutation.java?100.00%?
    Persistence.java?100.00%?
    Precondition.java?37.82%?
    PreconditionOrBuilder.java?0.00%?
    Preconditions.java?57.89%?
    PropertyName.java?0.00%?
    Query.java?3.97%?
    QueryDocumentSnapshot.java?64.71%?
    QueryEngine.java?98.63%?
    QueryListener.java?100.00%?
    QueryProto.java?0.00%?
    QueryPurpose.java?100.00%?
    QueryResult.java?100.00%?
    QuerySnapshot.java?76.36%?
    QueryView.java?100.00%?
    ReferenceDelegate.java?0.00%?
    ReferenceSet.java?92.45%?
    RemoteDocumentCache.java?0.00%?
    RemoteEvent.java?92.31%?
    RemoteSerializer.java?84.09%?
    RemoteStore.java?88.67%?
    ResourcePath.java?94.74%?
    RollbackRequest.java?0.00%?
    RollbackRequestOrBuilder.java?0.00%?
    RunAggregationQueryRequest.java?0.00%?
    RunAggregationQueryRequestOrBuilder.java?0.00%?
    RunAggregationQueryResponse.java?0.00%?
    RunAggregationQueryResponseOrBuilder.java?0.00%?
    RunQueryRequest.java?0.00%?
    RunQueryRequestOrBuilder.java?0.00%?
    RunQueryResponse.java?0.00%?
    RunQueryResponseOrBuilder.java?0.00%?
    Scheduler.java?0.00%?
    ServerTimestamp.java?0.00%?
    ServerTimestampOperation.java?100.00%?
    ServerTimestamps.java?79.17%?
    SetMutation.java?94.44%?
    SetOptions.java?0.00%?
    SnapshotMetadata.java?68.75%?
    SnapshotVersion.java?87.50%?
    Source.java?0.00%?
    SQLiteBundleCache.java?90.00%?
    SQLiteComponentProvider.java?100.00%?
    SQLiteDocumentOverlayCache.java?97.85%?
    SQLiteIndexManager.java?99.49%?
    SQLiteLruReferenceDelegate.java?98.67%?
    SQLiteMutationQueue.java?82.76%?
    SQLiteOverlayMigrationManager.java?90.48%?
    SQLitePersistence.java?86.34%?
    SQLiteRemoteDocumentCache.java?98.17%?
    SQLiteSchema.java?96.63%?
    SQLiteTargetCache.java?98.47%?
    Stream.java?100.00%?
    StructuredAggregationQuery.java?0.00%?
    StructuredAggregationQueryOrBuilder.java?0.00%?
    StructuredQuery.java?32.54%?
    StructuredQueryOrBuilder.java?0.00%?
    Supplier.java?0.00%?
    SyncEngine.java?93.31%?
    Target.java?95.79%?
    TargetCache.java?0.00%?
    TargetChange.java?80.00%?
    TargetChangeOrBuilder.java?0.00%?
    TargetData.java?77.78%?
    TargetIdGenerator.java?100.00%?
    TargetIndexMatcher.java?100.00%?
    TargetOrBuilder.java?0.00%?
    TargetState.java?97.78%?
    ThrottledForwardingExecutor.java?100.00%?
    ThrowOnExtraProperties.java?0.00%?
    Timestamp.java?80.39%?
    Token.java?0.00%?
    Transaction.java?0.00%?
    TransactionOptions.java?0.00%?
    TransactionOptionsOrBuilder.java?0.00%?
    TransactionRunner.java?0.00%?
    TransformOperation.java?0.00%?
    UpdateDocumentRequest.java?0.00%?
    UpdateDocumentRequestOrBuilder.java?0.00%?
    User.java?78.57%?
    UserData.java?66.00%?
    UserDataReader.java?70.48%?
    UserDataWriter.java?51.02%?
    Util.java?67.63%?
    Value.java?40.97%?
    ValueOrBuilder.java?0.00%?
    Values.java?95.65%?
    VerifyMutation.java?46.15%?
    View.java?96.82%?
    ViewChange.java?100.00%?
    ViewSnapshot.java?89.23%?
    WatchChange.java?70.51%?
    WatchChangeAggregator.java?98.21%?
    WatchStream.java?19.23%?
    Write.java?36.11%?
    WriteBatch.java?0.00%?
    WriteOrBuilder.java?0.00%?
    WriteProto.java?0.00%?
    WriteRequest.java?12.67%?
    WriteRequestOrBuilder.java?0.00%?
    WriteResponse.java?13.45%?
    WriteResponseOrBuilder.java?0.00%?
    WriteResult.java?0.00%?
    WriteResultOrBuilder.java?0.00%?
    WriteStream.java?31.82%?

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/Hlm9UtCKUs.html

@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

Unit Test Results

   160 files     160 suites   2m 4s ⏱️
1 136 tests 1 120 ✔️ 16 💤 0
2 272 runs  2 240 ✔️ 32 💤 0

Results for commit c26b4e5.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 19, 2023

Size Report 1

Affected Products

  • base

    TypeBase (82280ca)Merge (a955a53)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?8.65 kB? (?)
  • firebase-annotations

    TypeBase (82280ca)Merge (a955a53)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?9.46 kB? (?)
  • firebase-appcheck-interop

    TypeBase (82280ca)Merge (a955a53)Diff
    aar?5.09 kB? (?)
    apk (aggressive)?354 kB? (?)
    apk (release)?1.54 MB? (?)
  • firebase-common

    TypeBase (82280ca)Merge (a955a53)Diff
    aar?67.6 kB? (?)
    apk (aggressive)?79.4 kB? (?)
    apk (release)?1.23 MB? (?)
  • firebase-components

    TypeBase (82280ca)Merge (a955a53)Diff
    aar?45.1 kB? (?)
    apk (aggressive)?23.1 kB? (?)
    apk (release)?579 kB? (?)
  • firebase-database-collection

    TypeBase (82280ca)Merge (a955a53)Diff
    aar?33.7 kB? (?)
    apk (aggressive)?312 kB? (?)
    apk (release)?929 kB? (?)
  • firebase-firestore

    TypeBase (82280ca)Merge (a955a53)Diff
    aar?1.32 MB? (?)
    apk (aggressive)?483 kB? (?)
    apk (release)?3.48 MB? (?)
  • protolite-well-known-types

    TypeBase (82280ca)Merge (a955a53)Diff
    aar?1.00e+03 kB? (?)
    apk (aggressive)?31.2 kB? (?)
    apk (release)?273 kB? (?)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/i7y0OmGgyq.html

@milaGGL milaGGL changed the base branch from master to mila/BloomFilter January 19, 2023 06:46
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 19, 2023

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Startup time comparison between the CI merge commit (a955a53) and the base commit (82280ca) are not available.

No macrobenchmark data found for the base commit (82280ca). Analysis for the CI merge commit (a955a53) can be found at:

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/j3e65akuyo/index.html

@milaGGL milaGGL marked this pull request as ready for review January 19, 2023 18:56
@milaGGL milaGGL requested a review from dconeybe January 19, 2023 18:56
@@ -499,6 +499,10 @@ public Target encodeTarget(TargetData targetData) {
builder.setResumeToken(targetData.getResumeToken());
}

if (targetData.getExpectedCount() != null) {
builder.setExpectedCount(Int32Value.newBuilder().setValue(targetData.getExpectedCount()));
Copy link
Contributor

Choose a reason for hiding this comment

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

This code block is inconsistent with the web sdk. In the web sdk, it only sets expectedCount if a resume token or snapshot version is specified. Here, it is setting expectedCount regardless of whether or not a resume token or snapshot version is specified.

We generally aim to keep the sdks in sync as much as possible because it's confusing when things are done differently in one sdk compared to another.

Please make the two SDKs do the same thing in this scenario.

I think the way that the web sdk does it is best because it makes it very clear that expectedCount is only meaningful if a resume token or snapshot version is used.

https://github.com/firebase/firebase-js-sdk/blob/dd6683583b7c6b07586c2551f4d362b48fb83f7c/packages/firestore/src/remote/serializer.ts#L1013-L1025

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, this is the part that I am a bit hesitated. In web the if statments is like:

if (targetData.resumeToken.approximateByteSize() > 0) {
  } else if (targetData.snapshotVersion.compareTo(SnapshotVersion.min()) > 0) {

while in Android it is

if (targetData.getResumeToken().isEmpty()
        && targetData.getSnapshotVersion().compareTo(SnapshotVersion.NONE) > 0) {
} else{
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated the if statement to indicate resume token or snapshotVersion is required to add expectedCount:

   if (targetData.getExpectedCount() != null
        && (!targetData.getResumeToken().isEmpty()
            || targetData.getSnapshotVersion().compareTo(SnapshotVersion.NONE) > 0)) {
      builder.setExpectedCount(Int32Value.newBuilder().setValue(targetData.getExpectedCount()));
    }

Copy link
Contributor

Choose a reason for hiding this comment

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

Even though the "if" statement has the extra check for targetData.getResumeToken().isEmpty(), we should still mirror the structure from the web sdk. We only want to set expected count if either the "if" or the "else" branch above is entered, so we may as well put the logic into those branches.

@@ -99,6 +99,7 @@
"watchEntity": {
"docs": [
{
"createTime": 0,
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 this is annoying, but can you remove all of the createTime lines from this file, since they are not part of the bloom filter tests?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what happened, but there are still a bunch of "createTime": 0 lines in this file. Could you remove them too?

@@ -499,6 +499,10 @@ public Target encodeTarget(TargetData targetData) {
builder.setResumeToken(targetData.getResumeToken());
}

if (targetData.getExpectedCount() != null) {
builder.setExpectedCount(Int32Value.newBuilder().setValue(targetData.getExpectedCount()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Even though the "if" statement has the extra check for targetData.getResumeToken().isEmpty(), we should still mirror the structure from the web sdk. We only want to set expected count if either the "if" or the "else" branch above is entered, so we may as well put the logic into those branches.

@@ -99,6 +99,7 @@
"watchEntity": {
"docs": [
{
"createTime": 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what happened, but there are still a bunch of "createTime": 0 lines in this file. Could you remove them too?

@milaGGL milaGGL requested a review from dconeybe January 27, 2023 21:22
Copy link
Contributor

@dconeybe dconeybe left a comment

Choose a reason for hiding this comment

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

LGTM!

@milaGGL milaGGL merged commit 2139f5e into mila/BloomFilter Jan 27, 2023
@milaGGL milaGGL deleted the mila/BloomFilter-add-expectedCount-to-Target branch January 27, 2023 21:38
@firebase firebase locked and limited conversation to collaborators Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants