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

feat: Sum and Average Aggregations.#1831

Merged
ehsannas merged 20 commits intoehsann/sum-avgfrom
ehsann/sum-avg-wip
Apr 24, 2023
Merged

feat: Sum and Average Aggregations.#1831
ehsannas merged 20 commits intoehsann/sum-avgfrom
ehsann/sum-avg-wip

Conversation

@ehsannas
Copy link
Copy Markdown
Contributor

@ehsannas ehsannas commented Mar 14, 2023

No description provided.

@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: firestore Issues related to the googleapis/nodejs-firestore API. labels Mar 14, 2023
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Mar 15, 2023
@ehsannas ehsannas changed the title Ehsann/sum avg wip feat: Sum and Average Aggregations. Mar 16, 2023
@ehsannas ehsannas self-assigned this Mar 16, 2023
@ehsannas ehsannas marked this pull request as ready for review March 16, 2023 22:01
@ehsannas ehsannas requested review from a team March 16, 2023 22:01
@ehsannas ehsannas assigned MarkDuckworth and unassigned ehsannas Mar 16, 2023
@ehsannas ehsannas requested review from MarkDuckworth and removed request for a team March 16, 2023 22:07
Copy link
Copy Markdown
Contributor

@MarkDuckworth MarkDuckworth left a comment

Choose a reason for hiding this comment

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

Looking good. Just a few comments. I can probably finish this PR if you are too busy.

Comment thread dev/src/aggregate.ts Outdated
Comment thread dev/src/aggregate.ts Outdated
Comment thread dev/src/reference.ts
Comment thread types/firestore.d.ts
Comment thread dev/system-test/firestore.ts Outdated
Comment thread dev/system-test/firestore.ts Outdated
Comment thread dev/system-test/firestore.ts
Comment thread dev/src/aggregate.ts
@ehsannas ehsannas merged commit 1cf6e7e into ehsann/sum-avg Apr 24, 2023
@ehsannas ehsannas deleted the ehsann/sum-avg-wip branch April 24, 2023 16:49
ehsannas added a commit that referenced this pull request Aug 2, 2023
* WIP WIP.

* also add isEqual.

* lint.

* add aggregate() API in firestore.d.ts.

* Use NodeJS.Dict

* Update isEqual.

* Add isEqual unit test.

* better api.

* more tests.

* Add more tests.

* Remove test code that targets emulator.

* rename avg() to average().

* rename avg to average.

* Fix lint errors.

* Clean up.

* Address code review comments.

* Expose aggregate type and field publicly.

* Fix the way assert was imported.

* lint.

* backport test updates.
ehsannas added a commit that referenced this pull request Oct 9, 2023
* feat: Sum and Average Aggregations. (#1831)

* WIP WIP.

* also add isEqual.

* lint.

* add aggregate() API in firestore.d.ts.

* Use NodeJS.Dict

* Update isEqual.

* Add isEqual unit test.

* better api.

* more tests.

* Add more tests.

* Remove test code that targets emulator.

* rename avg() to average().

* rename avg to average.

* Fix lint errors.

* Clean up.

* Address code review comments.

* Expose aggregate type and field publicly.

* Fix the way assert was imported.

* lint.

* backport test updates.

* feat: Add long-alias support for aggregations. (#1844)

* feat: Add long-alias support for aggregations.

* Lint fix and fix unit tests.

* update assertion message.

* Unhide APIs and enable tests (#1869)

* Enable tests.

* Remove @internal annotation.

* Address comments.

* Address comments.

* Removing AggregateField.field from new api.

* Fix failing test assertion with REST transport.

* Fix test query.

* Add more tests with cursors.

* prettier.

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Mark Duckworth <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
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/nodejs-firestore API. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants