Problem/Motivation
As of 8.8.x, modules can declare their Drupal 8 (or 9) upgrade status (changelog, issue #2936365: Migrate UI - allow modules to declare the state of their migrations).
Since #2953000: Migrate configuration from Drupal7 landed, this module appears to have a complete (finished) upgrade path from D7.
Proposed resolution
Declare the status of the migration in a migrations/state/pathauto.migrate_drupal.yml file.
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 |
|---|---|---|---|
| #2 | 3189713-2--declare-upgrade-status.patch | 631 bytes | mparker17 |
Comments
Comment #2
mparker17Here's a patch. Reviews welcome.
Comment #3
mparker17To illustrate what the unpatched behavior looks like, here's a screenshot which includes Pathauto (courtesy of @PROMES in this issue for Redirect):
Comment #4
wim leersBut the pathauto migration is not yet finished unfortunately.
See #3179835: Migrate forum pattern to taxonomy term forums if forum is enabled on the source site and #3179865: [PP-1] Derive pathauto pattern migrations to solve inaccurate pattern migration dependencies.
Comment #5
mparker17@Wim Leers, understood.
In that case, I daresay it would still be useful to site builders if we could (in the short term) explicitly mark that the migration is not finished yet in 8.x-1.x...
... instead of leaving it ambiguous (i.e.: so someone doesn't mistake it for being finished, like I did).
And in the long term, modify the migration state to "finished" once 3179865 and 3179835 have landed. (I could either re-roll this issue, or close it and include the
-not_finished: +finished:change in #3179865: [PP-1] Derive pathauto pattern migrations to solve inaccurate pattern migration dependencies (which looks like it will be the last of those two issues to be committed))Comment #6
wim leers#5++
Comment #7
ressaI was a little surprised to see Pathauto listed under "Modules that will not be upgraded" on Migrate Drupal's "What will be upgraded?" page ... it would be fantastic if it got an upgrade path, considering that the majority of Drupal 7 sites are probably using Pathauto.
Comment #8
ressaActually, the patterns do get migrated under /admin/config/search/path/patterns, so it works even, though it says it doesn't :-)
Comment #9
mparker17I am happy to report that I was able to upgrade my
drupal-7.99site runningpathauto-7.x-1.3to adrupal-10.2.1site runningpathauto-8.x-1.12; and that the migration code already in the D10 version of the module was able to migrate my Pathauto patterns. 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.