Migrate settings from site_map-7.x-1.3

Created on 6 January 2023, over 1 year ago
Updated 2 March 2024, 4 months ago

Problem/Motivation

In D7, the site_map module β†’ performed a similar task to this module in D8/9/10 and had pretty-similar settings.

As a site builder upgrading a D7 site to D9, I would like automatic migrations, so that I don't have to migrate my settings manually.

Speaking as someone who maintains a D7 site on a volunteer basis with ~97 modules (after removing the ones I didn't need), the more modules that can automatically migrate their settings, the better.

Steps to reproduce

Roughly...

  1. Set up a D7 site with site_map-7.x-1.x and configure some settings at /admin/config/search/sitemap (e.g.: title, description, site map content and the settings for that content, CSS settings)
  2. Set up a D9 site with sitemap-8.x-2.x-dev. Enable core's Migrate, Migrate Drupal, and Migrate Drupal UI modules.
  3. On the D9 site, go to /upgrade and follow the upgrade process. Note that when you get to the "What will be upgraded?" page, the (D7) "Site map" module is listed in the "Modules that will not be upgraded" section.
  4. On the D9 site, proceed with the migration.
  5. On the D9 site, after the migration, go to this module's settings page at /admin/config/search/sitemap. Actual behavior: this module's default settings are shown. Expected behavior: As many D7 settings as possible have migrated.

Proposed resolution

Write migrations from the D7 settings and declare the finished upgrade path β†’ from D7.

Future work (not in this ticket): Migrate settings from D6 as well.

Remaining tasks

  1. Update merge request with migration for site_map_show_books
  2. Update merge request with migration for site_map_books_expanded
  3. Update merge request with migration for site_map_show_menus_hidden
  4. Update merge request with migration for site_map_show_vocabularies
  5. Update merge request with migration for site_map_show_description
  6. Update merge request with migration for site_map_show_count
  7. Update merge request with migration for site_map_categories_depth
  8. Update merge request with migration for site_map_term_threshold
  9. Update merge request with migration for site_map_forum_threshold
  10. Update merge request with migration for site_map_show_rss_links
  11. Update merge request with migration for site_map_rss_depth
  12. Review and feedback
  13. RTBC and feedback
  14. Commit
  15. Release

User interface changes

None.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Needs work

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

    mparker17 β†’ changed the visibility of the branch 8.x-2.x to hidden.

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

    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.

    I have created a merge request so we can see the result of automated tests, and I have updated the issue summary with the remaining tasks to make it easier for others to pick up where I have left off.

Production build 0.69.0 2024