[go: nahoru, domu]

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

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

Merged
merged 3 commits into from
Apr 27, 2023

Conversation

ehsannas
Copy link
Contributor

No description provided.

@ehsannas ehsannas requested review from a team as code owners April 26, 2023 18:24
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: firestore Issues related to the googleapis/nodejs-firestore API. labels Apr 26, 2023
@ehsannas ehsannas requested review from MarkDuckworth and removed request for a team April 26, 2023 18:24
@ehsannas ehsannas assigned ehsannas and unassigned MarkDuckworth Apr 26, 2023
@ehsannas ehsannas assigned MarkDuckworth and unassigned ehsannas Apr 26, 2023
Copy link
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.

LGTM. I'm not very concerned about this difference in where the mapping is implemented in this SDK vs others. Generally the approach is the same, which is most important. The reason we are forced to implement this map in a different place is that the node.js SDK already has a different structure. If you're concerned, I think we could modify the other SDKs to have an implementation that's closer to this, but it would not be exact.

dev/src/reference.ts Outdated Show resolved Hide resolved
@ehsannas
Copy link
Contributor Author

I agree with your reasoning. No need to update other SDKs to match this.

@ehsannas ehsannas merged commit 34e4b53 into ehsann/sum-avg Apr 27, 2023
12 checks passed
@ehsannas ehsannas deleted the ehsann/long-alias branch April 27, 2023 17:26
ehsannas added a commit that referenced this pull request Aug 2, 2023
* feat: Add long-alias support for aggregations.

* Lint fix and fix unit tests.

* update assertion message.
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 <1124037+MarkDuckworth@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/nodejs-firestore API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants