Closed (fixed)
Project:
Media Migration
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2022 at 05:57 UTC
Updated:
22 Jun 2022 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
yash.rode commented1st patch requires youtube field patch applied and 2nd patch works without youtube field patch.
Comment #3
yash.rode commentedComment #6
yash.rode commentedRemoved Video Embed Field module from test.
Comment #7
yash.rode commentedComment #8
huzookaRebased #6
Comment #9
huzookaRe #4: Very nice work, thank you, @yash.rode!
I only have some really small nits:
Could you please add the approrpiate
Implements hook_....function comment and also leave a comment why this is necessary?Could you please add 'Media Migration' and 'Media Entity' migration tags?
@see
Drupal\media_migration\MediaMigration::MIGRATION_TAG_MAINandDrupal\media_migration\MediaMigration::MIGRATION_TAG_CONTENTI don't think that we have a
field_vid_emb_video_ulrcolumn in the migration rows returned by this source plugin.Group annotation of tests should reflect the actual module. This should be
@group media_migration.menu_uiandtaxonomymodules are irrelevant;fileandfieldmodules are installed by the parent classDrupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase.You don't have to execute
d7_fileord7_filter_format.And I'm missing an assertion about migration messages after these migrations are executed. Could you please add it? It can be either
$this->assertExpectedMigrationMessages()or$this->assertEmpty($this->migrateMessages), but if you chose the latter, then you can get rid ofMigMagKernelTestDxTrait.Comment #10
yash.rode commentedfollow up for #9.
Comment #11
huzookaThank you, @yash.rode! #10 addressed my concerns.
Comment #12
huzookaA couple of nits I missed in my review in #9:
The name of the migration YAML is
d7_media_embed_field.yml,but the ID isd7_video_embed_field. Could you please rename the file to make it matching the migration ID?{inheritDoc}should be lowercased:{inheritdoc}The entry of
video_embed_fieldmodule is missing from the database fixture'ssystemtable. Could you please add it?The video embed field migration isn't executed - so all the migrated media entities are stub entities.
Could you please move this assertion right after the
::executeMigrations()invocation?Comment #13
yash.rode commentedfollow up for #12.
Comment #14
huzooka@yash.rode, #12.4 is still unaddressed.
Comment #15
yash.rode commentedSorry, I missed #14 previously.
Comment #16
huzooka@yash.rode, thanks!
Comment #18
huzooka