Problem/Motivation
There's a @todo in the docblock of \claro_preprocess_fieldset__media_library_widget that says:
@todo Remove this when https://www.drupal.org/project/drupal/issues/2999549 lands.
Proposed resolution
Address the todo comments.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3156739
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
lauriiiComment #3
himanshu_sindhwani commentedComment #4
himanshu_sindhwani commentedAddressed the todo. Here is the patch.
Comment #5
sharma.amitt16 commented@himanshu thanks for the patch. The reference issue given in the file is fixed now.
@todo is taken in consideration.
Looks good now.
Changing status to RTBC.
Comment #6
lauriiiI assume that the @todo comment says we should use the
Drupal\Core\Utility\LinkGeneratorfor generating the link instead of a render array. This should be addressed before removing the comment.Comment #7
himanshu_sindhwani commentedThanks for the clarification @laurii, did the same in this patch.
Comment #8
himanshu_sindhwani commentedComment #12
lauriiiCrediting people from #3154427: Resolve @todo: when https://www.drupal.org/project/drupal/issues/2999549 * lands..
Comment #13
thedrupalkid commentedResolved tests.
Comment #14
hardik_patel_12 commentedComment #16
phenaproximaComment #17
raman.b commentedThis should resolve the failed test cases from #13
Comment #22
quietone commentedAdding a parent
Comment #23
longwavePatch needs rerolling.
We can't just add this here, we have to provide backward compatibility and a deprecation in case someone extended this class. We can't add new deprecations in 9.5.x or 10.0.x so this has to go to 10.1.x now.
Comment #24
Ankit.Gupta commentedReroll the patch #17 with Drupal 9.5.x
Comment #25
spokjeThanks @Ankit.Gupta, but you've might have missed this comment:
So the reroll has to be against
10.1.x-dev,, not9.5.x-dev.Comment #26
vsujeetkumar commentedRe-roll given against 10.1.x, Please have a look.
Comment #27
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
Please include an interdiff with your patch
has not been addressed
Tagging for change record also for the new paramter
Comment #28
longwaveRetitling the issue given that Seven has been removed, but Claro has the same code.
Comment #29
spokjeRemoving
Seventag and self-assigningComment #30
spokjeUpdated IS
Comment #31
spokjeAdded draft CR and switched to MR-workflow.
Comment #33
spokjeComment #34
smustgrave commentedThank you @Spokje for adding the trigger_error.
Reviewing the MR code everything looks clean
Deprecation has been added
Deprecation is being tested
New functions have correct typehints
Ran the test locally without the fix and got
Verified that the claro media library widget works fine.
Great job!
Comment #35
bnjmnmTested manually in Claro and spotted some regressions
.action-link action-link--extrasmall .action-link--icon-show .media-library-widget__toggle-weight.media-library-open-buttonclass. This one I'm unsure if the class is used anywhere, but even if Claro is internal this should probably be preserved unless there's a compelling reason to get rid of it.Comment #38
spokjeThis is the plain diff from the 10.1.x: https://git.drupalcode.org/project/drupal/-/merge_requests/3323.diff
Using that on top of a new MR, based on 11.x.
(Rebasing an MR from 10.something.x to 11.x is a nightmare, at least to me, and there where no threads, not even closed on the 10.1.x MR.)
Comment #40
alphex commentedThis needs to be re-rolled for Drupal 10.3.6
Comment #44
alphex commentedThis is rooted in a SIX+ year old issue, that just needs to have 10 lines of code removed that impacts some classes on a base theme...
Can we get this closed out?