Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
entity system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2025 at 19:54 UTC
Updated:
14 Oct 2025 at 17:54 UTC
Jump to comment: Most recent
Comments
Comment #3
catchTest failure from the new test coverage can be seen here:
https://git.drupalcode.org/issue/drupal-3549380/-/jobs/6707490
This is also a further performance improvement - e.g. when a fiber ends up loading entities in two (or more) separate calls, fibers resumed afterwards which only need to retrieve their entities from the static cache won't try to load the second entity, they'll just ignore it, leaving it to be loaded later which means more lazy loading. Umami performance tests don't have that scenario though.
Bumping to critical because the original bug this fixes, exposed by #3496369: Multiple load path aliases without the preload cache, can result in an entity not being loaded at all - when $this->entityIdsToLoad has been set after the entity we're actually trying to load was already put into the static cache.
Comment #4
godotislate1 small comment about a missing word in the MR, otherwise looks good.
Comment #5
godotislateI feel slightly weird about
$this->assertSame($return1[3]->id(), $ids[2]);, since the index3is actually the entity ID being tested, but I see that was how other similar asserts were done, and this isn't a problem unless somehow the DB isn't returning IDs that are sequential by 1.LGTM.
Comment #7
alexpottCommitted e3ccb20 and pushed to 11.x. Thanks!