Skip to content

Commit 3458876

Browse files
mikelehenJesseLovelace
authored andcommitted
---
yaml --- r: 14055 b: refs/heads/autosynth-monitoring c: ed7bc85 h: refs/heads/master i: 14053: 29ce48a 14051: 355d37f 14047: 3b93fb7
1 parent 7b8e06f commit 3458876

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ refs/tags/v0.67.0: 30b56f02092efc6f3c3667650ea8b8825003e0b7
115115
refs/heads/autosynth-compute: 8e86445e504cea6f99b9fb237bfd7f0e5ef8b3ce
116116
refs/heads/autosynth-container: f6384095f50b31bfc8208542a49181e158d3681c
117117
refs/heads/autosynth-dataproc: bc74a8841bc1693d7945d991d15979df550b1fd1
118-
refs/heads/autosynth-monitoring: c9f7d7bb12a08f084dd826f27ce997db658dc86b
118+
refs/heads/autosynth-monitoring: ed7bc857a05b34eed6be182d4798a62bf09cd394
119119
refs/heads/autosynth-pubsub: ed3340e32d13bb1a42ca4431cb1ad9bdaf550aa4
120120
refs/heads/autosynth-video-intelligence: 3e8faeeee2f803271529bd6e89b621c1ca098628
121121
refs/heads/autosynth-vision: d758c43ba2ef4f4f7ad07b722617cb39fe3f29db

branches/autosynth-monitoring/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ boolean areTimestampsInSnapshotsEnabled() {
398398

399399
/** Returns the name of the Firestore project associated with this client. */
400400
String getDatabaseName() {
401-
return databasePath.toString();
401+
return databasePath.getDatabaseName().toString();
402402
}
403403

404404
/** Returns the underlying RPC client. */

branches/autosynth-monitoring/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/ResourcePath.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ String getPath() {
127127
*/
128128
String getName() {
129129
String path = getPath();
130-
131130
if (path.isEmpty()) {
132-
return getDatabaseName().toString();
131+
return getDatabaseName() + "/documents";
133132
} else {
134133
return getDatabaseName() + "/documents/" + getPath();
135134
}

branches/autosynth-monitoring/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public static RunQueryRequest query(StructuredQuery... query) {
435435
public static RunQueryRequest query(
436436
@Nullable ByteString transactionId, StructuredQuery... query) {
437437
RunQueryRequest.Builder request = RunQueryRequest.newBuilder();
438-
request.setParent(LocalFirestoreHelper.DATABASE_NAME);
438+
request.setParent(LocalFirestoreHelper.DATABASE_NAME + "/documents");
439439
StructuredQuery.Builder structuredQuery = request.getStructuredQueryBuilder();
440440
structuredQuery.addFrom(
441441
StructuredQuery.CollectionSelector.newBuilder().setCollectionId("coll"));

0 commit comments

Comments
 (0)