Problem/Motivation

We need an upgrade path from 7.x for the core System module.

Remaining Tasks

Write migrations, with tests, covering:

High priority

Lower priority

This is a lot of work, so let's create child issues for each of these.

Contributors

Keeping track of contributors who submitted patches for child issues which have been merged with this one: hosef, oadaeh, samhassell, miguelc303, javisr

CommentFileSizeAuthor
#40 interdiff.txt1.63 KBquietone
#40 2500533-40.patch29.34 KBquietone
#38 2500533-38.patch29.36 KBquietone
#34 interdiff-2500533-30-34.txt516 bytesquietone
#34 2500533-34.patch29.34 KBquietone
#32 interdiff-2500533-28-30.txt17.58 KBquietone
#32 2500533-30.patch30.06 KBquietone
#30 interdiff-2500533-28-30.txt15.46 KBquietone
#30 2500533-30.patch29.94 KBquietone
#28 interdiff-2500533-24-28.txt13.89 KBquietone
#28 2500533-28.patch21.81 KBquietone
#24 interdiff-2500533-19-24.txt529 bytesquietone
#24 2500533-24.patch21.76 KBquietone
#19 interdiff-2500533-17-19.txt4.28 KBquietone
#19 2500533-19.patch22.04 KBquietone
#17 interdiff-2500533-6-17.txt39.66 KBquietone
#17 2500533-17.patch19.99 KBquietone
#16 interdiff-2500533-6-16.txt27.29 KBquietone
#16 2500533-16.patch5.18 KBquietone
#11 2500533-11.patch22.21 KBquietone
#6 interdiff-2500533-5-6.txt7.63 KBphenaproxima
#6 2500533-6.patch26.36 KBphenaproxima
#5 interdiff-2500533-2-5.txt19.21 KBphenaproxima
#5 2500533-5.patch23.45 KBphenaproxima
#2 2500533-2.patch23.52 KBphenaproxima
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

phenaproxima’s picture

Issue summary: View changes
phenaproxima’s picture

Issue summary: View changes

Mentioned contributors from merged issues.

phenaproxima’s picture

phenaproxima’s picture

phenaproxima’s picture

phenaproxima’s picture

Issue summary: View changes
phenaproxima’s picture

Issue summary: View changes
phenaproxima’s picture

Issue summary: View changes

Fixed a typo in the issue summary.

quietone’s picture

Issue tags: +Needs reroll
quietone’s picture

Status: Active » Needs review
FileSize
22.21 KB

Rerolled. Getting errors in MigrateSystemConfigurationTest.php but let's see if there is anything else.

naveenvalecha’s picture

Issue tags: -Needs reroll

Status: Needs review » Needs work

The last submitted patch, 11: 2500533-11.patch, failed testing.

The last submitted patch, 11: 2500533-11.patch, failed testing.

quietone’s picture

Issue tags: +migrate-d7-d8
quietone’s picture

Version: 8.0.x-dev » 8.1.x-dev
Status: Needs work » Needs review
FileSize
5.18 KB
27.29 KB

Reroll. Interdiff against #6.

How to handle system.filter, which has been moved to a container parameter?

quietone’s picture

FileSize
19.99 KB
39.66 KB

#16 is a bad patch.

Status: Needs review » Needs work

The last submitted patch, 17: 2500533-17.patch, failed testing.

quietone’s picture

For now, removed the system.filter migration. Maybe that should be in a separate issue now that it is a container parameter?

quietone’s picture

Status: Needs work » Needs review

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

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

The last submitted patch, 6: 2500533-6.patch, failed testing.

quietone’s picture

Moved the migration of filter_allowed_protocols to a separate issue, #2682229: Variable to container parameter: filter_allowed_protocols [d7]. It really is different from these 'simple' migrations.

Uploaded a new patch to remove filter_allowed_protocols from the test fixture.

benjy’s picture

Status: Needs review » Reviewed & tested by the community

Just a code style issue below, I think could be fixed on commit. RTBC.

  1. +++ b/core/modules/system/src/Tests/Migrate/d7/MigrateSystemConfigurationTest.php
    @@ -0,0 +1,184 @@
    +        'd7_action_settings',
    +        'd7_file_settings',
    +        'd7_system_authorize',
    

    Indent is wrong here.

  2. +++ b/core/modules/system/src/Tests/Migrate/d7/MigrateSystemConfigurationTest.php
    @@ -0,0 +1,184 @@
    +
    

    Un-needed new line.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 24: 2500533-24.patch, failed testing.

