fix(deployment): flatten reads compositions off the loaded template instead of a second per-template query (review 2026-10-21 04/U5)

This commit is contained in:
Joseph Doherty
2026-10-22 06:32:32 -04:00
parent 669822772e
commit 7975699ac4
6 changed files with 25 additions and 8 deletions
@@ -59,7 +59,6 @@ public class FlattenSessionCacheTests
_templateRepo.GetTemplateWithChildrenAsync(TemplateId, Arg.Any<CancellationToken>()).Returns(template);
_templateRepo.GetTemplateWithChildrenAsync(ParentTemplateId, Arg.Any<CancellationToken>()).Returns(parent);
_templateRepo.GetCompositionsByTemplateIdAsync(Arg.Any<int>(), Arg.Any<CancellationToken>()).Returns([]);
for (var i = 1; i <= instanceCount; i++)
{