Migrate configuration from 6.x-1.x, 7.x-1.x

Created on 19 February 2021, over 3 years ago
Updated 27 June 2024, 1 day ago

Problem/Motivation

As a site owner migrating my site from Drupal 6/7 running extlink, to Drupal 8/9 running extlink, I want to migrate configuration from extlink so that my Drupal 8/9 site has the same behavior as my old site.

Proposed resolution

Add migrations and tests.

Declare the finished upgrade path from D6/7 by creating a migrations/state/extlink.migrate_drupal.yml and populating it appropriately; and add tests.

Remaining tasks

  1. Review and feedback
  2. RTBC and feedback
  3. Commit
  4. Release

User interface changes

None.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

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.

  • πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

    I am happy to report that I was able to use this patch to successfully migrate my External Links module configuration from my drupal-7.99 site running extlink-7.x-1.21 to a drupal-10.2.1 site running extlink-8.x-1.7.

    Unfortunately, I cannot RTBC this issue because I wrote the patch β†’ . But, hopefully, my success will help other people migrating D7 to D10.

    Unfortunately, however, now that my D7 to D10 site migration is complete, my ability to contribute further to this issue is severely limited, because the D7 site that I had been using to test has been retired. However, I'll keep an eye on this issue and try to answer questions to the best of my ability.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @mparker17 could you please turn this into a MR?

    @Wim Leers, 2Y later still plans for review? ;D (joking, sorry)

  • πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

    @Anybody, sure! Here's a link to !12, where I applied the patch from #6 ✨ Migrate configuration from 6.x-1.x, 7.x-1.x Needs review .

  • First commit to issue fork.
  • Status changed to Needs work 3 days ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Has some warnings in the MR.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Should note the warnings for stylelint are known and I’ll fix in another ticket

  • Pipeline finished with Failed
    2 days ago
    Total: 333s
    #208673
  • πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

    The remaining lints are happening in files that weren't changed in this MR (i.e.: eslint failing because of extlink.js; phpstan (next major) failing because of src/Form/ExtlinkAdminSettingsForm.php; stylelint failing because of extlink.css.

    I also see Drupal\Tests\extlink\FunctionalJavascript\ExtlinkAdminTest::testExtlinkDisabledOnAdminRoutes is failing in several tests, and nothing related to that was changed in the merge request.

    That being said, I see Drupal\Tests\extlink\Kernel\ValidateD6SettingsMigrationTest::testMigration and Drupal\Tests\extlink\Kernel\ValidateD7SettingsMigrationTest::testMigration are failing, and those were changed here, so I'll work on those.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Pipeline is all green now.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Drupal\Tests\extlink\Kernel\ValidateD6SettingsMigrationTest::testMigration and Drupal\Tests\extlink\Kernel\ValidateD7SettingsMigrationTest::testMigration are failing,

    Message I'm getting is that extlink is not enabled on source site.

  • Status changed to Needs review 1 day ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Have 0 idea if that's correct, I copied the fixtures from another module but they seem to be passing now.

  • πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

    @smustgrave, thank you! In this case, as long as the fixtures set up the tables needed for the test, then I'd say it's fine.

    (Normally I would RTBC at this point, but since I wrote some of the patch, and I don't have a migration to test anymore, I probably shouldn't)

  • Status changed to Fixed 1 day ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    It's non disruptive so I don't mind merging. Thanks for taking a look!

Production build 0.69.0 2024