Skip to content

28 · Batch operations are de-duplicated across all recipes – identical inserted steps are silently dropped

Project Drupal CMS (drupal_cms_installer)
Component Installer
Category Task
Priority Minor
Status Reported upstream as #3591483

Problem/Motivation

drupal_cms_installer_apply_recipes() drops every operation that is already in the batch ("Only do each recipe's batch operations once"). The comparison is made against all operations, including those of earlier recipes. Anyone adding operations (e.g. a localisation step after each recipe) must make them unique, otherwise they are silently skipped.

Proposed resolution

Compare per recipe, or document the behaviour.

Additional information

Related: #3590051 Avoid repeating installer batch operations, about how the installer tracks finished operations.

Copy to drupal.org

Issue title:

Batch operations are de-duplicated across all recipes – identical inserted steps are silently dropped

Issue summary (paste it into the "Issue summary" field; project, component, category and priority are in the table above):

<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p><code>drupal_cms_installer_apply_recipes()</code> drops every operation that is already in the batch ("Only do each recipe's batch operations once"). The comparison is made against <strong>all</strong> operations, including those of earlier recipes. Anyone adding operations (e.g. a localisation step after each recipe) must make them unique, otherwise they are silently skipped.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Compare per recipe, or document the behaviour.</p>
<h3>Additional information</h3>
<p>Related: <a href="https://git.drupalcode.org/project/drupal_cms/-/work_items/3590051">#3590051 Avoid repeating installer batch operations</a>, about how the installer tracks finished operations.</p>