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
Comment #2
dpiCredit to @larowlan for this.
Comment #3
dpiAn 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.
Comment #7
spokjeThe
halmodule has moved out of Drupal Core and into a Contrib Module.Moving this issue to the Contrib Module queue.