Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2013 at 14:46 UTC
Updated:
29 Jul 2014 at 23:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chx commentedComment #2
dawehnerCan we have some comment which explains how this works together?
Comment #3
dawehnerchx told me that we use this kind of code without docs in other places.
Comment #4
chx commentedFor example https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21FileTrans...
Comment #5
webchickNone of us in IRC could figure out what that line of code did either. :P~ And just because we have other horrifying examples in core is no reason to add more. ;)
Added some more docs, including a pointer to the handbook page, and...
Committed and pushed to 8.x. Thanks!
Comment #6
webchickHuh. Well something obviously went horribly wrong there. :P Reverted for now since I introduced a syntax error by missing half the file. :( We want it to basically look like https://gist.github.com/webchickenator/94e5605ce970a7b688c0 but I don't have time right now to dig into why that's not working when applied as a patch.
Comment #7
chx commentedManually edited patches need to be fixed by
redifffrom patchutils.Comment #8
chx commentedThis was almost committed so surely it's ready.
Comment #9
chx commentedAnd thanks much for fixing Migrate docs. I have stated today in the podcast (and even demonstrated there as well) one really loses touch with reality after a time -- I have been using recursive iterators for years now so I had no clue they were a problem -- indeed when I looked at the need to have a flatten plugin this line of code came naturally to me.
Another thing we could do
Is that better?
Comment #10
larowlanI understood the intent of 9 faster than the earlier approach, due to lack of familiarity with the RecursiveIteratorIterator class
Comment #11
webchickNo, I think the code is fine, it just needed some explanation, which is there now. :)
Committed and pushed to 8.x, this time without breaking HEAD. ;) Thanks!