quietone’s picture

The test is failing on system.mail. \Drupal::config('system.mail')->get() returns 'test_mail_collector' but it really contains php_mail.

| system.mail | a:2:{s:9:"interface";a:1:{s:7:"default";s:8:"php_mail";}s:5:"_core";a:1:{s:19:"default_config_hash";s:43:"rYgt7uhPafP2ngaN_ZUPFuyI4KdE0zU868zLNSlzKoE";}} |
quietone’s picture

Status: Needs work » Needs review
FileSize
21.81 KB
13.89 KB

Added a check so that when 'system.mail' is being tested the actual config data is retrieved with getRawData so that overrides are avoided.

Status: Needs review » Needs work

The last submitted patch, 28: 2500533-28.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review
FileSize
29.94 KB
15.46 KB

A bit of a cleanup only. The migration templates for action_settings, file_settings, system_image, system_image_gd, system_logging, system_maintenance and system_rss are the same for d6 and d7 and have been merged. action_settings has been moved to the action module, where d6_action_settings was. file_settings has been moved to the file module, where d6_file_settings was.

Status: Needs review » Needs work

The last submitted patch, 30: 2500533-30.patch, failed testing.

quietone’s picture

FileSize
30.06 KB
17.58 KB

Merged the d6_system_site and d7_system_site templates.

quietone’s picture

Status: Needs work » Needs review
quietone’s picture

Restore accidentally removed blank line in MigrateUpgradeTestBase.php.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Status: Needs review » Needs work

The last submitted patch, 34: 2500533-34.patch, failed testing.

mikeryan’s picture

Issue tags: +Needs reroll
quietone’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
29.36 KB

Rerolled.

mikeryan’s picture

Status: Needs review » Needs work
  1. +++ b/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionConfigsTest.php
    @@ -0,0 +1,39 @@
    +    $this->assertIdentical(28, $config->get('recursion_limit'));
    

    Let's use assertSame() instead of the deprecated assertIdentical(). I know the corresponding D6 test has assertIdentical(), and it's out of scope to address that here, but let's not introduce deprecated uses in new files.

  2. +++ b/core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php
    @@ -0,0 +1,36 @@
    +    $this->assertIdentical('textfield', $config->get('description.type'));
    +    $this->assertIdentical(256, $config->get('description.length'));
    +    $this->assertIdentical('sites/default/files/icons', $config->get('icon.directory'));
    

    assertSame()

Otherwise this looks good - I'm ready to RTBC with the above changes.

quietone’s picture

Status: Needs work » Needs review
FileSize
29.34 KB
1.63 KB

Changed the assertions as per #39.

mikeryan’s picture

Status: Needs review » Reviewed & tested by the community

Thanks! Setting RTBC on the assumption the bots still pass...

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 40: 2500533-40.patch, failed testing.

quietone’s picture

Status: Needs work » Reviewed & tested by the community

Retested because the failures were not related to the patch. Passing again, so back to RTBC

alexpott’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +rc eligible

Committed and pushed ffde245 to 8.3.x and 9c705b8 to 8.2.x. Thanks!

As this is for migrate this is rc eligible.

diff --git a/core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php b/core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php
index 0034209..59d7b01 100644
--- a/core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php
+++ b/core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php
@@ -11,7 +11,7 @@
  */
 class MigrateSystemConfigurationTest extends MigrateDrupal7TestBase {
 
-  static $modules = ['action', 'file', 'system'];
+  public static $modules = ['action', 'file', 'system'];
 
   protected $expectedConfig = [
     'system.authorize' => [
diff --git a/core/modules/system/migration_templates/d7_system_authorize.yml b/core/modules/system/migration_templates/d7_system_authorize.yml
old mode 100755
new mode 100644

Fixed on commit.

  • alexpott committed ffde245 on 8.3.x
    Issue #2500533 by quietone, phenaproxima: Upgrade path for System 7.x
    

Status: Fixed » Closed (fixed)

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