Quantcast
Viewing all articles
Browse latest Browse all 295845

Source plugins have a hidden dependency on migrate_drupal

Problem/Motivation

We moved all the source plugins into their relevant modules within core but now they all have a hidden dependency on migrate_drupal because the source classes extend DrupalSqlBase. This is exposed when you use the migrate source plugin manager to discover the plugins but then get a fatal error when instantiating a plugin because of the missing DrupalSqlBase class.

Proposed resolution

  1. Move DrupalSqlBase to the migrate module. The migrate module provides the plugin manager and the source plugin type so if we move the class there it will always be loaded when creating source plugins.
  2. Suggested in IRC: Implement a new property on the annotation to indicate that the sources are “drupal” sources and then filter them out in the plugin manager during discovery if migrate_drupal is disabled.

Remaining tasks

Decide on the approach and then prepare the patch.

User interface changes

n/a

API changes

n/a

Data model changes

n/a


Viewing all articles
Browse latest Browse all 295845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>