-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
End-to-end minimalistic ppl #14546
base: cheryllin/ppl
Are you sure you want to change the base?
End-to-end minimalistic ppl #14546
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @wu-hui, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
Summary of Changes
This pull request introduces a new Pipeline
feature to the Firestore iOS SDK, enabling the execution of complex queries through a series of stages. The changes include modifications to the Firestore example project to incorporate the new Pipeline
functionality, along with updates to protobuf definitions and build configurations to support the feature.
Highlights
- Pipeline Feature: Adds
Pipeline
support to the Firestore iOS SDK, allowing for more complex data retrieval operations. - Project Configuration: Updates the Firestore example project's build configuration to include new source files and dependencies required for the
Pipeline
feature. - Protobuf Definitions: Includes new protobuf definitions for
explain_stats
andpipeline
to support thePipeline
feature.
Changelog
Click here to see the changelog
- Firestore/CHANGELOG.md
- Adds a changelog entry indicating the addition of
Pipeline
support.
- Adds a changelog entry indicating the addition of
- Firestore/Example/Firestore.xcodeproj/project.pbxproj
- Modifies the project file to include new source files related to
explain_stats
,field_behavior
, andpipeline
. - Adds
PipelineTests.swift
to the project's sources. - Updates the project's build settings and file references to accommodate the new feature.
- Modifies the project file to include new source files related to
- Firestore/Protos/CMakeLists.txt
- Updates the CMakeLists.txt file to include new protobuf definitions for
explain_stats
,field_behavior
, andpipeline
.
- Updates the CMakeLists.txt file to include new protobuf definitions for
- Firestore/Protos/cpp/firestore/*
- Updates copyright headers to 2025.
- Adds new protobuf definitions for
explain_stats
,field_behavior
, andpipeline
.
- Firestore/Protos/nanopb/firestore/*
- Adds new nanopb definitions for
explain_stats
,field_behavior
, andpipeline
.
- Adds new nanopb definitions for
- Firestore/Swift/Source/SwiftAPI/*
- Adds new Swift files to implement the Pipeline feature
- Firestore/Swift/Tests/Integration/PipelineTests.swift
- Adds new Swift tests for the Pipeline feature
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Did you know?
The .proto file extension is used for Protocol Buffer definition files. These files define the structure of the data you want to serialize.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this 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 the Pipeline
feature to Firestore, enabling the execution of a series of operations in a structured manner. The changes span across multiple files, including updates to the iOS example project, protobuf definitions, nanopb configurations, and core C++ and Swift implementations. Overall, the feature seems well-structured, but there are several areas that need closer inspection and potential adjustments.
Summary of Findings
- Copyright Year: The copyright year in several files is updated to 2025. Ensure this is the correct and intended year.
- Missing Tests: The pull request introduces a significant new feature (Pipeline), but there's a lack of comprehensive tests, particularly in the core C++ implementation. While a Swift integration test is added, core logic requires more robust testing.
- Incomplete Error Handling: The
RunPipeline
methods inFirestoreClient
andRemoteStore
do not handle errors when creating the request or processing the response. This could lead to unhandled exceptions or incorrect states. - Inconsistent Naming: The naming of certain variables and methods (e.g.,
internal_value
inPipelineResult
) could be more descriptive and consistent with existing conventions.
Merge Readiness
The pull request introduces a significant new feature, but it's not yet ready for merging. The copyright year, missing tests, and incomplete error handling need to be addressed before merging. I am unable to approve this pull request, and recommend that it not be merged until the above issues are addressed (at a minimum).
3c86df9
to
3ad6d7b
Compare
Generated by 🚫 Danger |
3ad6d7b
to
a1ec61f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a high level review of the overall structure. The obj-c layer looks really nice!
825726f
to
416dcec
Compare
c8555ba
to
75ad804
Compare
75ad804
to
85aee5c
Compare
An end-to-end ppl prototype