- Issue created by @Grevil
- last update
over 1 year ago 19 pass - @grevil opened merge request.
- last update
over 1 year ago 7 pass, 6 fail - Assigned to Anybody
- Status changed to Needs review
over 1 year ago 9:44am 8 August 2023 - 🇩🇪Germany Grevil
Alright, first review, please.
We are currently not displaying the image at all, if the path is NULL. Maybe we should show Markup inside the template instead? Also the logger message can not be more specific unfortunately.... We do not have any way to identify the current ImageDTO object affected, because every attribute is made up by their "item" (aka image file or media object). We could reference the media entity as, if the file is missing, the media entity won't be NULL. BUT if it is a file we apply photoswipe on, the logger will log NULL as the referenced item.
Please decide, what to do here @Anybody. Afterward, I can write some tests.
- last update
over 1 year ago 19 pass - last update
over 1 year ago 19 pass - Assigned to Grevil
- 🇩🇪Germany Anybody Porta Westfalica
Well done! :)
Let's test-only to ensure the tests failed before.
- Open on Drupal.org →Core: 10.0.7 + Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - @grevil opened merge request.
- last update
over 1 year ago 13 pass, 2 fail - last update
over 1 year ago 13 pass, 2 fail - 🇩🇪Germany Grevil
Sorry, I had to refactor those media tests... They were really inefficient and had so much duplicate code in them...
- last update
over 1 year ago 13 pass, 2 fail - last update
over 1 year ago CI aborted - last update
over 1 year ago 20 pass - last update
over 1 year ago 20 pass - Status changed to Needs work
over 1 year ago 2:20pm 8 August 2023 - 🇩🇪Germany Grevil
Yea... I don't know why, but I can not reproduce the issue inside tests... deleting the referenced file and even the WHOLE media entity doesn't do anything with the node! 😅
No idea, already cleared the caches and everything. Might just be a test only thing.I think I have to somehow choose another way on how to display the error.
- last update
over 1 year ago 19 pass - Status changed to Needs review
over 1 year ago 2:40pm 8 August 2023 - 🇩🇪Germany Grevil
No way to replicate this test wise. I tried everything. Manually setting a wrong uri will display the image, setting the file uri "NULL" will throw an SQL error, using a non-existing target id will throw an error, deleting the file which is referenced will display the image...
No idea. I could only replicate this manually through the UI. But I don't want to do that test wise...
I simply removed the test. Should we move the rest of the test refactor inside its own issue? Review pls.
- Status changed to RTBC
over 1 year ago 6:57am 9 August 2023 - Issue was unassigned.
- Status changed to Fixed
over 1 year ago 7:44am 9 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.