-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address feedback on the "Upgrading from Drupal 7" documentation #126
Comments
I have been tripped by this when attempting a test upgrade (see discussion in Zulip for details/backstory: https://backdrop.zulipchat.com/#narrow/stream/218635-Backdrop/topic/D7.20upgrades/near/233986096) I started with a blank Backdrop setup, but without actually running the installer. So this bit in the documentation:
I translated as:
After troubleshooting this, and discussing it in Zulip, @BWPanda provided the key bit I was missing:
🤦🏼 |
Here's what I've done to improve things:
|
The main sections in https://docs.backdropcms.org/documentation/upgrading-from-drupal-7-steps are currently as follows:
To me, it seems that the first point in step 3 does not belong, and should be separate. So it should be:
@BWPanda and @bobchristenson what do you think? ... @jenlampton? ... @stpaultim? ...@olafgrabienski? ...others? |
Sounds good |
No install is necessary if you are upgrading... Maybe my objection is to the word "Install", since that means running the install script (and populating a database) and none of that happens in an upgrade. Maybe "Set up" Is better? |
@jenlampton but that specific documentation states this (in step 3):
|
Umm. It obviously needs that though. @jenlampton please see the discussion in https://backdrop.zulipchat.com/#narrow/stream/218635-Backdrop/topic/D7.20upgrades/near/233986096 where I was running into weird errors, until @BWPanda mentioned:
We need to agree on which of the two is valid, and then fix our documentation and installer/upgrade logic 🤔 |
Upgrading from Drupal to Backdrop is exactly the same as upgrading from Drupal 5 to 6, and Drupal 6 to 7. In fact, it's the exact same process as updating Backdrop core now. Delete the old code, add the new code, and run the update script. A fresh install of the destination version is never necessary.
Yes, this is correct. When doing a Backdrop core update, you usually do that on the same site -- so you don't have two copies. When upgrading from Drupal to Backdrop, the "Extra step" is to make a second copy of the Drupal 7 site, so you can refer to that later for comparison.
Ahh. I think we should address the weird errors. It's definitely not because you didn't have a fresh install of Backdrop before you started -- that would cause all kinds of other issues. All the config files that are needed will be created when you run the update. The config needs to match the database exactly. There shouldn't be any config that wasn't generated from the upgrade, or it won't be an exact match. |
I've updated the documentation on upgrading from Drupal 7 to more clearly indicate that installing is not needed in the "Set up" process.
I believe I also addressed @bobchristenson's question #2, but for #1 I think we should add a more detailed page with information about each Backdrop core module that was removed so that people will have an easier time with this. I'm starting on that now. |
Okay, here's a more detailed page for what to do if you are using Drupal 7 core modules that have been removed from Backdrop: https://docs.backdropcms.org/documentation/upgrading-drupal-7-modules-that-have-been-removed-from-core. |
I've also moved the "Categorize D7 modules" section from @BWPanda's blog post to the "Research" page: https://docs.backdropcms.org/documentation/step-1-research. I think that addresses all the requests in this issue? |
In reading through the discussion above (before today's comments), the current Upgrading documentation, and BWPanda's checklist, I'd come to some suggestions about the structure of the book pages in that section and ideas for new pages. First, structure: Old:
Suggested changes:
New:
I envisioned the new Upgrade Steps page and its sub-pages as being a merge of the existing instructions, BWPanda's checklist, and some additional material. Turns out the "Planning" page seems to be roughly equivalent to the new Research page just added. (GMTA) In addition to merging the existing instructions with BWPanda's, I've also added some bits that were important in my own experience. I"ve taken the liberty of creating pages for the three new pages on the docs site, but haven't put them in the menu (so haven't changed what people see as the current documentation). Would folks take a look and let me know (a) if you agree with the overall menu reordering, (b) if you like the three new pages? If you like them, I can merge them with today's additions. If not, they're deletable. |
@bugfolder I think we've been doing the same thing this morning. I've already flattened the Upgrading section one level. I think I prefer your structure though, with "converting" moving one more step closer to the top. I've also separated the "Upgrade steps" page into three separate pages (Research / Prep Drupal site / Upgrade) but again, I prefer your terminology :) I'm not done reading through your three new pages, but I'm instantly nervous about the "Upgrade" page starting "Install Backdrop". This is an area that seems to be confusing everyone already, since backdrop does NOT need to be installed before updating. I read those steps in @BWPanda's blog post, and it makes sense there since he both installed, then later deleted everything that was created during the install. But I don't think we should include it in our official instructions since it can be confusing. |
Yes, I wrote that before reading your further discussion. I'm in complete agreement that it should be rewritten to make prominent that there's a way of doing the upgrade without needed to do an installation. (I'd wavered on that; the alternative is to just make the changes directly to settings.php.) If you're favorable to these pages as a starting point, I'll merge in your recent additions, and make the 'no need to install" more prominent. |
I did include the exact changes that are needed for to the default I've got a meeting now but can look at the 3 new pages when I get done. |
I did update step 1 of Upgrade. |
This still isn't right, it still says to run the installer under "If you are doing a side-by-side upgrade". There should be no mention of running the installer for either option. Running the installer was something Peter did to make sure that his local enviornment was set up correctly, it has nothing to do with the Backdrop update so doesn't belong in the update instructions. |
Can you take a look at the updated instructions on https://docs.backdropcms.org/documentation/step-3-upgrade-the-drupal-site, and see if it makes more sense now that it's been updated? I spent a lot of time on it this morning. Not only did I clarify that the installer does not need to be run, but I changed the order of the steps so that updating settings.php happens after importing the Drupal database. |
It does make sense (especially the do not install Backdrop ;o)), but there are points that I tried to address in my version that aren't addressed yet. For example, in step 5, there's a 3rd option for the files directory, which is to move them to some other place than those two (e.g., below the webroot), for which there's valid use cases that should at least be acknowledged. Also, that description doesn't allow for the possibility of an in-place upgrade, for which there's valid reasons to do (even if it's not preferred). A few other minor points: the old D7 site doesn't need to be "web-accessible," it could be a local site. The three pages I put together somewhat work together: the different module categorization in Planning are then used in Preparation and Upgrade (as they were in BWPanda's list). So I'd suggest that either your Step 1/Step 2/Step 3 or my Planning/Preparation/Upgrade pages stay together. I am (obviously) biased in favor of mine (except for the wrong bits, of course, which should be changed), but I also suspect that (like Peter's original list) the more detailed discussion might be more helpful to the newbie (which I was not too long ago). Perhaps one of us could merge description from the one into the other. What do you think? (BTW, having a Markdown text format on the docs site would be really nice.) |
The "two options" we mention in step 5 are, are for how to move the files, not where to move them. We only mentioned one possible location -- the one backdrop core uses -- but there's no reason any other location wouldn't also work with these instructions. I've changed the first line of the recommended approach to say
I've been thinking about these two approaches, but I'm not sure we need instructions for both. I think having a single set of instructions will be clearer. Having two sites side-by-side is the same thing as starting with 2 copies of the Drupal 7 site and then do "an in-place upgrade" on the 2nd site (but it skips a few steps on the in-place upgrade, like having the Drupal 7 code there to start). What if we re-phrased the step 1/2/3 instructions to focus on the in-place upgrade instead? We could recommend setting up "a Drupal 7 backup site" rather than focusing on the nuances of the side-by-side set-up.
Hm, I've been writing these docs as though both these sites were local. Can you think of another way to say "You can visit them in your browser"? (that's what I meant by web-accessable... but you're right, that's the wrong word.)
I am hoping that we will end up with a single set of these 3 pages that contains the best from both sets.
I'm most comfortable changing my own words (which is why I've been making edits there), but I do also prefer much of what is in your pages. I have re-worked all the sections from my "Planning" page to match yours, for example. (I've left out the directory structure bit since I believe we've covered that elsewhere in the documentation, and would prefer to link to it rather than have two pages to update if/when we make changes.) I'd appreciate your help in determining what from your pages is still missing from mine, and how to get it all into one set in a way that makes the most sense :)
Yeah, I really loved that from his article! I've incorporated those categories into both my Planning and Preparation pages, but I renamed the categories so they are all "To X", for consistency: I've also tried to address a concern I had about instructing people to uninstall modules labeled Could you give it another read-through? |
Will do, starting now... The main page Upgrading from Drupal just contains links to subsections (which are already visible in the menu block to the right). It would be nice UX if when a user clicked on that page, they immediately were presented with useful information, rather than "oh, I have to click through to another page to get to anything." Perhaps consider moving some (or all?) of the Introduction onto that page? And then, it seems like "Features added to core", "Features removed from core", and "Top 100 D7 modules" are pages one would need in the planning process, so perhaps they could be sub-pages of [Step 1: Planning]? (Yes, I know this is different from what I'd suggested earlier.) On Upgrading from Drupal 7, since step 1's page is now titled "Planning", perhaps the corresponding heading on the page could use the same verb, e.g., instead of "Step 1: Research what will be necessary to upgrade to Backdrop CMS", use "Plan your upgrade to Backdrop CMS." Also, the planning step includes more than just "research": it also involves decision-making on things like file organization, where config will be live (and be called), version control, etc. I'm now on Step 1: Planning, and like it very much. (There's something weird going on with the hyperlink to Will continue review in subsequent comments. |
On Step 2: Preparation, it would be nice to have a little overview/big-picture explanation at the top of the page, to help the user understand "what are all these steps trying to accomplish?" So, perhaps add something like the following:
Step 4: perhaps the title should be "Disable and uninstall (some) core modules" (like steps 5 & 6)? The collapsing of the different categories into steps 5 and 6 is very nice: clearer and more streamlined that what I'd had. Step 7: this saving of the Views is an important step that's easy to miss (and beginners might be entirely unaware of the possibility of Views in code). Because it's an easy thing to accomplish in drush, I'd like to suggest including here the drush command to do this so people can just copy paste (assuming they have drush, of course):
Do you want to add a comment at the bottom about the scriptability, or just assume people know that? I'd said:
|
On Step 3: Upgrade: Instead of "web-accessible", how about "browser-accessible"? In step 2, "create a new empty database", this is assuming a "side-by-side" (versus "in-place") upgrade. Your earlier comments suggested we describe only one for simplicity, which makes good sense. I wonder, though, if there might be a place somewhere for a brief comment about how things would differ for an "in-place" upgrade, like: If you are doing an in-place upgrade, the process is mostly the same, with these changes:
Speaking of step 7, there may be one more thing that needs to be done to In the last section, "You're done! Now test everything", I think the odds are good that for a lot of developers, they're not necessarily done; there's still the modules that were in the "To port" category. While some of those could be ported using a vanilla Backdrop site as the testbed, for many, it's going to be the case that they need their mostly-upgraded site to be used as the testbed for the remaining porting. It would be nice to have some discussion of this at the end of this page; that also then provides a nice segue into the next section, "Converting Drupal Code." |
Current status:
Three pages as separated out from the original upgrade instructions:
Three pages based on @BWPanda's blog post:
Original issue:
https://docs.backdropcms.org/documentation/upgrading-from-drupal-7-steps
Feedback in Zulip:
@bobchristenson:
@BWPanda
@bobchristenson
The text was updated successfully, but these errors were encountered: