Fallback to crop specific photos in PhotoCapable thumbnail_url - #4739
Conversation
Currently, plantings, seeds, and harvests display "no photo available" placeholders when they do not have specific photos attached. This change enables the PhotoCapable#thumbnail_url method to automatically fall back to the associated crop's thumbnail_url when no item-specific photo is present. Additionally, this commit: - Fixes validation in PhotoAssociation to handle crop photos that do not have a polymorphic photographable owner. - Disables cache store during testing to prevent stale/cached default photos from leaking across specs. - Adds comprehensive unit tests for the fallback logic. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
@jules remove the excess changes. |
I have removed all of the environment, helper, and configuration files that were added to ease running tests locally. Only the core fallback implementation in |
…anges Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>
This pull request restores the crop photo fallback behavior for plantings, seeds, and harvests. When an item has no default photo of its own, its
thumbnail_urlnow falls back to its associated crop'sthumbnail_urlrather than rendering a placeholder.PR created automatically by Jules for task 4973772339113599818 started by @CloCkWeRX