Problem/Motivation

HAL link type cache is made of entity type and bundle data. Currently, when the cache is built and cached, the cache is tagged with 'entity_types'. However the 'entity_bundles' tag should also be added since the cache is affected by bundle information.

This solves issues when changing HAL data, for example during config sync. Where the cache is written to, then a bundle is modifed.

Proposed resolution

Add the 'entity_bundles' cache tag when writing hal:links:types cache item in \Drupal\hal\LinkManager\TypeLinkManager::writeCache.

Remaining tasks

Do it.

User interface changes

Nil

API changes

Nil

Data model changes

Nil

Release notes snippet

N/A

Comments

dpi created an issue. See original summary.

dpi’s picture

Credit to @larowlan for this.

dpi’s picture

An actual bug is theoretical at this point. This issue was considered a suspect to problems related to using Default Content 1.x in a from scratch site build and config sync setup.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

spokje’s picture

Project: Drupal core » Hypermedia Application Language (HAL)
Version: 9.4.x-dev » 1.0.x-dev
Component: hal.module » Code

The hal module has moved out of Drupal Core and into a Contrib Module.
Moving this issue to the Contrib Module queue.