- First commit to issue fork.
- Status changed to Needs review
9 months ago 2:04pm 26 June 2024 - 🇩🇪Germany sunlix Wesel
Hey together,
I have research a little bit on this and I am sure, that the patch in die issue fork solve this.
The related property here isthumbnail__alt
(Database column inmedia_field_data
which comes from the BaseFieldDefinition in theMedia
Entity itself.
This property/column stay'snull
if you upload an image to a media entity based on the image source plugin and left thealt
field empty.
But the ImageItem field plugin already has a default value foralt
which is an empty string.
see: https://git.drupalcode.org/issue/drupal-3319601/-/blob/3319601-media-ima...For remote video media entities based on the oembed source plugin this issue doesn't come up because the default value is set on the
updateThumbnail
method in theMedia
entity.
see: https://git.drupalcode.org/issue/drupal-3319601/-/blob/3319601-media-ima...So the issue is "only" related to media entities which are based on media source plugins that have
$thumbnail_alt_metadata_attribute
defined. - Status changed to Needs work
9 months ago 3:04pm 27 June 2024 - 🇺🇸United States smustgrave
Feels like something that should probably have some kind of test coverage even though it's a small change.
- First commit to issue fork.
Added test coverage in a distinct test file to assess specific scenario.
Please review, move NR
- Status changed to Needs review
8 months ago 12:20pm 1 July 2024 - 🇩🇪Germany sunlix Wesel
@pooja_sharma
Thank you a lot for pushing this forwars with a functional test. :-)
I have changed the test cases a bit to have to specific test case for given strings and a test case with no given alt attribute.
Both cases have to result in having a rendered alt attribute.I am unsure if we have to add a specific alt = NULL testcase, because this is not intended by the used field API here.
ImageItem
have default values for it's properties which should not altered or? - Status changed to Needs work
8 months ago 1:39pm 1 July 2024 - 🇳🇱Netherlands Lendude Amsterdam
Nice, the test coverage isn't triggering the bug it seems though, the test-only run https://git.drupalcode.org/issue/drupal-3319601/-/jobs/2003864 is green
Thanks for review, recent code changes lead to pass test case in every scenario which is not correct , so revert back changes.
Alt attribute field is bind with image media entity if alt attribute not attach with empty string then it 'll not be use of adding this specific test case as in manual test if we keep empty "attribute field" then alt tag not render on FE which leads to issue.
PLease review, moving to NR
- Status changed to Needs review
8 months ago 2:27pm 1 July 2024 - 🇩🇪Germany sunlix Wesel
mea culpa, I did make an understanding failure. Thought it is defaulting to the
ImageItem
default settings, which is not, because here is no field api involved in the test szenario. :-)
Thank you for pointing that out, did learn something new with testing! :)
Should be good to go. - Status changed to Needs work
8 months ago 2:54pm 9 July 2024 Addressed the mentioned suggestions & removed the newly created test file as test code moved to existing suggested test file.
Please review , moving NR
- Status changed to Needs review
8 months ago 5:09pm 9 July 2024 - Status changed to Needs work
8 months ago 5:54pm 15 July 2024 pooja_sharma → changed the visibility of the branch 3319601-media-image-thumbnail to hidden.
pooja_sharma → changed the visibility of the branch 3319601-media-image-thumbnail to active.
- Status changed to Needs review
8 months ago 6:51am 16 July 2024 Applied suggestion & left comments as well.
Please review, moving NR
- 🇺🇸United States smustgrave
Will leave in review then for others but think the other test location makes more sense since the test there is checking the media content view while MediaSourceImageTest is not.
Applied the suggestions, Moved test coverage code from MediaSourceImageTest to MediaOverviewPageTest
- Status changed to RTBC
8 months ago 6:47pm 21 July 2024 - 🇺🇸United States smustgrave
Re-ran failure for the editor module and appeared to be random.
Believe all feedback for this one has been addressed.
- Status changed to Needs work
7 months ago 3:35am 1 August 2024 - 🇳🇿New Zealand quietone
Thanks for continuing to work on this!
I left some comments in the MR. I am also not sure that this is the best way to test this. I'll ask about that.
- Status changed to Needs review
7 months ago 6:36am 1 August 2024 - 🇩🇪Germany sunlix Wesel
Added a review for proposing null coalescing operator. So the change will be just 1 character. :-P
Thank you @pooja_sharma for your fast interaction on this! - Status changed to Needs work
7 months ago 12:59am 4 August 2024 - 🇺🇸United States smustgrave
Feedback from #38
Yes thanks @pooja_sharma for keeping this one alive.
- Status changed to Needs review
7 months ago 6:57am 4 August 2024 - Status changed to RTBC
7 months ago 4:34pm 4 August 2024 - Status changed to Needs work
6 months ago 8:26am 17 September 2024 - Assigned to pooja_sharma
- Issue was unassigned.
- Status changed to Needs review
6 months ago 6:21pm 17 September 2024 Addressed the feedback, rebased the MR, apart from it nothing seems to be left.
Please review, moving NR.
- Status changed to RTBC
6 months ago 3:57pm 18 September 2024 - 🇳🇿New Zealand quietone
I didn't find any unanswered questions here. Updated the credit, though it should be check by the committer.
I made suggestions to comments in the test and applied them. They are both minor and I double checked them, so I am leaving this at RTBC
- 🇬🇧United Kingdom catch
Committed/pushed to 11.x and cherry-picked back through to 10.3.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.