Problem/Motivation

I expect the Available Updates report to show all modules. But a particular patched module is missing from the report.

Steps to reproduce

1. Go to simplytest.me
2. For project, type redirect
3. Choose redirect from the pop-up
4. Choose 8.x-1.x-dev as the version
5. Click Advanced options
6. Choose Drupal 11.1.0 as the core version
7. Enter https://git.drupalcode.org/project/redirect/-/merge_requests/127.patch as the patch
8. Click Launch Sandbox
9. Wait for the sandbox creation process to complete and leave you on the welcome page
10. Click log in
11. Log in to site
12. Click Manage, then Extend
13. Type redirect in the filter field

Expected and actual results: Redirect module is checked.

14. Click Reports it the admin menu
15. Click Available updates

Expected result: Available update status is shown for Drupal Core and the Redirect module. If the module does not provide version information in info.yaml, then show "Version number not provided" as the version number. If because of the version number not being provided, the report is unable to determine whether the module is up to date, replace the "Up to date/Update available" message with "Unable to determine".

Actual result: Available update status is shown for Drupal Core. The Redirect module is not listed.

Screenshot of simplytest.me request:
screen shot showing simplytest.me request as described in steps 1-7

Screenshot of filtered Extend screen:
Screenshot showing filtered Extend screen showing Redirect module is enabled

Screenshot of Available Updates report:
Screenshot showing Drupal Core listed but not the Redirect module

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

charles belov created an issue. See original summary.

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Possible duplicate

This is the expected behavior of the update module when there is no version set in the info.yaml file. If you select a branch release like that, Git will clone the project repo rather than download a versioned compressed archive.

This isn't a Drupal Core bug but rather more like #3213471: Requiring dev releases with Composer clones the repo, which is different than downloading a dev release archive. Can you confirm?

charles belov’s picture

Issue summary: View changes

I am QA, not a developer, so I am not able to comment on the relevance of the other issue.

I disagree that just not showing the module is an appropriate result of the version being missing from the info.yaml file for the module. I believe the correct behavior would be to show the module in the report; wherever version info was missing, the report would show "Missing" rather than a version number.

Just not showing the module at all makes the report look broken. In a long report, it could lead to incorrect assumptions about the current website.

Updating the issue description to show a new expected result.

charles belov’s picture

Issue summary: View changes
charles belov’s picture

Issue summary: View changes
quietone’s picture

Version: 11.1.x-dev » 11.x-dev

Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies.

smustgrave’s picture

Will give one more bump but believe this can be closed as working as designed.

dww’s picture

Technically, I believe the problem here is the lack of a project info key, not version. If that assumption is true, #2559313: Parse composer.json for the project name for update module would fix it.

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)