Follow-up to #2625696: Make migrations themselves plugins instead of config entities
Problem/Motivation
MigrationCreationTrait used to create config entities for migration templates. It no longer does. It configures the plugins.
Proposed resolution
Rename it.
Remaining tasks
rename MigrationCreationTrait to MigrationConfigurationTrait to reflect its current behavior and any associated comments
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #32 | interdiff-_31-32.txt | 644 bytes | heddn |
| #32 | rename-2682585-32.patch | 14.66 KB | heddn |
Comments
Comment #2
mikeryanComment #3
mikeryanComment #4
mikeryanComment #5
willwh commentedYanking this for sprint mentoring to let someone else have a crack :)
Comment #6
willwh commentedComment #7
barbarae commentedComment #8
mikeryanComment #9
hussainwebIt doesn't look like that the patch in #5 would run, but I think it would fail anyway (the file was not renamed). I also updated the comment and removed the todo. I am uploading an updated patch.
Comment #10
douggreen commentedComment #11
hanoiiLooking at this at Drupal NOLA sprint, we are looking into getting it ready for RTBC.
Comment #12
hanoiiWe were reviewing this issue with @heddn, it looks simple enough to be RTBC.
I did a project-wise search making sure there's no any leftover references to the old name, no doc comment or anything.
Comment #13
hanoiiComment #14
alexpottCan we leave the old trait around - but it should just use the new trait. And deprecated it for 8.3 - this means that people using the migrate upgrade module (from contrib) don't have to do a version dance.
Comment #15
hanoiiAttempting what @alexpott suggested.
Comment #16
alexpottHere's an interdiff - For instructions on creating an interdiff, see https://drupal.org/documentation/git/interdiff
There's a specific format for @deprecated notices... for example:
Comment #18
mikeryanI think, since we are maintaining the old trait, the change is upward-compatible and can go into 8.1.x.
Not sure if the test fail is real or an instance of #2724871: Random failure in \Drupal\migrate_drupal_ui\Tests\d7\MigrateUpgrade7Test, let's retest.
Comment #20
hanoiiseems to be passing except from one older one.
Comment #21
heddnComment #23
heddnIgnore the failure, it is coming from #2724871: Random failure in \Drupal\migrate_drupal_ui\Tests\d7\MigrateUpgrade7Test.
Comment #24
lokapujyaRunning the 8.1 test again to see how consistently this issue reproduces it. Looks like it passed the 8.2 tests.
Comment #26
heddnComment #27
alexpottComment #28
heddnComment #29
heddnI must really want that patch tested. Or I just goofed and upload the wrong thing for the interdiff.
Comment #30
dscl commentedHey guys,
I went through the comments and noticed @alexpott suggested to mark it as deprecated to be removed on 8.3.x (#14), but the patch is saying it will be remove on 9.0.x.
I believe the confusion happened because @alexpott provided an example (#16) where 9.0.x was mentioned.
Should we change it to 8.3.x or is keeping 9.0.x also fine?
Comment #31
dscl commentedJust in case, I'm submitting a new patch changing it to 8.3.x as I've mentioned before.
If 9.0.x is fine, just ignore it.
Comment #32
heddnI don't think we tend to designate a specific point release when something is going to go away. It is too hard to forecast the future. But that does bring up a good point. Typically we are more clear about stating "before".
New patch attached that copies more exactly the typical pattern.
Comment #33
mile23So a) If you set up your git like this:
...it's a lot easier to read the patch and see what's actually changed. https://www.drupal.org/documentation/git/configure
b) I was curious what changed in the new file from the old one, so I did this:
So no code changes, just the appropriate name and comment changes.
As far as deprecation, yah, we should be specific about when the code will be removed, so 9.0.0 is most appropriate. And we should say that it's been removed in the version target for the issue, so 8.1.x is fine as long as we're targeting 8.1.x.
I think it might be that we need to bump up to 8.2.x for an API change, but a maintainer can make that call, referencing #18.
Comment #35
quietone commentedCould be the random failure #2724871: Random failure in \Drupal\migrate_drupal_ui\Tests\d7\MigrateUpgrade7Test, so retesting.
Comment #36
mile23Passed this time.
Comment #38
dscl commentedPassing now, so changing back to RTBC.
Sure it was the mentioned issue on random fails.
Now that issue is fixed and we shouldn't have this test failing again.
Comment #39
alexpottCommitted 46434aa and pushed to 8.1.x and 8.2.x. Thanks!
I committed this 8.1.x because migrate is experimental and the change is totally BC.