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

offppl type1 #8732

Open
wants to merge 104 commits into
base: main
Choose a base branch
from
Open

offppl type1 #8732

wants to merge 104 commits into from

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Jan 27, 2025

No description provided.

…pl-type1

# Conflicts:
#	packages/firestore/lite/index.ts
#	packages/firestore/src/api/database_augmentation.ts
#	packages/firestore/src/api/pipeline_impl.ts
#	packages/firestore/src/lite-api/expressions.ts
@wu-hui wu-hui requested review from a team as code owners January 27, 2025 15:25
Copy link

changeset-bot bot commented Jan 27, 2025

⚠️ No Changeset found

Latest commit: fba5571

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

MarkDuckworth and others added 7 commits January 27, 2025 13:12
* Multiple entry points for main package.

* MEP for firestore lite building

* Fix issue with external exports

* Refactor to support multiple entry points for the lite SDK. Fixes import issues and makes code organization across /pipelines and /lite/pipeliens

* Type and comment cleanup

* Make PipelineSource generic and remove useFluentPipelines

* Remove converter and placeholders for converter.

* cleanup: remove documentReferenceFactory

* Linting and formatting

* Update the typings export for pipelines and lite pipelines so that it auguments the Firestore and Query classes.

* Add missing Expr export

* Lint fixes

* TODOs cleanup

* update api review

* Query to Proto with integration tests

* API tweaks from review. Selectable, FilterCondition, and Accumulator are abstract classes not interfaces. Removed extraneous Pipeline.sort overload

* Remove console.log statements from prune-dts.ts

* code cleanup in prune-dts

* Add missing imports to pipelines.ts
@wu-hui wu-hui force-pushed the wuandy/offppl-type1 branch from 5cab1ae to 52ebef6 Compare January 30, 2025 22:08
wu-hui and others added 5 commits February 24, 2025 10:27
* Multiple entry points for main package.

* MEP for firestore lite building

* Fix issue with external exports

* Refactor to support multiple entry points for the lite SDK. Fixes import issues and makes code organization across /pipelines and /lite/pipeliens

* Type and comment cleanup

* Make PipelineSource generic and remove useFluentPipelines

* Remove converter and placeholders for converter.

* cleanup: remove documentReferenceFactory

* Linting and formatting

* Update the typings export for pipelines and lite pipelines so that it auguments the Firestore and Query classes.

* Add missing Expr export

* Lint fixes

* TODO cleanup

* update api review

* Query to Proto with integration tests

* API tweaks from review. Selectable, FilterCondition, and Accumulator are abstract classes not interfaces. Removed extraneous Pipeline.sort overload

* Remove console.log statements from prune-dts.ts

* code cleanup in prune-dts

* Add missing imports to pipelines.ts

* If argument to FunctionExpr is a plain object or array, convert these to expression using map(...) or array(...)

* Add tests for evaluating expressions in arrays and maps

* implement new FunctionExpressions as standalone functions

* Fix typo and formatting in pipeline.test.ts

* Implement support for genericStage and genericFunction

* Implement new function expressions as methods on the Expr class.

* Pipeline test reorganization

* Implementing new stages Sample, Union, Unnest, Replace

* Rename FilterCondition to BooleanExpr

* Update functions with variadic params to match signatures of the backend

* Fix and implementation.

* Refactor AggregateFunction out of Expr

* Add ScalarExpr class and make Expr a base class of AggregateFunction

* fixing missing imports and renames

* Remove classes for individual function types

* Separate scalar expressions and aggregate functions into different class hierarchies

* Remove deleted Expr classes from the pipelines exports

* Replace not(fn()) with notFn() in the query to pipeline conversion

* Fix circular dependency between user_data_reader and expressions

* removing modular pipeline creation and removing fluent pipline execution. This was a decision from API review

* Change return type of execute from PipelineResult[] to PipelineSnapshot

* Renames for API review: FunctionExpr, BooleanExpr, params

* missing readonly

* Build and test fixes

* Replace Field.of() with field()

* Add missing export PipelineSnaphsot

* Replace Constant.of() with constant()

* Removed constant(...) overloads to create a map or array. Use the array or map function instead.

* Implemented and documented ascending|descending(fieldName) as a convenient way to create orderings for a specific field

* fix tests creating a constant map and array

* Remove genericFunction, genericAggregateFunction, and genericBooleanExpr. Replace usage with constructor

* Pipeline result timestamp testing

* Testing timestamp edge cases

* Query to pipeline conversion is performed from the PipelineSource class rather than the Query class

* Timestamp tests and fix pipeline tests for change in pipeline creation from a classic query

* test fix

* Refactor and rename all functions to match API proposal changes after API review.

* Fix build issues

* New integration util pipeline_export file to support the pipelines subpackage

* Rename several FunctionExpr standalone exports from <name>Function to <name>. Meets API design

* Removing the all-packages api report script because it is no longer needed

* Remove any from the public api surface

* lint fix

* Code cleanup

* FindNearest integration tests

* Filling in gaps in test coverage

* Implement Pipeline tests for the lite SDK

* Fixed a build issue with the lite SDK

* Improved error message context when invalid user data is passed to a pipeline without being wrapped in a call to constant(...)

* Fix typo in old error message

* Fix lite pipeline exports

* api-review files

* Fixing tests and improving test coverage

* PR feedback

* Updating replaceWith to take an Expr

* yarn format
@wu-hui wu-hui force-pushed the wuandy/offppl-type1 branch from 3285a39 to fba5571 Compare March 27, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants