Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
migration system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Mar 2017 at 15:09 UTC
Updated:
2 Oct 2017 at 18:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
phenaproximaComment #4
jofitzApologies for sticking my nose in if this isn't the kinda solution you're looking for, but this will at least get the tests passing.
I'm a little uncomfortable with mixing
getMock()andprophesize(), but that's what I went with.Comment #5
heddnLet's add a comment why we are passing in the event_dispatcher, or at least add a test of it in use. I think I know why, but it isn't blatantly obvious either.
Comment #6
heddnI don't know what I was thinking in #5. RTBC. MigrateMessage is no longer required. And it is BC.
Comment #7
alexpottThis code makes some of
Unnecessary. But I don't think that making this change is necessary here. Why is it being done?
Why is it necessary to inject the event dispatcher here suddenly? It's not obvious at all to me.
Comment #8
phenaproximaRegarding the event dispatcher...I don't exactly remember, but it might have been me trying to kill two birds with one stone. In the name of getting this extremely reasonable fix in, I'll revert that change and fix the event dispatcher in a follow-up.
Comment #9
phenaproximaOkay, here it is without any changes to the event dispatcher injection code.
I'm guessing this won't need any new test coverage, but it will need a change record.
Comment #10
phenaproximaChange record created: https://www.drupal.org/node/2880094
Comment #13
jofitzPatch in #9 no longer applies. Re-rolled.
Comment #14
jofitzAvoid calling setMessage() with a NULL parameter.
Comment #15
heddnThis looks good again.
Comment #18
xjmStraightforward DX improvement. The number of places we're no longer constructing an empty message object shows that this cleanup is worthwhile, and it's totally BC. Nice work!
Committed and pushed to 8.5.x. I didn't backport it because it's an API cleanup. I also published the CR (after retitling it a bit and bumping the branch to 8.5.x).
Comment #20
xjmReverted and recommitted to fix (a) the branch and (b) a crediting issue.