Follow-up to #2221805: Manual Testing: D6 Block
Set up to test:
I followed the instructions in the parent issue to perform a simple D6->D8 block migration to test that I have everything set up correctly for testing migration. I created clean installs of D6 and D8, made sure that the Block module was enabled in both version.
In Drupal 6, I put Who's new in the right sidebar region and Who's online in the content region. I created a simple custom block and left it disabled (by mistake).
Place the manifest file in the D8 site root
I modified the manifest file based on feedback from benjy in the #drupal-migrate IRC channel. The block migration code has been refactored since the last manifest file was posted and two additional migrations are required: block_content_body_field and block_content_type. The new manifest file has been posted to the parent issue.
Run the migration
I executed the command to run the migration and all six of the migrations ran successfully.
Compare post-migration settings
When I examined the Block layout page in Drupal 8, I found the following:
- The custom block migrated successfully and was in the list of disabled modules.
- The Who's new and Who's online blocks were in the sidebar second and content regions as expected.
- Sidebar first had two entries for both Tools and User login.
- The Footer region had two entries for Powered by Drupal.
The duplicated blocks are displayed twice on the home page of the site.
Comments
Comment #1
jarsenx commentedComment #2
ultimikeI suspect that the duplicated blocks were the result of:
So, after the migration, the "duplicated" blocks you saw were simply the default D8 and the migrated D6 blocks.
The question is - should we do something about this?
-mike
Comment #3
ultimikeComment #4
ultimikeAfter discussing this with some members of the team during one of our weekly calls, we decided that this is not something we need to fix, as it is the expected behavior.
If you migrate a D6 site with blocks into a D8 site that already has blocks, the net results should be a D8 site with both sets of blocks.
To counter this, you may want to start with a D8 "minimal" install, then enable the necessary modules, then run the migration. The worst case here is that even if you don't run the "minimal" install profile, you'll have to go back and delete some of the "extra" stuff you don't want.
-mike
Comment #5
yousefanbar commented