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

Upgraded google-cloud-firestore to the latest version (0.61.0-beta) … #205

Closed
wants to merge 1 commit into from

Conversation

RohanTalip
Copy link

…and added a FirebaseOptions#setFireStoreTimestampsInSnapshotsEnabled(boolean) method.

The FirestoreOptions#setTimestampsInSnapshotsEnabled(boolean) method is then called in the FirestoreClient constructor with the value passed to the FirebaseOptions#setFireStoreTimestampsInSnapshotsEnabled(boolean) method.

This allows for firebase-admin-java users to adapt to the Timestamps being returned in DocumentSnapshots as added in googleapis/google-cloud-java#3317

com.google.api:gax was added as a dependency to the pom.xml file as there were "java.lang.NoClassDefFoundError: com/google/api/gax/rpc/ClientStream" errors when running "mvn test" without this dependency.

A couple of tests were also added to the FirestoreClientTest class.

See also issue #204.

…nd added a FirebaseOptions#setFireStoreTimestampsInSnapshotsEnabled(boolean) method.

The FirestoreOptions#setTimestampsInSnapshotsEnabled(boolean) method is then called in the FirestoreClient constructor
with the value passed to the FirebaseOptions#setFireStoreTimestampsInSnapshotsEnabled(boolean) method.

This allows for firebase-admin-java users to adapt to the Timestamps being returned in DocumentSnapshots as added in
googleapis/google-cloud-java#3317

com.google.api:gax was added as a dependency to the pom.xml file as there were
"java.lang.NoClassDefFoundError: com/google/api/gax/rpc/ClientStream" errors when running "mvn test"
without this dependency.

A couple of tests were also added to the FirestoreClientTest class.
@hiranya911
Copy link
Contributor

There is already some work to support this. Plan is to support passing an entire FirestoreOptions object into FirebaseOptions.

@hiranya911
Copy link
Contributor

See #203

@hiranya911 hiranya911 closed this Sep 11, 2018
@RohanTalip
Copy link
Author

There is already some work to support this. Plan is to support passing an entire FirestoreOptions object into FirebaseOptions.

Great! I see your recent commits on #203 . I wasn't sure if exposing the whole FirestoreOptions object was going to be accepted in the code review, so I tried just exposing only what I needed.

Thanks for working on this @hiranya911 !

@RohanTalip RohanTalip deleted the firestore-timestamps branch September 16, 2018 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants