Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 May 2013 at 09:15 UTC
Updated:
29 Jul 2014 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vijaycs85Initial patch...
Comment #2
vijaycs85Adding hook_menu change...
Comment #3
ParisLiakos commentedMisses @return docs (see below)
i think calling it runManually sounds better
Should return a RedirectResponse.
sth like:
dont forget the use statement;)
Comment #4
mtiftI think this patch addresses the items in #3
Comment #6
ParisLiakos commentedi think you changed the existing method:P
you should apply the patch from #2 first
Comment #7
mtiftRe-rolled the patch and consolidated all of the changes
Comment #8
ParisLiakos commentedstill the changes are on the existing method. run() should stay as is, runManual() is the method i was reffering above
Comment #9
mtiftAhh. That makes more sense.
Comment #11
ParisLiakos commentedstill those changes are irrelevant.
instead this drupal_goto should be replaced with the RedirectResponse above
and after you move it, this should be updated to reflect the @return value
Comment #12
mtiftUpdated patch attached
Comment #13
ParisLiakos commentedlooks a lot better now, thanks!
really minor: while in documentation we should always use the full namespace of the class (including preceding \)
lets update the method name here to reflect reality:)
Comment #14
dawehnerIf you have a MENU_CALLBACK you can directly remove the entry in hook_menu.
Comment #15
mtiftHere's an updated patch
Comment #16
dawehnerJust to note: On the longrun there should be something like a cronRunner service, which has everything injected.
it should be url('admin/reports/status', array('absolute' => TRUE));
Just remove all of it
Comment #17
ParisLiakos commentedAgreed, there is already a @todo in the method above:)
Comment #18
mtiftRevised patch attached
Comment #20
ParisLiakos commented#18: 1987828-route-system-cron-run-18.patch queued for re-testing.
Comment #22
ParisLiakos commented#18: 1987828-route-system-cron-run-18.patch queued for re-testing.
Comment #23
ParisLiakos commentedthats ready, thanks
Comment #24
catchCommitted/pushed to 8.x, thanks!