Skip to content

Commit 9be6cdc

Browse files
mikelehenJesseLovelace
authored andcommitted
---
yaml --- r: 18097 b: refs/heads/pubsub-ordering-keys c: ed7bc85 h: refs/heads/master i: 18095: 524f133
1 parent 44131e6 commit 9be6cdc

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
@@ -159,7 +159,7 @@ refs/tags/v0.72.0: a7703f2593ba312c0b2dde6fdfd4f5c764bb55ac
159159
refs/tags/v0.73.0: 21241ea8be9439cc5764c4944cdce21d34ce4f9e
160160
refs/tags/v0.74.0: 9d1f733dbbf790de7b494418523b69c4a9a57638
161161
refs/heads/ignoretest: 23c412ae07af3d0ab1caa2d44d5bc5c0ccb8b31d
162-
refs/heads/pubsub-ordering-keys: c9f7d7bb12a08f084dd826f27ce997db658dc86b
162+
refs/heads/pubsub-ordering-keys: ed7bc857a05b34eed6be182d4798a62bf09cd394
163163
"refs/heads/update_mvn_badge": ae2d773814db0f71197ccf5a8612ee1d8056f8de
164164
refs/tags/v0.75.0: c3673089ae09a897c1b4cf7dfe167fe4f8ab32fb
165165
refs/tags/v0.76.0: 395b016826d3ddf9cb8b34919636df15a4dbd032

branches/pubsub-ordering-keys/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/pubsub-ordering-keys/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/pubsub-ordering-keys/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)