Closed (fixed)
Project:
Search 404
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2021 at 03:43 UTC
Updated:
21 Nov 2022 at 10:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mparker17Here's a patch. Reviews welcome.
Comment #3
mparker17Whoops; accidentally left a reference to environment_indicator (the module I most recently wrote a settings migration for) in the migration files here.
Comment #4
mparker17Note my patch adds automated tests, but it looks like automated testing is not enabled for this project... a module maintainer(s) could enable automated tests for the
4.xbranch by...Automated testingtabPHP 7.3 & MySQL 5.7Drupal 9 Supported, currently 9.1.xRun on commit and for issuesSave & queueComment #5
omkar.podey commentedAdded some mappings for complete migration , updated tests.
Comment #6
narendrarVery nice. 👍 . Data is getting migrated from D7 to D9, tested manually.
Some questions:
What is the use of getting variable if we are not using it.
Is it necessary to set default value in this case?
Same as above
This migrating is not tested, can be removed.
Comment #7
wim leers@omkar.podey asked for clarifications on #6. Here they are:
Comment #8
mparker17From my perspective,
1. Agreed, delete. That was a mistake on my part.
2. and 3. I may be mis-remembering, but I thought I recall getting errors from modules when variables that are required in the D9 version and don't have a D6/D7 version are not set to their default values during the migration. I seem to recall finding out that the migration wizard overwrites the configuration objects set when the module gets installed, instead of modifying them. But, the behaviour could also have changed since I tried this last.
4. Agreed, delete.
***
I probably won't be able to get around to testing or writing a follow-up patch until December 27th, 2021 at the earliest - I must take time off from my regular job to work on the small-business website I'm trying to migrate from D7 to D9, and that's the first day I can do so.
Comment #9
omkar.podey commentedUpdated as per review , fixed tests.
Comment #10
omkar.podey commentedUpdated as per review , fixed tests.
Comment #11
narendrarGreat 👍
Probably last thing from my side: tests/src/Kernel/ValidateD6MigrationStateTest.php is failing on my machine.
Comment #12
omkar.podey commentedRemoving schema check exclusions in favour of #3255410: Updating schema type to config_object. , which is required for the tests to pass.
Comment #13
wim leersI think #12 is ready for the D7 → D8|9 migration.
It'd be great if the maintainer of this module would enable automated tests for this project so that we could get consistent test runs here on d.o 😊🤞
Comment #14
mparker17I've tested #12 and I can confirm it migrates my D7 site settings properly without errors.
This is apparently no longer an issue -
search404_page_redirectdoes not appear in the patch in #12 but I can confirm that it has its default value after migration on my site. So changes #6.2 and #6.3 are warranted.Since I had a hand in creating the original patch, I can't mark #12 as RTBC - but I would if I could.
Thanks everyone!
Comment #15
wim leersYay, #3255410: Update schema type from "mapping" to "config_object" landed, which means this is unblocked!
We've been running with #12 in production on many migrations for the past ~10 months, so … RTBC!
Comment #17
emilymathew commentedThank you Wim Leers, omkar.podey, mparker17, narendraR for your contribution.