Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
migration system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2016 at 06:16 UTC
Updated:
16 Sep 2016 at 08:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chx commentedComment #3
benjy commentedLooks good to me, remarkably simple really.
Comment #4
chx commentedLet's add a test for iterator as well.
Comment #5
benjy commentedMore tests :)
Comment #8
chx commentedApparently I forgot to git pull before I posted this...
Comment #10
chx commentedCckMigration overrides getProcess and gets getMigrationDependencies into an infinite loop. Neat. Avoiding that is easy.
Comment #11
benjy commentedComment #13
chx commentedGood ole' game: keeping up with HEAD.
Comment #14
mikeryanI like the idea, but... What happens with circular migration references?
article.yml:
blog.yml:
The optional dependencies are used in sorting, and I don't know how it would handle circular references - I think we at least need a test for that scenario. And I'm betting we will need to prevent it (do not add a dependency on another migration if that migration already depends on us, directly or indirectly).
Comment #15
chx commentedin
Drupal\Component\Graph\Graph::depthFirstSearch. And no, we do not need a test here. Adding a circular graph test toDrupal\Tests\Component\Graph\GraphTestis not a bad idea but definitely a separate issue.Comment #16
mikeryanI would feel better testing circular dependencies, but that seems a little more involved than I first imagined... In attempting it, though, I noticed some cruft left over from the original test:
Unused migration still created.
This assertion is now redundant.
Comment #17
chx commentedComment #19
mikeryanFinally checked back, interdiff looks good, back to RTBC.
Comment #20
catchComment #22
catchCommitted/pushed to 8.3.x and 8.2.x, thanks!