Problem/Motivation

We need an upgrade path for the Drupal 7 Comment module.

Remaining Tasks

Write migrations (with tests) to handle the following:

  • Variables related to comments (e.g., comment_anonymous_page and its ilk; see comment_uninstall() for more) need to be moved into configuration as needed. It looks like D8 Comment maintains no configuration, so this is not needed.
  • Comment entities need to be migrated.
  • Comment types need to be migrated, with relevant configuration.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, 1: migration_files_for-2532534-1.patch, failed testing.

webchick’s picture

Priority: Normal » Major
Issue summary: View changes
Issue tags: +Migrate critical

Merging #2500465: Upgrade path for Comment 7.x into this one. Since this is one of the "big 4" that people won't consider migration complete without, bumping to a Migrate critical.

quietone’s picture

Add parent task

phenaproxima’s picture

Status: Needs work » Postponed

Comment migration depends on nodes, so this is blocked by #2423103: Migration Files for Drupal 7 Content.

phenaproxima’s picture

Issue summary: View changes

Fixing the IS.

phenaproxima’s picture

Re-rolled and merged all related/child issues into the patch.

phenaproxima’s picture

Status: Postponed » Needs work

Node migrations are in, so this be unblocked.

phenaproxima’s picture

Status: Needs work » Needs review
FileSize
32.83 KB

I done made a patch with tests!

phenaproxima’s picture

Added a test of the CommentType source plugin.

phenaproxima’s picture

Sigh...reverted a couple of non-crucial changes to the D6 comment migrations.

The last submitted patch, 9: 2532534-9.patch, failed testing.

The last submitted patch, 10: 2532534-10.patch, failed testing.

phenaproxima’s picture

Fixed missing dependencies in d7_field_instance which cause exceptions during real-world migrations.

webchick’s picture

Just some house-keeping, ignore me.

quietone’s picture

It looks like the test data has only one comment. If that is true, is that really sufficient?

+++ b/core/modules/comment/migration_templates/d6_comment.yml
@@ -39,7 +39,7 @@ migration_dependencies:
-    - d6_user
     - d6_comment_entity_display
     - d6_comment_entity_form_display
+    - d6_user
     - d6_filter_format

What is the significance of the order change?

quietone’s picture

Using a site with only 50 nodes of devel generated content, this worked really well. Looks like all the content is there in the right display order and the correct authors.

I did get one error:

Importing d7_comment_entity_form_display
Importing d7_comment_entity_form_display_subject
array_key_exists(): The first argument should be either a string or an integer NestedArray.php:77                                                                                                       [warning]
Importing d7_field
ultimike’s picture

Status: Needs review » Reviewed & tested by the community

This looks good to me. I walked through it while peppering phenaproxima with questions on IRC, I'm satisfied.

-mike

phenaproxima’s picture

Regarding #17 -- since it's a non-fatal error that didn't completely hose the migration, let's deal with it in a follow-up issue.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Tested this manually yesterday myself with a few of the other patches that went in today and it worked GREAT. Proof: https://twitter.com/webchick/status/639189072838168576

Committed and pushed to 8.0.x. YEAH! :D

  • webchick committed 5fb22f4 on 8.0.x
    Issue #2532534 by phenaproxima, miguelc303: Migration Files for Drupal 7...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.