Never show a "Not supported!" version as "Recommended"

Created on 10 August 2021, over 3 years ago
Updated 1 May 2024, 8 months ago

Problem/Motivation

There was a minor foul-up with the Modal project, when a maintainer pushed the 4.1.x branch to the Drupal.or git repo, then regretted, and wanted to continue with the 4.0.x as the supported branch. So he unticked "Supported" for the 4.1.x branch. You can see the original issue here: #3226959: Remove wrong release (or remove by default on composer require) .

However, if somebody by accident installed the wrong version, it appeared like this on the "Available updates" page.

It is correctly listed as "Not supported!". But is also listed as the "Recommended version" – which is not right.

I expected to see the latest supported version listed as recommended.

Steps to reproduce

  1. Just push a minor release that is one step ahead of the release you want to support to the Drupal.org repo.
  2. Mark it as unsupported.
  3. Install and enable it.
  4. Visit the "Available updates" page on your site.

You should see something similar to the screenshot above.

Proposed resolution

If support status of the project says that the installed version is not supported, never suggest a version from the same branch/series as the "Recommended version".

Instead, say: "For recommended version, please see the project page". Or, if it is not too much work, pull the data that indicates what the the real latest recommended version is from the project metadata on Drupal.org.

Remaining tasks

Do it.
Add before/after screenshot

User interface changes

There screenshots are from the test.

Before

After

API changes

None.

Data model changes

None.

Release notes snippet

Unsupported versions should not be recommended on the "Available updates" page.

🐛 Bug report
Status

Fixed

Version

10.3

Component
Update 

Last updated 6 days ago

  • Maintained by
  • 🇺🇸United States @tedbow
  • 🇺🇸United States @dww
Created by

🇳🇴Norway gisle Norway

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024