Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Jul 2012 at 21:24 UTC
Updated:
29 Jul 2014 at 20:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
socketwench commentedI hope I did this right...
Comment #2
Crell commentedLet's ask the bot.
Comment #3
socketwench commentedHm. I didn't remove the 4 string references to ajax_deliver(). What do we do with those?
Comment #4
Crell commentedIf the function never gets called anyway, we may as well just remove them. In fact, the entire delivery callback can be purged entirely. Everything is now done via mime type.
Comment #5
socketwench commentedThat's usually where I get confused. It *looks* like all of ajax_test.module would need to go away, and the reference in file_menu(). I would assume the body of hook_page_delivery_callback_alter() would be empty too?
Comment #6
socketwench commentedRemoved additional function references, but not those in ajax_test.module.
Comment #7
Crell commentedhook_page_delivery_callback_alter() probably goes away entirely, since there's nothing for it to alter.
I don't think ajax_test.module goes away, as FrameworkTest is still using it. It's just detecting based on the mime type now. However, the delivery callback lines in its hook_menu() should get removed, as should the references in file_menu() and anywhere else that they appear.
Comment #8
socketwench commentedRemoved additional references.
Comment #10
chx commentedRun Drupal\field\Tests\FormTest and check the verbose output. Where HTML is expected something is not so: simplexml_import_dom(): Invalid Nodetype to import
Comment #11
socketwench commentedDid that...but the results aren't making any sense to me...
Comment #12
Niklas Fiekas commentedThanks @socketwench!
Only one minor point that might be causing the test failures: This is the next round, bringing back the menu items and removing *just* the delivery callback key.
Also dropping all references now, except those in the overlay module.
Is it required / does it make sense to write an update function that drops the delivery_callback field on the menu_router table, or is that going to be replaced anyway?
Comment #13
Crell commentedI'm planning to replace that table entirely anyway, so I don't much care if we drop that field now or not.
Comment #14
Niklas Fiekas commentedAlright, then this patch should be good to go.
Comment #15
Crell commentedThen #12 looks done to me. Yay for patches with lots of minus signs! :-)
Comment #16
yched commentedShouldn't there be an update func to drop the delivery_callback column from the menu_links table ?
Comment #17
Niklas Fiekas commentedCrell's point in #13 was, that the whole table is going to be replaced anyway. If we weren't pretty sure that will indeed (hopefully soon) happen, then yes: totally.
Comment #18
sunNicey. :)
Comment #19
dries commented#12: 1677304-remove-delivery-12.patch queued for re-testing.
Comment #20
dries commentedAsking for a re-test as the patch don't seem to apply for me.
Comment #22
Niklas Fiekas commentedYes, this needed a reroll after #687842: Add a "description callback" property to menu items.
Comment #23
sunThe re-rolled patch is missing code removals from menu.inc, system.api.php, system.module, and system.install.
Comment #24
Niklas Fiekas commentedThis one should be complete. Did the diff before actually finishing the rebase :)
Comment #25
sunComment #26
dries commentedCommitted to 8.x. Win! :)
Comment #27
tim.plunkettThis was a fairly big change, and it was very unclear what to do to deal with these being replaced.
Comment #28
Niklas Fiekas commentedAh ... sorry. I should have said: This is just a sub-issue of the (already critical) #1622934: Replace delivery callbacks by leveraging the HTTP kernel, fix the overlay module . We knew we would remove drupal_deliver_page(), ajax_deliver() and drupal_deliver_html_page() and the concept of delivery callbacks, but were not 100% finished with a replacement. (Pretty close, though, thanks to @katbailey - #1599108: Allow modules to register services and subscriber services (events).)
So I'd prefer to create a change notification summarizing all the related changes from that master issue, once we figured it out.
Comment #30
gábor hojtsyNo change notification or further work materialized in #1622934: Replace delivery callbacks by leveraging the HTTP kernel, fix the overlay module and it was rescoped to fix follow bugs, but the change notice is still not done.
Comment #31
webchickThis has been waiting for a change notice for over 6 weeks now. Let's please get this knocked out.
Comment #32
Crell commentedAdded change notice here: http://drupal.org/node/1937056
It could probably stand some revising, but if you (the royal you) think it's good enough for now, go ahead and mark this issue fixed.
Comment #33
gábor hojtsy@Crell, thanks. It does not seem to be enough for me to understand how systems using the prior functionality should now adapt. Which is the purpose of the change notice :) Eg. how would #1848210: [Tests] Submitting a form in Overlay shows content + dsm() for a split second before redirecting to front-end theme be possible to resolve is one thing I expected to learn from here, since that is a use case where core still attempts to use the non-existent functionality.
Comment #34
Crell commentedMy knowledge of overlay is minimal at best, so I don't really follow what's going on in that issue. If you could explain (probably there, not here) what exactly that has to do with drupal_deliver_page() I might be able to say something intelligible on the subject, and figure out what the appropriate "modern" alternative is. (Which would help with a more useful change notice.)
Comment #35
gábor hojtsyDone: http://drupal.org/node/1848210#comment-7150930
Comment #36
krlucas commentedI'm working on updating the change notification and specifically reviewing the overlay issue to see if I can figure out something coherent. Thanks!
Comment #37
xjmComment #38
krlucas commentedI've updated the change notice here http://drupal.org/node/1937056. Specifically, I discussed how (I guess) one can achieve the functionality of hook_page_delivery_callback_alter() by creating an event listener for "onRequestSetController".
Comment #39
podarok#38 looks good
back to fixed and fixing title
thanks!