Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

feat: Transaction.get(AggregateQuery) added#1029

Merged
dconeybe merged 6 commits into
countfrom
dconeybe/CountTransactionSupport
Sep 8, 2022
Merged

feat: Transaction.get(AggregateQuery) added#1029
dconeybe merged 6 commits into
countfrom
dconeybe/CountTransactionSupport

Conversation

@dconeybe

Copy link
Copy Markdown
Contributor

No description provided.

@dconeybe dconeybe added the api: firestore Issues related to the googleapis/java-firestore API. label Aug 31, 2022
@dconeybe dconeybe self-assigned this Aug 31, 2022
@dconeybe dconeybe requested a review from a team August 31, 2022 20:20
@conventional-commit-lint-gcf

conventional-commit-lint-gcf Bot commented Aug 31, 2022

Copy link
Copy Markdown

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@dconeybe dconeybe force-pushed the dconeybe/CountTransactionSupport branch from 5bb721e to b6a2556 Compare August 31, 2022 20:22
@dconeybe dconeybe changed the title Add transaction support to COUNT queries feat: Transaction.get(AggregateQuery) added Aug 31, 2022
@dconeybe dconeybe requested review from ehsannas and wu-hui August 31, 2022 20:22

@ehsannas ehsannas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! One minor fix needed pointed out below.

RunAggregationQueryResponse.newBuilder()
.setResult(
AggregationResult.newBuilder()
.putAggregateFields("count", Value.newBuilder().setIntegerValue(42).build())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/42/count ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep!

}

@Test
public void aggregateQueryInATransactionShouldLockTheCountedDocuments() throws Exception {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this test :)

@dconeybe dconeybe merged commit 23a1557 into count Sep 8, 2022
@dconeybe dconeybe deleted the dconeybe/CountTransactionSupport branch September 8, 2022 00:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestore Issues related to the googleapis/java-firestore API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants