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

Make count queries publicly available for use #6608

Merged
merged 39 commits into from
Sep 28, 2022

Conversation

milaGGL
Copy link
Contributor

@milaGGL milaGGL commented Sep 16, 2022

This PR publicly exports the classes, methods, and functions that provide "count" queries, making them available for anyone to use. See #6597 for the implementation of COUNT queries.

Withholding this PR till the count query is ready to be released.

@changeset-bot
Copy link

changeset-bot bot commented Sep 16, 2022

🦋 Changeset detected

Latest commit: 88d0266

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/firestore Minor
firebase Minor
@firebase/firestore-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

.changeset/wicked-tomatoes-grow.md Outdated Show resolved Hide resolved
packages/firestore/src/api/aggregate.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@dconeybe dconeybe left a comment

Choose a reason for hiding this comment

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

One tiny change. Also, please address the problems reported by lint.

packages/firestore/src/core/count_query_runner.ts Outdated Show resolved Hide resolved
@dconeybe
Copy link
Contributor

Here's another problem: When I ran yarn build it produced this error:

Error: Circular dependency: src/lite-api/aggregate.ts -> src/core/count_query_runner.ts -> src/lite-api/aggregate.ts

This need to be fixed too.

@milaGGL milaGGL marked this pull request as ready for review September 26, 2022 19:54
@milaGGL milaGGL requested a review from dconeybe September 26, 2022 19:54
Copy link
Contributor

@dconeybe dconeybe left a comment

Choose a reason for hiding this comment

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

LGTM!

@dconeybe
Copy link
Contributor

I've added the do-not-merge label to make sure we don't merge until we get the green light to release count.

@dconeybe dconeybe changed the title export count query Make count queries publicly available for use Sep 28, 2022
@milaGGL milaGGL merged commit ee871fc into master Sep 28, 2022
@milaGGL milaGGL deleted the mila/count-export-count-quries branch September 28, 2022 17:57
@google-oss-bot google-oss-bot mentioned this pull request Sep 29, 2022
Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

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

Here are some things that would be great to get into a follow-on PR, thanks!

packages/firestore/src/api/aggregate.ts Show resolved Hide resolved
packages/firestore/src/api/aggregate.ts Show resolved Hide resolved
packages/firestore/src/api/aggregate.ts Show resolved Hide resolved
packages/firestore/src/api/aggregate.ts Show resolved Hide resolved
packages/firestore/src/api/aggregate.ts Show resolved Hide resolved
packages/firestore/src/api/aggregate.ts Show resolved Hide resolved
@dconeybe
Copy link
Contributor

dconeybe commented Oct 3, 2022

Here are some things that would be great to get into a follow-on PR, thanks!

Thanks for the suggestions! I was the one who wrote these doc comments so I'll make the follow-up changes. I'll be tracking this work in b/250612059.

@egilmorez
Copy link
Contributor

egilmorez commented Oct 3, 2022 via email

@firebase firebase locked and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants