Core 10.3.x breaks the "Enabled projects with versions and available update info" endpoint.

Created on 9 August 2024, 4 months ago

Problem/Motivation

Changes to Drupal core in 10.3 break the API endpoint that returns the modules/projects status.

The issue that resulted in the change is https://www.drupal.org/project/drupal/issues/3112962 🐛 Core compatibility messages on contrib available updates should consider supported branches Fixed

The code change/commit is here https://git.drupalcode.org/project/drupal/-/commit/97bb6c83a32a3346a69f518e72a9339cc23bc292

The ProjectCoreCompatibility class has had an extra parameter added to its constructor.

Steps to reproduce

Install Site Guardian API module on any 10.3.x, enable the module and then visit "admin/config/development/site_guardian/endpoints" and click the "Enabled projects with versions and available update info" link. The call will fail.

Proposed resolution

Update the Site Guardian API call to mirror the way core now calls ProjectCoreCompatibility by adding the supported_branches variable.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom arcaic Milton Keynes

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024