-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Firestore: implement equality semantics for public types #6916
Conversation
@crwilcox Failed systests are all due to quota issues in the |
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this 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
Snapshots are supposed to be immutable. Addresses: #6916 (comment)
Use the server-set, nanosecond-precision 'update_time' instead.
Adds
__eq__
for the following types:ArrayRemove
ArrayUnion
CollectionReference
DocumentSnapshot
ExistsOption
LastUpdatedOption
Query
Closes #6552.