D7 WBM upgrade path

Created on 18 April 2018, over 6 years ago
Updated 27 March 2023, over 1 year ago

Problem/Motivation

It would be nice to have an easy upgrade path for WBM from D7 contrib to content moderation in core.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

heddn Nicaragua

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.

  • 🇮🇳India bhanu951

    Here is a slightly modified query when you are only migration only latest revision of the node.

    Below query only retrieves currently active moderation state for migration.

        $query = $source->getDatabase()
          ->select('workbench_moderation_node_history', 'wm')
          ->fields('wm', ['state'])
          ->condition('wm.nid', $row->getSourceProperty('nid'))
          ->condition('wm.is_current', '1');
    
        $value = $query->execute()->fetchField();
        if ($value) {
          $row->setSourceProperty('moderation_state', $value);
        }
    
Production build 0.71.5 2024