Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
migration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Apr 2016 at 09:33 UTC
Updated:
23 Sep 2017 at 15:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ifrikSorry this should have been for 8.2
Comment #3
ekes commentedSuggested text for uses section:
For upgrading from Drupal 6 and 7 to Drupal 8.
The module will present you with a list of available upgrade paths depending on the Drupal 8 modules you have enabled. Once you have verified that you have enabled all of the modules you need in your Drupal 8 site you can run the migration which will import the configuration and then import content into the new structure.
If a module does not have an upgrade path yet and one later becomes available you can re-run the migraiton when that module is present to bring those items into an existing Drupal 8 site.
Should you need control over which migrations run or wish to do only a partial migration you may want to consider an alternative module to run the migrations such as Migrate Tools.
Comment #5
quietone commented@ekes,thanks. Here are some suggestions. Is the final paragraph needed? Does help usually refer people to contrib?
Upgrading from Drupal 6 or Drupal 7 to Drupal 8.
The Migrate Drupal UI module lists all available upgrade paths which depends on the Drupal 8 modules installed on this website. Once you have verified that all of the modules you need in your website are installed you can run the migration which will import the configuration and content from the source site into this site.
Upgrading incrementally
An upgrade can be re-run to import data changed since the last upgrade.
If a module does not have an upgrade path yet and one later becomes available you can re-run the upgrade when that module is present to bring those items into an existing Drupal 8 site.
Rolling back an upgrade
Selecting the rollback option will remove all the configuration and content imported from the source Drupal 6 or Drupal 7 site.
Needs a title
Should you need control over which migrations run or wish to do only a partial migration you may want to consider an alternative module to run the migrations such as Migrate Tools.
Comment #6
ifrikComment #7
prashant.cMaking some minor code and text changes, followed Help text standards but couldn't find anything major.
Comment #8
heddnThis is about adding text to the UI module. Please provide a patch for that module, not migrate.module
Comment #9
quietone commentedLet's gather UX issues in one META.
Comment #10
quietone commentedAn attempt to improve the help text.
Comment #11
quietone commentedComment #12
ifrikComment #13
ifrikThanks quietone,
this needs a bit more work.
A small thing is to follow the Help text standard on https://www.drupal.org/node/632280: Starting the Uses with verbs.
In the about section: it's not really "one-click". More like a simple user interface to provide the database credentials and file system of an existing site to perform an upgrade.
Then maybe we can have three Uses:
Preparing the site: You also need to install all desired modules on this site before performing the upgrade. For example, if the source site used the book module install the book module on this site.
Question: Do the modules need to be installed or enabled? If it's installing then we should use a contrib module as example, because all core modules are installed, but not enabled.
Performing the upgrade
Something like: On /upgrade, you are guided through performing the upgrade in several steps. You need to enter the database of the existing Drupal site, and you can also enter the path to the existing files directory. The next page then provides an overview over which upgrade paths are available or missing, before you can then proceed to perform the upgrade. Afterwards a message is displayed about the number of upgrade tasks that were successful or failed.
Reviewing the upgrade log
Something like: You can review the update log in the recent log messages (link to /admin/reports/dblog) by clicking on the provided link, or by filtering the log messages for the type migrate_drupal_ui.
Note: The database log module is required by the Migrate UI module, so we don't need anything like "If enabled, then...."
Rolling back an upgrade
Rollbacks and incremental migrations are not yet supported through the user interface.
Comment #14
ifrikI've just added my suggestions myself during Ironcamp sprint.
The help text now describes the current state for 8.3 but if there are any changes then of course it needs changing further.
Comment #15
quietone commented@ifrik, thx. This looks much better now.
Should be 'Uses' ?
I think this should be two sections, one for rolling back and one for incremental.
Prefer short array syntax.
Comment #16
quietone commentedDecided to make the patch with the changes I suggested above.
Comment #17
maxocub commentedAssigning for review.
Comment #18
ifrikHi Quintone,
the longer array syntax is the one given in the Help text standards because help texts are also/often written by people with less php knowledge, so that they won't end up with problems if they need to add a second link.
So it's less a question of personal preference, and more of defaults.
Separating the rolling back and incremental changes is a good idea, because it makes quite clear what users can expect and what not.
Hi Maxocub,
you don't really need to assign an issue to you to review it. Adding a comment like you did is much more useful because then people know what you are planning to do. Thanks for that.
Comment #19
maxocub commentedMost of the recent modules (the experimental ones) use the short array syntax for their help texts, so I think it's OK to use it here too. Maybe the standard page needs an update?
English is not my first language, so I might be wrong, but I think some improvements can be made in the 'Performing the upgrade' section which sounds a bit clumsy to my ears. I'm gonna keep thinking about this because I don't have a better wording for it yet.
We could link to the already filtered log page by using the 'migrate_drupal_ui.log' route instead of 'dblog.overview'.
Since we are also thinking about adding links for the 'Upgrade' and 'Upgrade Log' pages in #2701795: Provide menu links for Drupal Upgrade UI pages, we could also mention them here.
I would use the plural 'Incremental upgrades' in both places.
This
<dl>tag is not closed at the end.Comment #20
ifrikHi maxocub,
the experimental modules don't follow the Help text Standards on a number of points - that's why we have these issues. Standards should be changed as a conscious decision, and not because somebody doesn't follow them.
Comment #21
maxocub commentedOK, I see, let's use the long syntax then.
Comment #23
prash_98 commentedHave rewritten the issue. Please review it.
Comment #24
ekes commentedI'm not sure what you were trying to do there prash_98, but the patch you posted only changes a space, and then doesn't keep the content of the previous patch.
Also you don't need to assign the issue to yourself, in fact in this case the opposite, as you want some one else to review.
My 2c worth on the array() or [] syntax while I'm here:
I think the documentation standard wants updating to use [], as that is what is used in the code everywhere else.
Is there an issue for that?
Comment #25
prash_98 commentedSorry for assigning that to myself.
Comment #26
prash_98 commentedComment #28
quietone commentedI've itemized the issues in #19 so I could keep track of them.
And here is what has been done to address those.
Comment #29
quietone commentedComment #30
heddnLanguage seems spot on. I didn't review this from the perspective of the help standards. I believe there are some. But I like where this stands now.
Comment #31
heddnThe help text looks fine. No other comments from anyone else. Let's get this in.
Comment #32
xjmThis updated documentation looks great; just a few more small things.
I checked and the only other places we do a route
toString()inhook_help()(only a handful) are where we actually need other features ofUrlthan just plain URL generation from route. So actually, it is preferable to use\Drupal::url()here for readability. Somewhere there is an issue about which of the 13,000 ways of generating links are intended to be deprecated and not.Capitalization for module names should be like: "the Book module".
Maybe we should put this in an
<ol>for readability?Thanks everyone!
Comment #33
xjmAh, from #2491981: There are too many ways to generate URLs and links:
Comment #34
quietone commentedAll fixed. I did think about using
<ol>but I have a tendency to go overboard compartmentalizing stuff, so I didn't.Now that there are steps, I think the wording may need to be changed. And for step #2, how do we say that at that point the can pause and enable/disable modules or cancel?
Comment #35
heddnThe screenshot really helped. Some moderate nits.
Everything else looked fine.
Comment #36
gaurav.kapoor commentedMinor Fixes.
Comment #37
heddnInterdiff?
Comment #38
gaurav.kapoor commentedComment #39
heddnThis should move up as a bulleted item in the doing the upgrade section.
The link for the logs should point to 'migrate_drupal_ui.log'.
Comment #40
gaurav.kapoor commentedComment #41
heddnIf it isn't too much, can I get one last screenshot of what it looks like? I think this is ready to go.
Comment #42
gaurav.kapoor commentedIt's the way you suggested , "Lastly ... " as 3rd point in li and correct log link.
Comment #43
quietone commentedAnd a screenshot.
Comment #44
heddnLooks good.
Comment #45
xjmThanks, this looks great! Thanks also for the screenshot.
There's one small new thing that has been introduced since #28 which is a bit off. I was going to fix it on commit, until I realized I didn't have enough information to do so:
The word "log" should not be linked here, as the link does not provide enough information out of context for accessibility. Instead, it should be linked in the following paragraph. The user also needs to understand how this link is different from the "Recent log messages" page (which is a totally different route). What does the migrate_drupal_ui.log route link to?
Also, the word "Log" should not be capitalized here as it's just a noun, not the proper name of something.
Updating the proposed issue credit for reviewers. Thanks everyone!
Comment #46
quietone commentedFixes for #45.
And a screenshot of the changed lines only.
Comment #47
heddnAnd back to rtbc.
Comment #50
xjmAlright, that works for me!
This is a UI and string change, but since it is for an alpha experimental module, it's backportable to 8.3.x. Thanks everyone for working on this; it is a really great improvement.
Comment #52
Anonymous (not verified) commentedThis one doesn't explain the migration process. "Enable all modules ...." , "Credentials of what...."?
Comment #53
heddn@JohnOku open a follow-up and post a patch?
Comment #54
Anonymous (not verified) commentedI thought this one will be re opened.
Comment #55
ifrik@johnOku
This module only provides the User Interface. The migration itself is done by other modules, and therefore an explanation on how migration works does not belong with this module.
Comment #56
maxocub commented