-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[i886] - update logic to fix collection thumbnail bug #2381
Conversation
Test Results 3 files ±0 3 suites ±0 17m 55s ⏱️ +13s For more details on these failures, see this check. Results for commit d0a437f. ± Comparison against base commit 8cf3a6f. This pull request removes 42 and adds 44 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
…athServiceDecorator The default work thumbnail was displaying even though the default collection thumbnail was set. Issue: - scientist-softserv/adventist_knapsack#886 - Updated #call method to use default_collection_image for collection resources when thumbnail_id is blank. - Ensures collections without specific thumbnails use the site-wide default collection image instead of the default work image. - Improved fallback logic to distinguish between collections and works, avoiding issues with collections displaying the work default image.
771c95f
to
7e77eb6
Compare
The failing specs gets resolved by updating Hyrax. ref: #2382 |
…orator` - Added a test for `default_collection_image` to verify it returns the site-specific default collection image when available. - Stubbed `Site.instance` to ensure the spec accurately tests behavior when a site default image is present or absent.
NOTESThis was tested in adventist knapsack as well as hyku demo, and it appears to be working. As an aside, locally I was getting this error when trying to set a thumbnail in Adventist knapsack, but the same error happened when using main (of both adventist knapsack and hyku). This error does not occur in staging or prod so I'm not sure what this is about. To reproduce, spin up main Adventist Knapsack. In the submodule check out this branch. Spin the project up, create a collection. Click the branding tab. Upload and save a thumbnail file. 🤔 |
the spec and lint failure are coming from main so I'm going to go ahead and merge this |
The default work thumbnail was displaying even though the default collection thumbnail was set.
Issue:
When No Collection Branding is Set
When Default Collection Thumbnail is Set
When Default Collection Thumbnail is NOT set
When Collection Branding is Set
When Default Collection Thumbnail is Set