Migrate text fields with conflicting text_processing setting as formatter text fields

Created on 12 May 2021, over 3 years ago
Updated 15 July 2024, 7 months ago

Problem/Motivation

In #2842222: D7 Plain text fields incorrectly migrated to D8 as Text (formatted) , we decided to not migrate text fields with conflicting text formats. This also means that there are data which is not migrated into the destination site – and it is very visible if your migrated node misses its (imho) most important body field's data.

As a user migrating from Drupal 7 to Drupal 9, I don't expect data loss in regards of core-provided fields.

Proposed resolution

Migrate even those text fields (and the data they store) which have conflicting text processing settings (on their field instance level).

My ideas:

  1. Migrate text fields conflicting text_processing setting as formatter text fields, but map their filter to plain_text.

    Pros:

    • Easy to implement.
    • Only the field migrate plugin should be modified.
    • The migrated data is still rendered the same as on the Drupal 7 source instance.
  2. Create separate field storages for text fields with conflicting text_processing setting: one for the plain text fields, and one for the formatted ones.

    Pros:

    • Data storage can be closer to Drupal 8|9 standards.

    Cons:

    • Less likely to be committed to core (ever) – because of unresolvable BC impacts.
    • The migrate source plugin should be modified – including also the data.
    • I don't (yet) know how, but every field_name destination plugin should use a lookup for getting the destination field name.

This issue/patch implement idea 1.

Remaining tasks

Reroll - tagged novice for this
Review
Commit

User interface changes

Nothing.

API changes

Text fields (and the data they store) with conflicting text processing settings are also migrated.

Data model changes

Nothing.

Release notes snippet

Feature request
Status

Needs work

Version

11.0 🔥

Component
Migration 

Last updated about 2 hours ago

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