Skip to content

Firestore: implement equality semantics for public types - #6916

Merged
tseaver merged 8 commits into
googleapis:masterfrom
tseaver:6552-firestore-equality_semantics
Dec 18, 2018
Merged

Firestore: implement equality semantics for public types#6916
tseaver merged 8 commits into
googleapis:masterfrom
tseaver:6552-firestore-equality_semantics

Conversation

@tseaver

@tseaver tseaver commented Dec 13, 2018

Copy link
Copy Markdown
Contributor

Adds __eq__ for the following types:

  • ArrayRemove
  • ArrayUnion
  • CollectionReference
  • DocumentSnapshot
  • ExistsOption
  • LastUpdatedOption
  • Query

Closes #6552.

@tseaver tseaver added the api: firestore Issues related to the Firestore API. label Dec 13, 2018
@tseaver
tseaver requested review from crwilcox and mcdonc December 13, 2018 17:06
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 13, 2018
@tseaver

tseaver commented Dec 13, 2018

Copy link
Copy Markdown
Contributor Author

@crwilcox Failed systests are all due to quota issues in the watch tests.

return NotImplemented
return self._reference == other._reference and self._data == other._data

def __hash__(self):

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@mcdonc mcdonc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See single comment in PR

@tseaver
tseaver merged commit 97302e9 into googleapis:master Dec 18, 2018
@tseaver
tseaver deleted the 6552-firestore-equality_semantics branch December 18, 2018 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: firestore Issues related to the Firestore API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants