Export references does not export comments

Created on 28 November 2020, about 4 years ago
Updated 22 August 2024, 5 months ago

Problem/Motivation

Using default-content:export-references does not export comments.

Steps to reproduce

  1. Create a content type that allows comments
  2. Create a node of the type
  3. Place a comment on the node
  4. Export the node using drush dcer
  5. Notice that the comment is not automatically exported

Proposed resolution

Add support for comments.

Remaining tasks

  • Decide whether to treat comments as compound entities and export within the parent entity, or as stand-alone entities
  • Create a patch
  • Review
  • Commit

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands eelkeblok Netherlands πŸ‡³πŸ‡±

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States agentrickard Georgia (US)

    When working with forum comments at least, we get this error:

    TypeError: Drupal\forum\ForumIndexStorage::updateIndex(): Argument #1 ($node) must be of type Drupal\node\NodeInterface, null given, called in /var/www/html/web/core/modules/forum/forum.module on line 287 in /var/www/html/web/core/modules/forum/src/ForumIndexStorage.php on line 93 #0 /var/www/html/web/core/modules/forum/forum.module(287): Drupal\forum\ForumIndexStorage->updateIndex(NULL)
    

    That suggests that the entity_id mapping isn't loading properly.

  • πŸ‡¨πŸ‡­Switzerland berdir Switzerland

    What that probably means is that the reference is there, but not tracked as a dependency, so default_content doesn't know that it needs to create the node before the comments.

Production build 0.71.5 2024