Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As a site owner migrating my site from Drupal 7 running environment_indicator-7.x-2.x
to Drupal 8 or 9 running environment_indicator-4.x
, I want to migrate configuration from environment_indicator, so that my Drupal 8/9 site has the same behavior as my Drupal 7 site.
Proposed resolution
Add migrations.
Remaining tasks
Write a patch- Review and feedback
- RTBC and feedback
- Commit
- Release
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#4 | 3198995-4--migrate-from-7x2x.patch | 21.32 KB | mparker17 |
Comments
Comment #2
mparker17Here's an initial patch to migrate the settings. I still need to migrate the hostname indicators.
Comment #3
mparker17Here's an updated patch. Reviews welcome.
Comment #4
mparker17Here's a patch with a more-accurate docblock for
tests/src/Kernel/Migrate/d7/ValidateMigrationStateTest.php
Comment #5
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.x
branch by...Automated testing
tabPHP 7.3 & MySQL 5.7
Drupal 9 Supported, currently 9.1.x
Run on commit and for issues
Save & queue
Comment #6
Wim LeersDoes it really make sense to migrate this configuration? I think usually the hostnames will be different?
Comment #7
mparker17The current plan is to keep the hostnames for the small business whose website I'm migrating. At the very least, it would be helpful for everything to migrate exactly first, and then be able to change it later as needed. See also the Background and Problem / Motivation sections in my blog post: https://consensus.enterprises/blog/migrations-1-migrate-core/
If it helps, I don't mind becoming a co-maintainer of Environment Indicator and taking responsibility for maintaining the migration stuff... I've used environment indicator on almost every site I've worked on, and I don't anticipate that changing anytime soon.
Comment #8
mparker17I am happy to report that I was able to use this patch to successfully migrate my Environment Indicator module configuration from my
drupal-7.99
site runningenvironment_indicator-7.x-2.9
to adrupal-10.2.1
site runningenvironment_indicator-4.0.17
.I cannot RTBC this issue because I wrote the patch. But, hopefully, my success will help other people migrating D7 to D10.
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. But, I'll keep an eye on this issue and try to answer questions to the best of my ability.