dotCMS / dotCMS/core

Thumbnail image selection logic change in search listing view

Open
#32,700 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OKR : Customer Support Team : Maintenance Type : Defect
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Problem Statement

In version 23.01, the content search listing view displayed image thumbnails based on the first populated binary/image field in a contentlet, even if it was not the first binary field sequentially defined in the content type.

This behavior appears to have changed in the latest version (evergreen).
Only the first binary field (in order of definition) is considered for rendering a thumbnail.
If this field is either:
Not populated, or
Populated with a video file (which doesn’t render as a thumbnail), Then no thumbnail is displayed, even if subsequent binary/image fields are correctly populated with valid image assets.

Steps to Reproduce

https://drive.google.com/file/d/1ZCmYEIVoFmHRoWQ4lIEgLTxV5d\_MPzPq/view?usp=sharing

Acceptance Criteria

If this is an expected change, let us explain to the customer why this was done.
If this is a bug introduced, we should consider the image or binary uploaded though it might not be the first one

dotCMS Version

23.01 Works
Noticed in evergreen

Proposed Objective

Core Features

Proposed Priority

Priority 3 - Average

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.freshdesk.com/a/tickets/32120

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the thumbnail behavior in the search listing view using the linked recording and compare evergreen with version 23.01. Trace how binary and image fields are selected when the first field is empty or contains a video. Done means the expected behavior is confirmed with the customer, and either the selection behavior is corrected or the change is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.