Problem/Motivation

Per #2533886: [meta] Move module-specific migration support into the particular modules supported, move support for file migration into the file module.

Proposed resolution

For the most part, this is a matter of moving files around and updating namespaces. Also, explicit destination module dependencies can be removed.

Migration templates to be moved:

  • d6_file
  • d6_file_settings
  • d6_upload
  • d6_upload_entity_display
  • d6_upload_entity_form_display
  • d6_upload_field
  • d6_upload_field_instance

Remaining tasks

Submit a patch.

User interface changes

N/A

API changes

Namespaces of affected migration plugins will change.

Data model changes

N/A

Comments

phenaproxima’s picture

Assigned: Unassigned » phenaproxima
phenaproxima’s picture

Status: Active » Needs review
StatusFileSize
new4.66 KB

Status: Needs review » Needs work

The last submitted patch, 2: 2534012-2.patch, failed testing.

phenaproxima’s picture

Status: Needs work » Postponed
phenaproxima’s picture

StatusFileSize
new12.63 KB
new6.64 KB

Moved the tests into the Drupal\file\Tests\Migrate namespace, and moved all upload-related stuff into File.

phenaproxima’s picture

Status: Postponed » Needs review

Unblocked.

Status: Needs review » Needs work

The last submitted patch, 5: 2534012-5.patch, failed testing.

phenaproxima’s picture

Status: Needs work » Needs review
StatusFileSize
new14.61 KB
new1.97 KB

Fixed a few incorrect namespaces.

Status: Needs review » Needs work

The last submitted patch, 8: 2534012-8.patch, failed testing.

phenaproxima’s picture

Status: Needs work » Needs review
StatusFileSize
new14.6 KB
new577 bytes

This is what happens when you have to do mind-numbing re-rolls of like 10 different patches...you miss things.

mikeryan’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

mikeryan’s picture

Status: Reviewed & tested by the community » Needs work

After applying all the move patches, I think the following still need to be moved to the file module:

  • migrate.destination.entity:file: from migrate.destination.schema.yml
  • EntityFile.php
  • EntityFileTest.php
mikeryan’s picture

And let's not forget the d6 Upload and UploadInstance source plugins...

phenaproxima’s picture

Status: Needs work » Needs review
StatusFileSize
new19.96 KB
new3.84 KB

The things: they are moved.

Status: Needs review » Needs work

The last submitted patch, 14: 2534012-14.patch, failed testing.

phenaproxima’s picture

Status: Needs work » Postponed

This is blocked by #2534042: Move module-specific migration support into the user module.

The reason is that, with the entity:file destination plugin's schema moved into the File module, File needs to be enabled for any migration test which installs migrations that have a file destination. Currently, Migrate Drupal -- which is always enabled for migration tests -- contains the d6_user_picture_file migration, which has a file destination. However, many tests do not have any need to enable File (such as Contact's migration tests, which have been committed), so when they call installMigrations(), migrations like d6_user_picture_file are installed, causing exceptions and failing the tests because File itself is not installed.

The solution here is that the offending migrations must be moved out of Migrate Drupal before this can proceed.

phenaproxima’s picture

Status: Postponed » Needs review

Unblocked.

phenaproxima queued 14: 2534012-14.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, 14: 2534012-14.patch, failed testing.

phenaproxima’s picture

Status: Needs work » Needs review
StatusFileSize
new19.77 KB

Re-rolled without moving the entity:file destination schema into File, because that breaks tests. The solution is for migration tests to install only the migrations they need to run, rather than all of them. But that needs to be a follow-up issue once this one is committed.

Status: Needs review » Needs work

The last submitted patch, 20: 2534012-20.patch, failed testing.

hussainweb’s picture

Status: Needs work » Needs review
StatusFileSize
new1.77 KB
new18.89 KB

Attempting to fix the failure. I also found a .rej file possibly from the reroll. I removed the file. Everything in interdiff.

Status: Needs review » Needs work

The last submitted patch, 22: 2534012-22.patch, failed testing.

hussainweb’s picture

Status: Needs work » Needs review
StatusFileSize
new577 bytes
new19.14 KB

Fixing the failure.

mikeryan’s picture

Status: Needs review » Reviewed & tested by the community

  • webchick committed 8bf9a8c on 8.0.x
    Issue #2534012 by phenaproxima, hussainweb, mikeryan: Move module-...
webchick’s picture

Status: Reviewed & tested by the community » Fixed

BEGONE!

Committed and pushed to 8.0.x. Yaaaayyyy!

Status: Fixed » Closed (fixed)

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