feat(firestore): add string pipeline expressions#9479
feat(firestore): add string pipeline expressions#9479
Conversation
Adds support for `stringRepeat`, `stringReplaceOne`, `stringReplaceAll`, and `stringIndexOf` Pipeline expressions.
🦋 Changeset detectedLatest commit: 8f5137f The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Summary of ChangesHello @dlarocque, 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! This pull request significantly enhances Firestore's data manipulation capabilities by introducing a suite of new string pipeline expressions. These additions provide developers with more granular control over string data within their queries, enabling operations like repeating strings, replacing substrings (both first and all occurrences), and finding the index of a substring. This expansion of the pipeline API allows for more complex data transformations to be performed efficiently on the server side. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe 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 by creating a comment using either
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 Limitations & Feedback Gemini Code Assist 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. 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. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds support for stringRepeat, stringReplaceOne, stringReplaceAll, and stringIndexOf Pipeline expressions to Firestore. The implementation, API definitions, and tests are well-structured. I've identified a few issues in the documentation, including duplicate anchor IDs and broken links, which could affect usability. I've also suggested some minor code reordering to improve maintainability.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces several useful string manipulation expressions for Firestore pipelines: stringRepeat, stringReplaceOne, stringReplaceAll, stringIndexOf, ltrim, and rtrim. The implementation is well-structured and includes comprehensive tests for both the lite and full SDKs. My feedback primarily focuses on improving the documentation and JSDoc for the new ltrim and rtrim functions to ensure consistency and provide clearer examples for developers.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces several new string manipulation functions for Firestore pipelines, including stringRepeat, stringReplaceOne, stringReplaceAll, stringIndexOf, ltrim, and rtrim. The implementation appears solid, with corresponding updates to API definitions, documentation, and test suites. The changes are well-structured and the new features are a valuable addition. I've identified a couple of minor formatting issues in the documentation that could be cleaned up.
|
@milaGGL I updated all the tests to match the Node tests |
Adds support for
stringRepeat,stringReplaceOne,stringReplaceAll, andstringIndexOf,ltrim,rtrimPipeline expressions.