-
Notifications
You must be signed in to change notification settings - Fork 665
[Firestore] Add support for regexFind and regexFindAll
#7669
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
base: main
Are you sure you want to change the base?
Conversation
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. |
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
|
/gemini review |
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 support for regexFind and regexFindAll expressions in the Firestore Pipelines API, along with corresponding test cases and internal evaluation logic. The changes are well-structured, adding new API methods, registering them, implementing their evaluation, and providing comprehensive tests. Overall, the new functionality is a valuable addition.
firebase-firestore/src/main/java/com/google/firebase/firestore/pipeline/evaluation/Strings.kt
Outdated
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/pipeline/evaluation/Strings.kt
Outdated
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/util/RegexUtils.kt
Outdated
Show resolved
Hide resolved
|
/gemini review |
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 support for regexFind and regexFindAll expressions in the Firestore Pipelines API. The implementation includes new API methods, evaluation logic, and comprehensive unit and instrumented tests. The code is well-structured, with clear separation of concerns, and includes good error handling for invalid regular expressions and unsupported capturing group scenarios. The Javadoc for the new API methods is thorough and provides helpful examples.
firebase-firestore/src/main/java/com/google/firebase/firestore/util/RegexUtils.kt
Outdated
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/pipeline/evaluation/Strings.kt
Show resolved
Hide resolved
firebase-firestore/src/main/java/com/google/firebase/firestore/pipeline/evaluation/Strings.kt
Show resolved
Hide resolved
…/util/RegexUtils.kt Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Adds support for
regexFindandregexFindAllexpressions in the Pipeline and RealtimePipeline API.