- πΊπΈUnited States xjm
Based on π [policy, then docs] Change how we deprecate classes Fixed , I think we should be triggering the deprecations in these classes' constructors rather than at the top of the file. Tagging for RM review to confirm with others.
- π³π±Netherlands spokje
I think the changes proposed in π [policy, then docs] Change how we deprecate classes Fixed make sense, but (at least) I also think that we can't expect people to make patches/MRs that are based on the official policy β , which then are being put back to NW because of something that isn't an official policy (yet).
Then again, n=1.
- πΊπΈUnited States xjm
@Spokje This might be the first issue where we adopt it. I did leave the issue RTBC for a reason though.
- Status changed to Needs work
almost 2 years ago 11:44pm 23 January 2023 - πΊπΈUnited States xjm
π [policy, then docs] Change how we deprecate classes Fixed was indeed adopted today, so let's move the instantiated classes' deprecations to their constructors. (Don't worry, there's another issue that was NW on this too.)
- π³π±Netherlands spokje
Thanks @xjm
#2935897: [policy, then docs] Change how we deprecate classes was indeed adopted today, so let's move the instantiated classes' deprecations to their constructors.
Not sure if I should check my feet for bullet wounds, but at the very least we got an improvement on the deprecation policy. :)
(Don't worry, there's another issue that was NW on this too.)
I gave up worrying about d.o. issues quite a while ago, so we're all good here.
- Status changed to Needs review
almost 2 years ago 8:34am 24 January 2023 - π³π±Netherlands spokje
Do we still need a Release Manager review?
- Status changed to RTBC
almost 2 years ago 9:27am 30 January 2023 - π¬π§United Kingdom catch
The route and deprecation message skipping is a bit tricky.
Ideally we'd want to deprecate the route, but this depends on π Support route aliasing (Symfony 5.4) and allow deprecating the route name Needs work .
Also even if we deprecate the route, it wouldn't would help us remove the deprecation skipping. The one thing it might mean is that we've got an un-suppressed deprecation for the route, which would be another way to alert contrib/custom code. Either way that should be a follow-up.
The only other thing I can think of would be moving the deprecation out of the constructor and into EditorImageDialog::buildForm() and EditorImageDialog::skipForm(), this would (probably?) mean it could be non-skipped, but that'd be an even further change to policy and not necessarily more useful.
Then after all that I realised controllers/forms are @internal anyway meaning anything we do here is 'best effort', so if the skipping does mean some custom or contrib code doesn't catch this, well we did our best.
So I think we should open a PP-1 follow-up to deprecate the routes once π Support route aliasing (Symfony 5.4) and allow deprecating the route name Needs work is in, but otherwise agreed this is the best we can do here and untagging for RM review.
- π³π±Netherlands spokje
Thanks @catch, opened π [PP-1] Properly deprecate routes editor.image_dialog, editor.link_dialog and editor.media_dialog Postponed to address #45 π Deprecate EditorLinkDialog, EditorImageDialog and EditorMediaDialog in Drupal 10.1 for removal in Drupal 11 Fixed .
- Status changed to Fixed
over 1 year ago 4:20pm 27 February 2023 Automatically closed - issue fixed for 2 weeks with no activity.