Skip to content

Auto Create thumbnail so Search API will return image_url when publis…#12403

Merged
ekraffmiller merged 9 commits into
developfrom
11588-search-api-doesnt-return-image-url
May 29, 2026
Merged

Auto Create thumbnail so Search API will return image_url when publis…#12403
ekraffmiller merged 9 commits into
developfrom
11588-search-api-doesnt-return-image-url

Conversation

@stevenwinship
Copy link
Copy Markdown
Contributor

@stevenwinship stevenwinship commented May 20, 2026

What this PR does / why we need it: SPA not getting image_url through Search API. JSF does get the image_url.

Which issue(s) this PR closes: #11588

Special notes for your reviewer:

Suggestions on how to test this:

With this PR, the behavior should be the same JSF vs the SPA: a thumbnail for the dataset will be auto-selected when the dataset is published; unless a specific thumbnail has already been picked by the author while it was still in draft, OR auto-selection has been disabled on the instance (such as on qa.dataverse.org).

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: included

Additional documentation:

@stevenwinship stevenwinship self-assigned this May 20, 2026
@github-actions github-actions Bot added FY26 Sprint 22 FY26 Sprint 22 (2026-04-22 - 2026-05-06) FY26 Sprint 23 FY26 Sprint 23 (2026-05-06 - 2026-05-20) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 SPA These changes are required for the Dataverse SPA labels May 20, 2026
@github-actions github-actions Bot added SPA.Q2 Not related to any specific Q2 feature Type: Bug a defect labels May 20, 2026
@stevenwinship stevenwinship moved this to In Progress 💻 in IQSS Dataverse Project May 20, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented May 20, 2026

Coverage Status

Coverage is 24.947%11588-search-api-doesnt-return-image-url into develop. No base build found for develop.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@cmbz cmbz moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project May 20, 2026
@stevenwinship stevenwinship removed their assignment May 20, 2026
@landreev landreev self-assigned this May 20, 2026
@landreev landreev self-requested a review May 20, 2026 20:17
@stevenwinship stevenwinship moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project May 21, 2026
@cmbz cmbz added the FY26 Sprint 24 FY26 Sprint 24 (2026-05-20 - 2026-06-03) label May 21, 2026
@github-actions

This comment has been minimized.

@stevenwinship stevenwinship removed their assignment May 21, 2026
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@stevenwinship
Copy link
Copy Markdown
Contributor Author

stevenwinship commented May 28, 2026

I see this after publishing (in Chrome)

image

@stevenwinship
Copy link
Copy Markdown
Contributor Author

This was on Firefox

image

@stevenwinship
Copy link
Copy Markdown
Contributor Author

stevenwinship commented May 28, 2026

I see the difference now.

I added the file and immediately pressed publish and I see the image
If I add the file then go back to the search list and select and publish I don't see the image

image

Is it possible that this is a UI issue? The api doesn't know the sequence of events.

@landreev
Copy link
Copy Markdown
Contributor

Very interesting! Does the dataset end up with useGenericThumbnail=true in the process?

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@stevenwinship stevenwinship force-pushed the 11588-search-api-doesnt-return-image-url branch from 74339ca to 3a3943b Compare May 28, 2026 20:22
@stevenwinship
Copy link
Copy Markdown
Contributor Author

stevenwinship commented May 28, 2026

The issue with the images not showing up following Ellen's workflow was due to a race condition where the thumbnail was being updated via a sql call and the Dataset was being merged via java. If the Dataset merge happened first the sql update would be fine. If the sql update happened first the merge would put back an empty thumbnail. The fix was to add the thumbnail to the dataset so the merge would have it

@github-actions

This comment has been minimized.

@landreev
Copy link
Copy Markdown
Contributor

landreev commented May 28, 2026

In my defense, I mentioned in an earlier comment that that was a possibility - that the NativeQuery hack could conflict with the rest of the publish command. 🙂

@ekraffmiller
Copy link
Copy Markdown
Contributor

It is working as expected now from the frontend, but not sure why the integration test is failing.

@stevenwinship
Copy link
Copy Markdown
Contributor Author

It is working as expected now from the frontend, but not sure why the integration test is failing.

I'm testing it now locally. Since they are search tests it could be an index timing issue

@github-actions
Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:11588-search-api-doesnt-return-image-url
ghcr.io/gdcc/configbaker:11588-search-api-doesnt-return-image-url

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@ekraffmiller ekraffmiller merged commit 8bbd737 into develop May 29, 2026
21 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project May 29, 2026
@stevenwinship stevenwinship deleted the 11588-search-api-doesnt-return-image-url branch May 29, 2026 15:33
@pdurbin pdurbin added this to the 6.11 milestone May 29, 2026
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 22 FY26 Sprint 22 (2026-04-22 - 2026-05-06) FY26 Sprint 23 FY26 Sprint 23 (2026-05-06 - 2026-05-20) FY26 Sprint 24 FY26 Sprint 24 (2026-05-20 - 2026-06-03) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 SPA.Q2 Not related to any specific Q2 feature SPA These changes are required for the Dataverse SPA Type: Bug a defect

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Search API: doesn't return image_url for newly created dataset Feature Request: Add imageUrl to Get Dataset API JSON response

6 participants