Use constants to distinguish d6/d7 table names in source plugins

Created on 30 October 2018, about 6 years ago
Updated 3 February 2023, almost 2 years ago

Problem/Motivation

In one of the recent i18n issues we started defining constants for the Drupal 6 and Drupal 7 for source plugins that share the same code for both versions. One example is 'block' for Drupal 7 and 'blocks' for Drupal 6. Let's complete that for all source plugins.

I grepped for all usages of ModuleSchemaVersion in source plugins and selected only those that need to have unique table names for d6 and d7.

These are the source plugins that need to be changed.

And if one wants an example look at d6/BoxTranslation and d7/BlockCustomTranslation.

Steps to reproduce

Proposed resolution

Change block/src/Plugin/migrate/source/Block.php

Remaining tasks

Review
Commit

User interface changes

N/A

API changes

\Drupal\block\Plugin\migrate\source\Block deprecated

Data model changes

N/A

Release notes snippet

N/A

πŸ“Œ Task
Status

Closed: won't fix

Version

10.1 ✨

Component
MigrationΒ  β†’

Last updated 4 days ago

Created by

πŸ‡³πŸ‡ΏNew Zealand quietone

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 benjifisher Boston area

    During πŸ“Œ [meeting] Migrate Meeting 2023-02-02 2100Z Fixed , I reviewed the patch in #35 and the comments on this issue.

    It seems to me that this issue is not worth the effort. It does make sense for a migration to specify the appropriate source plugin instead of making the source plugin figure it out, but with all the work we have to do to deprecate the old behavior and remove it in the next major version, I think we can just leave it as it is.

    Thanks to everyone who contributed to this issue, but I am closing it as "won't fix". Let's find other issues that will have more impact!

Production build 0.71.5 2024