Skip to content
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

Firestore: implement equality semantics for public types #6916

Merged
merged 8 commits into from
Dec 18, 2018
Merged

Firestore: implement equality semantics for public types #6916

merged 8 commits into from
Dec 18, 2018

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Dec 13, 2018

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 mcdonc and crwilcox December 13, 2018 17:06
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 13, 2018
@tseaver
Copy link
Contributor Author

tseaver commented Dec 13, 2018

@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.

Copy link
Contributor

@mcdonc mcdonc left a comment

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