Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
render system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Aug 2015 at 15:22 UTC
Updated:
16 Oct 2015 at 16:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mile23Immediately set postponed on the decision to deprecate: #2552865: Deprecate drupal_process_attached() for 8.0.0 and either throw an Exception or make it work via the RenderContext
Comment #3
mile23#2552865: Deprecate drupal_process_attached() for 8.0.0 and either throw an Exception or make it work via the RenderContext says to remove in D9, changing version.
Comment #4
mile23Related issue which removes a usage of
drupal_proccess_attached(): #2548991: Remove Bartik's erroneous use of drupal_process_attached(), add tests.Comment #5
mile23OK, so #2552865: Deprecate drupal_process_attached() for 8.0.0 and either throw an Exception or make it work via the RenderContext is in, that means this is a go for removal before 8.0.0 release. :-)
Still postponed on: #2477223: Refactor _drupal_add_html_head, drupal_get_html_head, _drupal_add_html_head_link into the attachments processor, remove from common.inc.
Comment #6
mile23Comment #7
ianthomas_ukWhen rolling a patch for this, don't forget to include the many @see references that are scattered around the codebase.
Comment #8
wim leersI've spent many, many, many hours on the many, many steps it took to get rid of the globals-littered craziness that was
drupal_process_attached(), so the fact that we've reached this point and I was able to roll the attached patch is extremely satisfactory :)One less loose end!
One less bit of legacy!
Comment #9
mile23:-)
We could take the time and improve the API documentation at
processAttachments(). It only tells the top-level keys, and not how the data should be structured.Also, it could say 'Don't call this directly!' :-)
Comment #10
wim leersThe signature is
processAttachments(AttachmentsInterface $response)— if people call it directly with their render arrays, it'll fail miserably :)Comment #11
mile23Comment #12
mile23#2571427: HtmlResponseAttachmentsProcessor tests misplaced during reroll will add some references to
drupal_process_attached(). We should postpone on it.Comment #13
ianthomas_ukThe references to drupal_process_attached in #2571427: HtmlResponseAttachmentsProcessor tests misplaced during reroll are specifically to test this function, but the function is obsolete and should be removed. This issue is rc deadline, but the tests are not, so I don't see why we need to risk missing the rc for those. Rerolling that issue after this has gone in should be straight forward. I've reviewed the patch and that issue is also RTBC now, so the maintainers can pick which they'd like to commit and which needs to be rerolled.
Added beta evaluation
Comment #15
mile23Removes references to
drupal_process_attached(), including the tests. Changes the names of some test classes to reflect this.Oops... The interdiff ended up with the .patch extension. Fumblefingers!
Comment #16
ianthomas_ukDoes what #15 says (removing the references that were added by #2571427: HtmlResponseAttachmentsProcessor tests misplaced during reroll)
Comment #18
wim leersThe fail was just for #15's interdiff, not for the actual patch.
Back to RTBC.
Comment #19
alexpottKABOOOOOOOOOOOOOOOOM!
Committed 1844088 and pushed to 8.0.x. Thanks!
Comment #21
alexpotthttps://www.drupal.org/node/2565285 needs to be updated and re-published.
Comment #22
wim leersWOOOHOOOO!
Comment #23
wim leersCR updated.
Comment #24
mile23Just one more issue before we can feel good about it... :-)
#2568511: Fix broken test: KernelTestBase::render