Skip to content

refactor(firestore): [PQ] Combine FieldOf and FieldOfPath#13271

Merged
bhshkh merged 5 commits intogoogleapis:feature/fs-pipeline-queriesfrom
bhshkh:feat/fspq-combine-FieldOf-and-FieldOfPath
Oct 30, 2025
Merged

refactor(firestore): [PQ] Combine FieldOf and FieldOfPath#13271
bhshkh merged 5 commits intogoogleapis:feature/fs-pipeline-queriesfrom
bhshkh:feat/fspq-combine-FieldOf-and-FieldOfPath

Conversation

@product-auto-label product-auto-label Bot added the api: firestore Issues related to the Firestore API. label Oct 30, 2025
@bhshkh bhshkh marked this pull request as ready for review October 30, 2025 22:10
@bhshkh bhshkh requested review from a team October 30, 2025 22:10
@bhshkh
Copy link
Copy Markdown
Contributor Author

bhshkh commented Oct 30, 2025

/gemini review

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 refactors the Firestore pipeline API by combining FieldOf and FieldOfPath into a single generic function FieldOf. This simplifies the API by removing the verbose FieldOfPath function. The changes are applied consistently across the codebase, and the overall goal of simplifying the API is well-achieved. I have one suggestion to improve the implementation of the new FieldOf function to make it more idiomatic.

Comment thread firestore/pipeline_field.go Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@bhshkh bhshkh merged commit a2fb94c into googleapis:feature/fs-pipeline-queries Oct 30, 2025
6 of 7 checks passed
@bhshkh bhshkh deleted the feat/fspq-combine-FieldOf-and-FieldOfPath branch October 30, 2025 22:17
@bhshkh bhshkh changed the title refactor(firestore): Combine FieldOf and FieldOfPath refactor(firestore): [PQ] Combine FieldOf and FieldOfPath Oct 31, 2025
bhshkh added a commit that referenced this pull request Oct 31, 2025
1. Move PipelineStages integration tests.
2. Remove IsNaN, IsNotNaN, IsNull, IsNotNull, Equivalent as they are no
longer supported by backend
3. Remove examples as commented here

#13245 (comment)

Previous pull requests

- #12217
- #12425
- #12538
- #13147
- #13199
- #13218
- #13194
- #13245
- #13270
- #13271
bhshkh added a commit that referenced this pull request Nov 3, 2025
Add raw stage similar to Java

https://github.com/googleapis/java-firestore/blob/742fab6583c9a6f9c47cf0496124c3c9b05fe0ee/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Pipeline.java#L997-L1021


The raw stage is an escape hatch to allow customers to consume new
stages supported by the backend without having to update their SDK to a
version that adds the stage.



Previous pull requests

- #12217
- #12425
- #12538
- #13147
- #13199
- #13218
- #13194
- #13245
- #13270
- #13271
- #13279
bhshkh added a commit that referenced this pull request Nov 3, 2025
1. Move PipelineStages integration tests.
2. Remove IsNaN, IsNotNaN, IsNull, IsNotNull, Equivalent as they are no
longer supported by backend
3. Remove examples as commented here

#13245 (comment)

Previous pull requests

- #12217
- #12425
- #12538
- #13147
- #13199
- #13218
- #13194
- #13245
- #13270
- #13271
bhshkh added a commit that referenced this pull request Nov 3, 2025
Add raw stage similar to Java

https://github.com/googleapis/java-firestore/blob/742fab6583c9a6f9c47cf0496124c3c9b05fe0ee/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Pipeline.java#L997-L1021


The raw stage is an escape hatch to allow customers to consume new
stages supported by the backend without having to update their SDK to a
version that adds the stage.



Previous pull requests

- #12217
- #12425
- #12538
- #13147
- #13199
- #13218
- #13194
- #13245
- #13270
- #13271
- #13279
bhshkh added a commit that referenced this pull request Nov 10, 2025
#13283)

Changes in this PR:

1. firestore_client.go : Updated generated client as per
googleapis/gapic-generator-go#1661 . Removed
retries from tests since the headers have now been fixed.
2. Remove Equivalent since it was removed from backend.
3. Add/update comments
4. Add timestamp truncate (pending from
#13194) and string
split (pending from
#13245) functions.
5. add all the private preview general, key, logical (except iferror),
type and object functions.
See "Firestore Features (Pipeline)" sheet in
[go/firestore-query-tracker](http://go/firestore-query-tracker) for the
list of functions.
    Java reference:
-
https://github.com/googleapis/java-firestore/blob/ccaf9d4fac5bd87a4da3d37493ca66fdc7681bc3/google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/Expression.java



Previous pull requests

- #12217
- #12425
- #12538
- #13147
- #13199
- #13218
- #13194
- #13245
- #13270
- #13271
- #13279
- #13280
- #13281
- #13282
- googleapis/gapic-generator-go#1661
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 Firestore API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants