Skip to content

[DO NOT MERGE] dml#9797

Open
wu-hui wants to merge 7 commits intomainfrom
wuandy/dml
Open

[DO NOT MERGE] dml#9797
wu-hui wants to merge 7 commits intomainfrom
wuandy/dml

Conversation

@wu-hui
Copy link
Copy Markdown
Contributor

@wu-hui wu-hui commented Mar 31, 2026

No description provided.

wu-hui added 3 commits March 20, 2026 14:12
This commit aligns the Firestore Web SDK Pipeline DML implementation with the finalized Java and Node.js SDKs to ensure strict API parity. Specifically:

- Removed deferred insert and upsert Pipeline methods, along with their Stage classes and Option typings.
- Aligned delete API to accept zero arguments (removed DeleteOptions wrapper).
- Aligned update API to accept an array of Selectables (representing transformedFields) directly instead of an UpdateOptions wrapper.
- Skipped/deleted related DML operation tests from the web sdk integration tests since DMLs cannot be tested from the web sdk currently.
@wu-hui wu-hui requested review from a team as code owners March 31, 2026 20:59
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2026

⚠️ No Changeset found

Latest commit: cd0d5ca

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

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces delete() and update() stages to the Firestore Pipeline API, makes the collection field optional in CollectionStageOptions, and refines error handling and logging. Feedback focuses on preventing a potential runtime error from an unsafe non-null assertion in pipeline-source.ts, removing an unused import in pipeline.ts, and adding validation to the update() method to ensure field transformations are provided.

} from './stage_options';
import { UserDataReader, UserDataSource } from './user_data_reader';
import { AbstractUserDataWriter } from './user_data_writer';
import { CollectionReference } from './reference';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The import of CollectionReference is unused in this file and should be removed to keep the code clean.

@wu-hui wu-hui requested a review from a team as a code owner March 31, 2026 21:43
Base automatically changed from firestore-pipelines-ga to main March 31, 2026 23:05
@wu-hui wu-hui requested a review from dlarocque April 1, 2026 15:42
@wu-hui wu-hui changed the title dml [DO NOT MERGE] dml Apr 1, 2026
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