-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reject conflicting updates #2582
Reject conflicting updates #2582
Conversation
|
||
@Override | ||
public int compareTo(@Nonnull FieldPath other) { | ||
return canonicalString().compareTo(other.canonicalString()); |
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.
Oh right, I forgot we had this variable. |
Yes, this is indeed not thread-safe. I have the 'Memoize' annotation ready to go, but it requires us to update our dependency on AutoValue. We are currently on 1.2, while the release is up to 1.5.2 (which includes Memoize). Is that feasible? |
Ah OK. I'm leaning towards updating AutoValue in its own PR. Looking through release notes, there are some changes that might break things. I'm OK with updating AutoValue version and adding Memoize in the same PR though. Do you have cycles to pick this up? |
@garrettjonesgoogle Do you also want to take a look? LGTM from me, so feel free to just merge if you think your review isn't necessary. |
We're trying to do a release, let's hold of on merging until that's done. |
I can update Firestore, but I don't have cycles to update the rest of the repo. |
As discussed offline with @pongad, this is good to merge. |
This reverts commit 7c93395.
This rejects updates that include ambiguous field definitions, such as "a.b" : "foo" and "a" : "foo"
Note that this includes the same google-java-format changes as #2565