Skip to content

Add isEqual() and port DocumentReference array test. #380

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 19, 2017

Conversation

mikelehen
Copy link
Contributor

  • Ports the test for the fix I made for Android for DocumentReference objects in arrays (bug not present in iOS).
  • Implements isEqual on FIRQuery and FIRDocumentReference.

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM with nits

@@ -110,6 +110,32 @@ - (instancetype)initWithKey:(FSTDocumentKey *)key firestore:(FIRFirestore *)fire
return self;
}

#pragma mark - NSObject Methods

- (BOOL)isEqual:(id)other {
Copy link
Contributor

Choose a reason for hiding this comment

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

nullable id

return [self isEqualToReference:other];
}

- (BOOL)isEqualToReference:(FIRDocumentReference *)reference {
Copy link
Contributor

Choose a reason for hiding this comment

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

nullable FIRDocumentReference *

@@ -103,6 +103,31 @@ - (instancetype)initWithQuery:(FSTQuery *)query firestore:(FIRFirestore *)firest
return self;
}

#pragma mark - NSObject Methods

- (BOOL)isEqual:(id)other {
Copy link
Contributor

Choose a reason for hiding this comment

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

nullable here and in isEqualToQuery

@mikelehen mikelehen merged commit 024788e into master Oct 19, 2017
@mikelehen mikelehen deleted the mikelehen-isEqual-and-array-test branch October 19, 2017 15:23
minafarid pushed a commit to minafarid/firebase-ios-sdk that referenced this pull request Jun 6, 2018
* Ports the test for the fix I made for Android for DocumentReference objects in arrays (bug not present in iOS).
* Implements isEqual on FIRQuery and FIRDocumentReference.
@firebase firebase locked and limited conversation to collaborators Nov 12, 2019
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