Problem/Motivation

Right now, RollbackableTrait::import() marks every component as new if they were new before the actual import was executed.

This is wrong for e.g. field formatter settings, because the component might be new (missing) from the actual entity view display even after the migration; because its formatter in Drupal 7 was set to hidden.

Proposed resolution

Before marking a component as new, we should check whether it isn't new after the import. If it is still new, then the destination plugin shouldn't flag it as being new.

Remaining tasks

  1. Failing test-only patch.
  2. Fix.
  3. Commit to 1.1.x
  4. Cherry-pick to 1.0.x
  5. Update documentation.

API changes

No more harmful (and meaningless) exceptions.

Comments

huzooka created an issue. See original summary.

huzooka’s picture

This should be get into 1.0.x as well.

huzooka’s picture

Category: Task » Bug report
Priority: Critical » Major
Issue summary: View changes
huzooka’s picture

huzooka’s picture

Title: Suppress "Target already marked as being new" exceptions until 3227391 gets meaningful feedback » Check target component after the import before flagging as being new
huzooka’s picture

Status: Needs review » Needs work
huzooka’s picture

huzooka’s picture

Hopefully #3227668: Add workarounds for core issues 3227549 and 3227660 can help MigMAg,but it will also mean that either:

  1. We have to depend on Smart SQL ID Map.
  2. We have use the SmartSql migrate ID map plugin if it is avaliable, but warn the users very loud that they should install it, or apply the corresponding core patches.
huzooka’s picture

huzooka’s picture

Assigned: huzooka » Unassigned
Status: Needs work » Needs review
StatusFileSize
new5.93 KB
new10.74 KB
new1.19 KB

The last submitted patch, 14: migmag-fix_component_flagging-3227400-14--test-only.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

huzooka’s picture

Patches in #13 and #14 are identical, unfortunately.

huzooka’s picture

  • huzooka committed 9a3d09b on 1.1.x
    Issue #3227400 by huzooka: Check target component after the import...
huzooka’s picture

Version: 1.1.x-dev » 1.0.x-dev
Issue summary: View changes

  • huzooka committed c015190 on 1.0.x
    Issue #3227400 by huzooka: Check target component after the import...
huzooka’s picture

Issue summary: View changes
huzooka’s picture

Issue summary: View changes
huzooka’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.