Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Mar 2014 at 15:35 UTC
Updated:
29 Jul 2014 at 23:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
znerol commentedComment #2
znerol commentedComment #4
znerol commentedpostponing this until we got rid of the request service injected into the url generator.
Comment #5
znerol commentedReroll after #2229223: RequestStack is not persisted across kernel rebuilds. Also push the request stack in
core/authorize.php.I cannot reproduce the test failures from #1 locally, so perhaps we're lucky and the test-bot also agrees.
Comment #6
znerol commentedComment #8
znerol commentedOk, seems like unit-tests are failing, let's try the trick from #2229223: RequestStack is not persisted across kernel rebuilds
Update, this is the trick from #2228341-78: Objectify session management functions + remove session.inc to make DUTB pass.
Comment #9
dawehnerperfect!
Comment #10
znerol commentedBecause the fix introduced in #8 is actually taken from #2228341: Objectify session management functions + remove session.inc, I'd like to postpone this on the session.inc issue. The latter is way more important and I'd rather avoid getting in the way of it.
Comment #11
znerol commentedThis is not blocked anymore, reroll.
Comment #12
dawehnerWe could merge the assignment and the if into one line. btw. what is the reason we do need this here? Maybe we should document that and otherwise return FALSE in the later function.
Comment #13
znerol commentedRe #12: I think that the condition was necessary before when neither installer nor
update.phpcared to populate the request-stack. Meanwhile we have it around anywhere, therefore they can be removed I guess.Comment #14
znerol commentedReroll after #2079797: Provide a trait for $this->t() and $this->formatPlural()
Comment #15
dawehnerPerfect!
Comment #16
tim.plunkettDidn't see this (wrong component!) but it looks good.
Comment #17
tim.plunkettThis also unblocks my work in #2209977: Move form validation logic out of FormBuilder into a new class
Comment #18
webchickIt seems like it's super easy to forget that new line since one might reasonably expect that when you change something in the request, it'd handle pushing it onto the stack for you. Asked Tim about this and he noted that drupal_handle_request() does that for you in most instances, but run-tests.sh and authorize.php are different entry points that boot a slimmed down Drupal so they need extra handling.
Apart from that, this looks pretty straight-forward, soooo...
Committed and pushed to 8.x. Thanks!