Solve (work around) comment statistics related migration issues

Created on 11 February 2021, almost 4 years ago
Updated 31 July 2024, 5 months ago

Problem/Motivation

See this comment in EmeProcessor.

Proposed resolution

  1. First, we let the host entity to be migrated.
  2. After the entity is created, Comment module creates the initial statistics records for the entity and its appropriate comment fields.
  3. Then we migrate comments...
  4. And finally, we migrate the comment entity statistics items. So, the items might override the calculated result after the comment migration (so statistics might be corrupted, but will be exactly the same as in the source). But this approach works even if comment entity statistics is on or off.

So, the dependency "tree" is:

  1. comment_host_migration
  2. comment_migration
  3. comment_statistics_migration
πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary huzooka Hungary πŸ‡­πŸ‡ΊπŸ‡ͺπŸ‡Ί

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024