[PP-1] Pave the path for contrib updates: automatically limit the staged updates to those modules without DB updates

Created on 21 April 2023, over 1 year ago
Updated 3 May 2023, over 1 year ago

Problem/Motivation

We're about to start alpha testing with contrib modules β€” see πŸ“Œ Looking for Alpha tester for future functionality Active , which will be made possible by πŸ“Œ [PP-1] Implement experimental cron updates for contrib in automatic_updates_extensions Postponed .

The current update logic is all/nothing. It tries to stage all updates, and then executes all of them. Which has been fine for core, since then only a single package is ever staged for being installed. But with contrib, that changes.

What if there are 5 module updates available and only 1 of them has DB updates? That would then trigger \Drupal\automatic_updates\Validator\StagedDatabaseUpdateValidator and hence ZERO updates would be installed!

Steps to reproduce

  1. Trigger an unattended update >=2 contrib modules, with 1 module update containing DB updates.
  2. Observe that the update fails

Proposed resolution

AU should be smart enough to then track that, retry staging without that one module, and at least update the other 4.

Remaining tasks

Figure out how to do this.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

πŸ“Œ Task
Status

Postponed

Version

3.0

Component

Automatic Updates Extensions

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024