Conversation
Summary of ChangesHello, 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 the ShopifyAdapter by introducing robust multi-locale support for product data transformation, enabling the system to handle and present localized product information more effectively. It also extends the search settings functionality with a new filter configuration option, providing greater control over data filtering. These changes aim to improve the adaptability and feature set of the SDK, backed by modernized PHP practices and thorough testing. 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. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request significantly enhances the ShopifyAdapter by introducing comprehensive support for product localization, allowing for locale-specific names, descriptions, and product types. This involved refactoring the transformProduct method and adding several new private helper methods to manage locale-suffixed fields and translations. Additionally, the SearchSettingsRequest and SearchSettingsRequestBuilder classes were updated to incorporate a new filterConfig property, providing more flexible filtering options. New unit tests were added to cover both the ShopifyAdapter's localization features and the SearchSettings' filterConfig. A critical issue was identified where non-standard PHP functions (array_find and array_any) are used in the ShopifyAdapter without being defined, which will cause fatal errors.
|
@claude review |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
@claude review |
|
Claude finished @PauliusInvertus's task in 2m 6s —— View job Code Review
Overall this is a well-structured PR with good test coverage. One piece of Gemini's review needs correcting, plus a few real issues below. Gemini's "Critical" Issues Are Not IssuesGemini flagged Real Issues Found1. Redundant double normalization —
|
BRD-913
ShopifyAdapter now transforms Shopify product data into locale-suffixed fields (e.g. name_en-US, name_lt-LT) with real translations for title, description, and product type. Brand is replicated across locales (not translatable in Shopify). Without
locales, output stays backward compatible with plain field names. Variant attributes are keyed by locale when locales are present. Added filterConfig support to SearchSettingsRequestBuilder. Full declarative refactor using PHP 8.4 array functions. Comprehensive test coverage added.