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

Sum and average #6952

Merged
merged 15 commits into from
Feb 9, 2023
Merged

Sum and average #6952

merged 15 commits into from
Feb 9, 2023

Conversation

MarkDuckworth
Copy link
Contributor

@MarkDuckworth MarkDuckworth commented Jan 16, 2023

Refactoring aggregations in Firestore to support sum and average. Sum and average are not public.

@changeset-bot
Copy link

changeset-bot bot commented Jan 16, 2023

🦋 Changeset detected

Latest commit: 83740c0

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 Patch
firebase Patch
@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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 16, 2023

Size Report 1

Affected Products

  • @firebase/firestore

    TypeBase (9874614)Merge (91c2204)Diff
    browser273 kB274 kB+1.21 kB (+0.4%)
    esm5339 kB341 kB+1.17 kB (+0.3%)
    main546 kB549 kB+2.88 kB (+0.5%)
    module273 kB274 kB+1.21 kB (+0.4%)
    react-native273 kB274 kB+1.21 kB (+0.4%)
  • @firebase/firestore-lite

    TypeBase (9874614)Merge (91c2204)Diff
    browser86.2 kB87.4 kB+1.19 kB (+1.4%)
    esm5104 kB105 kB+1.14 kB (+1.1%)
    main147 kB149 kB+2.67 kB (+1.8%)
    module86.2 kB87.4 kB+1.19 kB (+1.4%)
    react-native86.4 kB87.6 kB+1.19 kB (+1.4%)
  • bundle

    TypeBase (9874614)Merge (91c2204)Diff
    firestore-lite (Query Cursors)81.3 kB81.3 kB+3 B (+0.0%)
    firestore-lite (Query)77.4 kB77.4 kB+3 B (+0.0%)
    firestore-lite (Read data once)59.4 kB59.4 kB+3 B (+0.0%)
    firestore-lite (Transaction)84.0 kB84.0 kB+5 B (+0.0%)
    firestore-lite (Write data)68.9 kB68.9 kB+3 B (+0.0%)
  • firebase

    TypeBase (9874614)Merge (91c2204)Diff
    firebase-firestore-lite.js92.9 kB94.0 kB+1.19 kB (+1.3%)
    firebase-firestore.js321 kB323 kB+1.21 kB (+0.4%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/2q2DIQrY3y.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 16, 2023

Size Analysis Report 1

This report is too large (717,088 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/LbPmQ6AY3o.html

Copy link
Contributor

@wu-hui wu-hui left a comment

Choose a reason for hiding this comment

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

I skimmed through it..if it is the deletion of the runner class that you want my opinion, then i think it looks good.

Overall, I think this PR looks good from a glance.

packages/firestore/src/api/aggregate.ts Outdated Show resolved Hide resolved
@MarkDuckworth MarkDuckworth changed the title WIP: Sum and average Sum and average Jan 25, 2023
@MarkDuckworth MarkDuckworth marked this pull request as ready for review January 25, 2023 00:13
Copy link
Contributor

@ehsannas ehsannas left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for keeping the test coverage thorough.

packages/firestore/src/api/aggregate.ts Outdated Show resolved Hide resolved
packages/firestore/src/lite-api/aggregate.ts Outdated Show resolved Hide resolved
packages/firestore/src/lite-api/aggregate.ts Outdated Show resolved Hide resolved
packages/firestore/src/lite-api/aggregate_types.ts Outdated Show resolved Hide resolved
packages/firestore/src/remote/datastore.ts Show resolved Hide resolved
@ehsannas ehsannas removed their assignment Jan 30, 2023
Copy link
Contributor

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

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

Usually prefer to add a changeset for any significant code changes because it makes it easier to trace back any bugs to a specific version (if the changes should not be announced, you can make a note and we can exclude them from the release notes). But I guess we can always just use the commit history.

@MarkDuckworth MarkDuckworth merged commit 67c5a0d into master Feb 9, 2023
@MarkDuckworth MarkDuckworth deleted the markduckworth/sum-avg branch February 9, 2023 23:05
NhienLam pushed a commit that referenced this pull request Feb 14, 2023
Refactoring aggregations in Firestore to support sum and average. Sum and average are not public.

---------

Co-authored-by: MarkDuckworth <[email protected]>
@google-oss-bot google-oss-bot mentioned this pull request Mar 1, 2023
@firebase firebase locked and limited conversation to collaborators Mar 12, 2023
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.

None yet

5 participants