Problem/Motivation

This ticket is a follow-up to #3532010: D11.2: update.theme_update and update.module_update routes no more exist where support for the routes of the Core Update module was dropped for versions above 11.2.

In other words: As of Drupal 11.2.x the Core Update module does not provide update routes for modules or themes, see change record:
The UI for updating modules and themes via the admin interface has been removed

The change record also points out these routes and features are now provided by the contrib module Automatic Updates.

Proposed resolution

Looking closer at the module's code, it would seem the module does provide similar routes to update, list or install themes or modules, see:
https://git.drupalcode.org/project/automatic_updates/-/blob/4.x/automati...
 

The idea of this ticket is to provide in the Admin Toolbar Tools module an equivalent to the Core Update module routes that were dropped.

Additionally, we could try supporting more routes of the module, see also:
https://git.drupalcode.org/project/automatic_updates/-/blob/4.x/automati...

Implementation:
The admin_toolbar module already has a lot of code to provide integration with other popular contrib modules, such as Project Browser or Devel.
So there should not be any problem adding another block of code to provide extra links for the Automatic Updates module.

In terms of code changes, see the merge request from related issue MR !162 for an example of the implementation of the routes of the Core Update module.

Any feedback, suggestions or comments would be greatly appreciated.
Thanks in advance!

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dydave created an issue. See original summary.

dydave’s picture

Status: Active » Needs review

Quick follow-up on this issue:

Created initial merge request !201 above at #2 which should cover all the routes and links currently added by the Automatic Updates module:

Added 3 new 'Update' menu links, based on the three local tasks provided by the Automatic Updates module, see:
https://git.drupalcode.org/project/automatic_updates/-/blob/4.x/automati...

1 - Modules update route, under 'Extend > Update'.
2 - Themes update route, under 'Appearance > Update'.
3 - General update status route, under 'Reports > Available updates > Update'.

Added new Functional Tests class to check for all the added links and updated the Gitlab CI configuration to require the Automatic Updates module in its composer job, so the module could be installed for the Tests.

Since all the jobs and tests are still passing 🟢, moving issue to Needs review for now, as an attempt to get more testing feedback and code reviews.

Feel free to let us know if you have any questions or concerns on any of the suggested code changes or this issue in general, we would surely be happy to help.
Thanks in advance! 😊