Problem/Motivation

We special cased workspaces module in system_requirements() for 8.8 updates being removed. This is irrelevant for the 9 to 10 update.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

catch created an issue. See original summary.

catch’s picture

catch’s picture

Title: Remove workspaces special casing from system_requirements() » Remove workspaces special casing from system_requirements() and fix versions/docs
Category: Task » Bug report
Priority: Normal » Major
Issue tags: +Bug Smash Initiative
StatusFileSize
new1.72 KB

Error message is actually wrong now so switching to a bug.

The last submitted patch, 2: 3290808.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 3: 3290808.patch, failed testing. View results

spokje’s picture

StatusFileSize
new2.99 KB
new1.08 KB

Now with extra less test failures.

spokje’s picture

Status: Needs work » Needs review
lendude’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, slack feedback was addressed in #3 ;)

longwave’s picture

+++ b/core/modules/system/system.install
@@ -1368,18 +1368,16 @@ function (callable $hook, string $module) use (&$module_list, $update_registry,
+          '@required_min_version' => '9.3.0',

Should this be 9.4.0 given #3290810: Remove updates added prior to 9.4.0 (9.4.4 for ckeditor) and add 9.4.0 database dumps?

spokje’s picture

Should this be 9.4.0 given #3290810: Remove updates added prior to 9.4.0?

Valid point, but shouldn't that be handled in #3290810: Remove updates added prior to 9.4.0 (9.4.4 for ckeditor) and add 9.4.0 database dumps?

longwave’s picture

Ahh I forgot we did #3261486: Remove core updates added prior to 9.3.0 and adjust test coverage already, I guess let's just make a note over there to update system_requirements() as well.

longwave’s picture

Although, is this going to work, given that system_update_last_removed is still set to 8901, so how will system module appear in the updates list if someone tries to upgrade from e.g. 9.0.0?

longwave’s picture

Status: Reviewed & tested by the community » Needs work

I think the test needs updating:

    $update_registry->setInstalledVersion('system', 8804);

This is still testing an update from 8.8.

catch’s picture

Although, is this going to work, given that system_update_last_removed is still set to 8901, so how will system module appear in the updates list if someone tries to upgrade from e.g. 9.0.0?

I think this is an entirely new problem we've never had before. Not sure what to do about that... We might need to use user module which has user_update_9301(). Will update #3290810: Remove updates added prior to 9.4.0 (9.4.4 for ckeditor) and add 9.4.0 database dumps.

longwave’s picture

I think user_update_9301 will work here. We are quite lucky that user.module got that update, there is no guarantee we can always detect the difference between minor releases using only required module schema versions.

longwave’s picture

Status: Needs work » Needs review
StatusFileSize
new3.9 KB
new2.39 KB

Addressed #12-#15

longwave’s picture

Should this be a beta blocker?

+++ b/core/modules/system/system.install
@@ -1368,18 +1368,16 @@ function (callable $hook, string $module) use (&$module_list, $update_registry,
         'description' => t('Updating to Drupal @current_major is only supported from Drupal version @required_min_version or higher. If you are trying to update from an older version, first update to the latest version of Drupal @previous_major. (<a href=":url">Drupal 9 upgrade guide</a>)', [

Should the link text here just say "Drupal upgrade guide"?

catch’s picture

Issue tags: +Drupal 10 beta blocker

'Drupal upgrade guide' sounds like a good change to me. Looks RTBC otherwise.

Issue is listed under the metas, but tagging as a blocker too.

longwave’s picture

StatusFileSize
new4.18 KB
new1.16 KB

Updated the link text.

dww’s picture

  1. +++ b/core/modules/system/system.install
    @@ -1368,18 +1368,16 @@ function (callable $hook, string $module) use (&$module_list, $update_registry,
    +          '@current_major' => 10,
    

    Probably out of scope here, but why hard-code this instead of getting it from \Drupal::VERSION?

  2. #15 Makes me quite nervous. "We are quite lucky" is never something you want to read in a thread like this. ;) Can/should we do anything to ensure our luck holds in the future? Should we open a follow-up about this?

Otherwise, the patch all looks good to me, and confirmed that https://www.drupal.org/docs/upgrading-drupal/drupal-8-and-higher is a valid and helpful docs page for this message to link to. So I'd RTBC, other than the ? on needing a follow-up...

longwave’s picture

Issue tags: +Needs followup

Let's open a followup to discuss #20.2, and we could have a small issue to handle #20.1 as well.

dww’s picture

Assigned: Unassigned » dww
Status: Needs review » Needs work

I'll open the follow-ups now, then RTBC this one.

dww’s picture

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 10.0.x, thanks!

  • catch committed 79df51d on 10.0.x
    Issue #3290808 by longwave, catch, Spokje, dww, Lendude: Remove...

Status: Fixed » Closed (fixed)

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