Problem/Motivation

The original report of this issue mentioned that all links referencing upgrade are pointing to Drupal 7 documentation.
It seems it's no longer the case, but some of them are still not correct though.

Here is a list of links that probably should be changed:

1) https://git.drupalcode.org/project/drupal/-/blob/9.2.x/core/includes/upd...

// Display a requirements error if the user somehow has a schema version
// from the previous Drupal major version.
if ($schema_version < \Drupal::CORE_MINIMUM_SCHEMA_VERSION) {
    $ret[$module]['warning'] = '<em>' . $module . '</em> module cannot be updated. Its schema version is ' . $schema_version . ', which is from an earlier major release of Drupal. You will need to <a href="https://www.drupal.org/node/2127611">migrate the data for this module</a> instead.';
    continue;
}

Current link points to https://www.drupal.org/node/2127611, which is Migrate API overview. I think it might be confusing for someone who is not familiar with the migration process yet. Probably a link to Upgrading Drupal (https://www.drupal.org/docs/upgrading-drupal) is a better fit.

xjm asked for this change in 2168011#138

2) https://git.drupalcode.org/project/drupal/-/blob/9.2.x/core/modules/syst...

$build['info_header'] = [
      '#markup' => '<p>' . $this->t('Use this utility to update your database whenever a new release of Drupal or a module is installed.') . '</p><p>' . $this->t('For more detailed information, see the <a href="https://www.drupal.org/upgrade">upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.') . '</p>',
];

Current link points to https://www.drupal.org/upgrade, which is a mix of Update and Upgrade processes and is more about Drupal 7.
Considering this is about Drupal update (not upgrade), the link should be pointing to: https://www.drupal.org/docs/updating-drupal

3) https://git.drupalcode.org/project/drupal/-/blob/9.2.x/core/modules/upda...

return [
      'no-core' => t('Automatic updating of Drupal core is not supported. See the <a href=":upgrade-guide">upgrade guide</a> for information on how to update Drupal core manually.', [':upgrade-guide' => 'https://www.drupal.org/upgrade']),
];

This link should be also about the update process, and especially about updating Drupal core. The recommended URL is https://www.drupal.org/docs/updating-drupal

Proposed resolution

Update mentioned links with provided URLs. In some cases, link titles should be changed as well.

Remaining tasks

Attach a patch, review, commit.

User interface changes

Some update/upgrade links are changed for more appropriate versions.

API changes

-

Data model changes

-

Release notes snippet

-

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cebasqueira created an issue. See original summary.

cebasqueira’s picture

Assigned: cebasqueira » Unassigned
Status: Active » Needs review
FileSize
4 KB
faline’s picture

Status: Needs review » Needs work

Maybe the follow links should be changed also:

core/modules/migrate_drupal_ui/migrate_drupal_ui.module

core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeForm.php

drupal/core/UPDATE.txt

What dou you think @cebasqueira?

cebasqueira’s picture

Status: Needs work » Needs review

@faline, the migrate pages are correct and backing-up-the-db documentation is not disponible today for Drupal 8 documentation!

faline’s picture

Status: Needs review » Reviewed & tested by the community

So for other links this issue is ok.

xjm’s picture

Status: Reviewed & tested by the community » Needs work

This patch is not correct. The first line of https://www.drupal.org/docs/8/upgrade says:

This guide explains how to upgrade your existing Drupal 6 or 7 site to Drupal 8.

At least some of these links are supposed to tell the user how to perform minor updates using update.php, which is not the same thing.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

quietone’s picture

Title: Upgrade links point to D7 documentations » Upgrade links point to D7 documentation
Status: Needs work » Needs review
Issue tags: +Bug Smash Initiative
FileSize
2.3 KB
3.39 KB

Wow, there are still D7 links around.

Updated the patch. I don't see the need to run tests until there is agreement on the text and link changes.

Abhijith S’s picture

FileSize
17.98 KB

Applied patch #13 and the documentation links are changed based on relevance.
after

RTBC +1

Matroskeen’s picture

Version: 8.9.x-dev » 9.3.x-dev
Issue summary: View changes
Status: Needs review » Needs work

I accidentally came across this issue and decided to do a review 😊
I have updated the issue summary, were added my suggestions for new links.

Matroskeen’s picture

quietone’s picture

The suggestion for 1) is a page that has information for Upgrading Drupal 7, so I think we need to find a better page. There is nothing there for updating a module in Drupal 9.

I did the other two. Not sure the interdiff is useful but added it anyway.

@Abhijith S, Thank you for your interest in this issue. Adding screenshots that a patch applied does not advance the issue, that information is already available from the testing results. The contributor guide on Drupal.org has information about how to contribute, particularly the process to Review a patch or merge request. There are also clear guidelines for How is credit granted for Drupal core issues..

Edit: s/Add/Adding/

quietone’s picture

Status: Needs work » Needs review
quietone’s picture

FileSize
1.05 KB
3.37 KB

Matroskeen pinged me in #bugsmash about this, and on rereading the first suggested change, I find that I didn't read it properly early. Adding that change now.

Matroskeen’s picture

Status: Needs review » Needs work

For the 1) link I think the title should be "Upgrading Drupal guide" because the page title is "Upgrading Drupal".
Otherwise, it looks good, thanks!

quietone’s picture

Status: Needs work » Needs review
FileSize
3.37 KB

Sorry about that. Silly mistake.
Made the requested change and also changed 2 and 3 so the case of the text matches the title on the page.

No interdiff because all three lines were changed.

Matroskeen’s picture

Status: Needs review » Reviewed & tested by the community

The last patch addresses the initial report and aligns with comment #6 from @xjm.
It also looks good to me, so I will gently try moving it to RTBC 😇

@quietone Thanks!

Matroskeen’s picture

It occurred to me that we're changing a translatable text, which might affect the existing translations. What is the proper way to deal with it?

edit:
I asked in Slack, and received the following answer from @jhodgdon:

Yes, those changes only get into the next stable .0 release, like 9.2.0, 9.3.0, etc. Unless there is something very very wrong, in which case it could come out in 9.2.3 etc. But as a patch contributor, you do not need to worry about it.
And yes it will break existing translations.

Leaving it RTBC :)

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed 3f8a67e and pushed to 9.3.x. Thanks!

  • catch committed 3f8a67e on 9.3.x
    Issue #2830352 by quietone, cebasqueira, Matroskeen, xjm: Upgrade links...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.