Closed (fixed)
Project:
Drupal core
Version:
10.3.x-dev
Component:
render system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Jun 2015 at 12:52 UTC
Updated:
22 Mar 2024 at 21:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedI've created a patch. Please review.
Comment #2
stevectorI think it is too late to take this patch as is since it changes a method on an interface.
Comment #3
cilefen commentedSee the issue summary:
I added the emphasis. Make the BC layer by marking renderPlain() deprecated and have it call renderInIsolation().
Comment #4
cilefen commentedComment #22
dimitriskr commentedI don't know if that is still relevant but I've switched the patch in #1 to a MR, added back the renderPlain() with some deprecation messages and searched again the code for more calls of this method. Also a draft CR is ready
Comment #23
smustgrave commentedSeems to have some failures in the MR.
Deprecation can version can be 10.3 and removed in 11.x
Comment #24
dimitriskr commentedThank you @smustgrave!
I don't know why the test-only job fails, the error is that it cannot find the renderInIsolation() method. And I cannot trigger the other jobs
Also for the spellcheck failure, shall I apply the following change? It capitalizes one letter
Comment #25
smustgrave commentedThe R should be capitalized, tests aren't running because of the spelling error.
Comment #26
dimitriskr commentedComment #27
dimitriskr commentedAll green now, thanks again @smustgrave
Comment #28
smustgrave commentedLeft a few nitpicks, but believe we should add a test that checks the deprecated message.
All instances were replaced though, did a search for renderPlain()
Comment #30
ankithashettyTagging 'needs tests' as per #28 request. Nitpicks handled in MR.
Comment #31
dimitriskr commentedComment #32
smustgrave commentedTest looks good!
Comment #33
catchIt's still under discussion, but given the amount of changes in core and also usages in contrib, and that 11.0 and 10.3 could be released on the same day, and because the bc layer is just the old function calling the new one, this is the kind of deprecation I think we might now want to do for removal in Drupal 12 instead of 11 so that it doesn't block contrib compatibility with Drupal 11.
Comment #34
dimitriskr commentedMoved removal for 12.0.0
Comment #35
smustgrave commentedRemarking but per slack conversation https://drupal.slack.com/archives/C04CHUX484T/p1702418568197489 this is dependent on what the strategy going forward for 10.3 and 11.x will be.
Comment #36
quietone commentedI applied the diff and searched,
$ grep -r renderPlain core, and found some instances in comments that need to be changed. Setting to Needs work for those.I read the CR and it is short and concise which is fine in this case.
Comment #37
dimitriskr commentedComment #38
dimitriskr commentedComment #39
smustgrave commentedMR is not mergable
Have not re-reviewed yet.
Comment #40
dimitriskr commentedI rebased yesterday but it wasn't enough
I also found more findings
Comment #41
ghost of drupal pastIt certainly has confused this old ghost a few times when this method returned HTML instead of plain text.
Strong support for renaming it.
Comment #42
smustgrave commentedApplied the MR and did a search for renderPlain() and all instances minus deprecation have been replaced.
Comment #43
quietone commentedThe title of the issue implies that this is still under discussion. Can someone change the title so it reflects the change being made?
Thanks
Comment #44
dimitriskr commentedComment #45
smustgrave commentedAppears to no longer be mergable
Comment #47
dimitriskr commentedNow it's ready again
Comment #48
smustgrave commentedRebase appears good.
Comment #51
catchCommitted/pushed to 11.x and cherry-picked to 10.3.x, thanks!
Comment #52
dimitriskr commentedCan someone close the MR?