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

End-to-end minimalistic ppl #14546

Open
wants to merge 1 commit into
base: cheryllin/ppl
Choose a base branch
from
Open

End-to-end minimalistic ppl #14546

wants to merge 1 commit into from

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Mar 7, 2025

An end-to-end ppl prototype

Copy link

@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.

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 and pipeline to support the Pipeline feature.

Changelog

Click here to see the changelog
  • Firestore/CHANGELOG.md
    • Adds a changelog entry indicating the addition of Pipeline support.
  • Firestore/Example/Firestore.xcodeproj/project.pbxproj
    • Modifies the project file to include new source files related to explain_stats, field_behavior, and pipeline.
    • Adds PipelineTests.swift to the project's sources.
    • Updates the project's build settings and file references to accommodate the new feature.
  • Firestore/Protos/CMakeLists.txt
    • Updates the CMakeLists.txt file to include new protobuf definitions for explain_stats, field_behavior, and pipeline.
  • Firestore/Protos/cpp/firestore/*
    • Updates copyright headers to 2025.
    • Adds new protobuf definitions for explain_stats, field_behavior, and pipeline.
  • Firestore/Protos/nanopb/firestore/*
    • Adds new nanopb definitions for explain_stats, field_behavior, and pipeline.
  • 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

  1. 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.

@wu-hui wu-hui changed the base branch from main to cheryl/pipeline March 7, 2025 20:04
@wu-hui wu-hui changed the base branch from cheryl/pipeline to cheryllin/ppl March 7, 2025 20:05
Copy link

@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 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 in FirestoreClient and RemoteStore 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 in PipelineResult) 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).

@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

Copy link
Contributor

@cherylEnkidu cherylEnkidu left a 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!

@cherylEnkidu cherylEnkidu assigned wu-hui and unassigned cherylEnkidu Mar 11, 2025
@wu-hui wu-hui force-pushed the push-qsnrvulsswwq branch 2 times, most recently from 825726f to 416dcec Compare March 13, 2025 13:42
@wu-hui wu-hui force-pushed the push-qsnrvulsswwq branch 2 times, most recently from c8555ba to 75ad804 Compare March 13, 2025 14:27
@wu-hui wu-hui force-pushed the push-qsnrvulsswwq branch from 75ad804 to 85aee5c Compare March 13, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants