Skip to content

Change the requirement to display thumbnails from "thumbnailFile != null" to not useGenericThumbnail #12666 - #12667

Open
juancorr wants to merge 1 commit into
IQSS:developfrom
Consorcio-Madrono:thumbnailNotShown
Open

Change the requirement to display thumbnails from "thumbnailFile != null" to not useGenericThumbnail #12666#12667
juancorr wants to merge 1 commit into
IQSS:developfrom
Consorcio-Madrono:thumbnailNotShown

Conversation

@juancorr

@juancorr juancorr commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
#12666

Which issue(s) this PR closes:

Special notes for your reviewer:
Currently, a dataset thumbnail is only displayed if the dataset contains an image file, causing uploaded image files to be ignored. This PR updates the condition to display a thumbnail whenever an alternative to the default generic dataset thumbnail is available, restoring the behavior of Dataverse versions prior to v6.1.1.

…ly when there is a thumbnail file in the dataset

public String getThumbnailUrl() {
return thumbnailFile != null ? SystemConfig.getDataverseSiteUrlStatic() + "/api/datasets/" + this.getId() + "/logo" : null;
return !useGenericThumbnail ? SystemConfig.getDataverseSiteUrlStatic() + "/api/datasets/" + this.getId() + "/logo" : null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I was wondering whether isPreviewImageAvailable() would be a better choice, but it looks like that is mostly kept in sych with useGenericThumbnail (i.e. they are opposites).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm requesting a review from @stevenwinship (no rush) because he most recently worked on this logic in the following PR:

@github-project-automation github-project-automation Bot moved this to Ready for QA ⏩ in IQSS Dataverse Project Sep 3, 2026
@pdurbin pdurbin moved this from Ready for QA ⏩ to Ready for Triage in IQSS Dataverse Project Sep 3, 2026
@pdurbin pdurbin moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Sep 8, 2026
@pdurbin pdurbin moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Sep 8, 2026
@pdurbin pdurbin added the Size: 3 A percentage of a sprint. 2.1 hours. label Sep 8, 2026
@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Sep 8, 2026
@stevenwinship stevenwinship removed their assignment Sep 8, 2026
@cmbz cmbz added FY27 Sprint 5 FY27 Sprint 5 (2026-08-26 - 2026-09-09) FY27 Sprint 6 FY27 Sprint 6 (2026-09-09 - 2026-09-23) labels Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY27 Sprint 5 FY27 Sprint 5 (2026-08-26 - 2026-09-09) FY27 Sprint 6 FY27 Sprint 6 (2026-09-09 - 2026-09-23) Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Ready for QA ⏩

Development

Successfully merging this pull request may close these issues.

Uploaded dataset thumbnails are not displayed in Dataverse v6.11

5 participants