Skip to content

Commit b41727c

Browse files
mikelehenJesseLovelace
authored andcommitted
---
yaml --- r: 15233 b: refs/heads/autosynth-bigtable c: ed7bc85 h: refs/heads/master i: 15231: cb2661d
1 parent 101af41 commit b41727c

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
@@ -126,7 +126,7 @@ refs/heads/autosynth-asset: cd8251de8c40e239ad24dcf9ed93ea2708a3eed5
126126
refs/heads/autosynth-automl: cced2f56bbef0499609073edbca6253e1df5e535
127127
refs/heads/autosynth-bigquerydatatransfer: a6667617707608b1dbfb02d59c22b5152f208da7
128128
refs/heads/autosynth-bigquerystorage: 14ab055598b943ae3f33f484e9fb1653355d08e7
129-
refs/heads/autosynth-bigtable: c9f7d7bb12a08f084dd826f27ce997db658dc86b
129+
refs/heads/autosynth-bigtable: ed7bc857a05b34eed6be182d4798a62bf09cd394
130130
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
131131
refs/heads/autosynth-containeranalysis: 781fdb430a60f9a6491f116e31e4e10118157bdb
132132
refs/heads/autosynth-datastore: af1fb76aa3eee02fe6f31f8fa1c72a4f048d149b

branches/autosynth-bigtable/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-bigtable/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-bigtable/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)