feat: owner review 2 phase 5a: workspace and projects with a local home #14

Merged
Alby96 merged 119 commits from claude/owner-review-2-p5a into main 2026-11-04 09:22:14 +01:00
Showing only changes of commit 8dbdf8710e - Show all commits
@@ -154,7 +154,9 @@ public abstract class ProjectServiceTests(TestContext context) : DatabaseTest(co
Assert.SequenceEqual([0, 4], mirrored.ExcludedFrames);
Assert.Equal(0.7, mirrored.Exposure.ExposureOffsetEv);
Assert.Equal(frames[2].Id, after.HeroFrameId);
Assert.Equal(after.SettingsJson, File.ReadAllText(fx.Paths.Sequence(sequence.Folder).ProjectPath));
// PostgreSQL stores the settings as jsonb, which reorders keys: compare the JSON, not the text.
Assert.True(System.Text.Json.Nodes.JsonNode.DeepEquals(System.Text.Json.Nodes.JsonNode.Parse(after.SettingsJson!),
System.Text.Json.Nodes.JsonNode.Parse(File.ReadAllText(fx.Paths.Sequence(sequence.Folder).ProjectPath))), "project.json mirrors Main's head");
var row = (await fx.Db.Projects.GetAsync(main.Id))!;
Assert.Equal((stored.Id, after.SettingsVersion), (row.MirroredVersionId, row.MirroredSettingsVersion));
// The mirror is no outside change: no version is added for it.