Attemtping to load group relationships by entity creates a ConfigWrapper for ungrouped entities

Created on 28 May 2025, 10 days ago

Problem/Motivation

When we call GroupRelationshipStorage's ::loadByEntity() or ::loadByEntityAndGroup() methods for a config entity, we ask the ConfigWrapperStorage for a wrapper without setting the $create_if_missing flag to FALSE.

This means we will create and save a wrapper for ungrouped entities that we know won't return any results and then run a query against this wrapper's ID. We can optimize this for better performance.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024