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! 😊

  • dydave committed 3d550304 on 3.x
    Issue #3536457 by dydave: Provide extra links for the Automatic Updates...
dydave’s picture

Status: Needs review » Fixed

This issue has been pending review and testing for more than 3 months now....

After doing another quick round of tests locally and reviewing the code changes, since all the tests and jobs were still passing 🟢, I went ahead and merged the changes above at #4 🥳

Additional changes: Added quick fixes to support PHPUNIT tests for Drupal 11.4 (next major).

At this point, all the work to be carried in this issue should have been completed, thus, marking it as Fixed for now. 👍

Feel free to let us know if you have any questions or concerns on any of the recent code changes or the module in general, we would surely be glad to help.
Thanks in advance for your testing feedback! 🙏

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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