Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Dec 2013 at 07:29 UTC
Updated:
29 Jul 2014 at 23:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chx commentedComment #2
dawehnerI wonder whether we can give a more helpful explanation of what is exactly the invalid input and how it should look like?
It would be cool to have proper visibility.
Comment #3
chx commentedComment #4
chx commentedTweaked the second exception.
Comment #6
chx commentedComment #7
dawehnerThank you!
Comment #8
catchextracts
I'd rather see the basic example in @code?
Comment #9
catchComment #10
chx commentedExtracts, yes, I caught that myself but I am pushing back on replicating the handbook in core. We can (and do) work on the handbook constantly and I'd rather not submit a document patch all the time.
Now, this patch includes the next step in the plugin evolution: a process plugin base and a specific annotation class. This is step one in multiple handling that will be needed for the role migration. I have tried very hard to keep the patch as small as possible and so the multiple handling in MigrateExecutable is not in here, it'll be in the role migration.
Comment #11
chx commentedComment #12
chx commentedComment #13
chx commentedComment #14
chx commentedComment #15
dawehnerI wonder whether we should support also 'index' as many times you think more of a singular value.
(optional) I kind of love @see to the actual class so you can jump to the class really fast in case you use an IDE. Nice test coverage!
Comment #16
chx commentedComment #17
dawehnerThank you
Comment #18
webchickNothing to complain about here, this is the same as other process plugins, and thanks for linking to the full docs!
Only thing is that handbook page makes me nervous. It shows we're replacing a line of extremely basic PHP 101 with 8 lines of Drupal-specific YAML that has to be formatted "just so." I'm concerned about the DX impact of that. :\ But I guess this ship has already sailed on using YAML for these inputs, so not much can be done about that. Maybe worth a once-over once things are closer to ready to see if we can improve some of the verboseness, not sure.
In the meantime, however...
Committed and pushed to 8.x. Thanks!