fix(rd21): guard career and job saves with durable revisions
This commit is contained in:
@@ -78,7 +78,7 @@ public sealed class CvRevisionReadinessTests
|
||||
Jobs = { new() { Id = "source-entry", Title = "Canonical role", Company = "Nordlys", Bullets = { "Canonical evidence" } } },
|
||||
Skills = { "C#", "Norsk" },
|
||||
};
|
||||
await career.SaveVersionAsync("revision-owner", profile, "manual", default);
|
||||
await career.SaveVersionAsync("revision-owner", profile, "manual", 0, default);
|
||||
var service = Service(db);
|
||||
var lens = new CvVariantSettings
|
||||
{
|
||||
@@ -97,7 +97,7 @@ public sealed class CvRevisionReadinessTests
|
||||
// History is the immutable lens; inherited source values intentionally remain live.
|
||||
profile.Contact.Headline = "Updated canonical source";
|
||||
profile.Jobs[0].Title = "Updated canonical role";
|
||||
await career.SaveVersionAsync("revision-owner", profile, "manual", default);
|
||||
await career.SaveVersionAsync("revision-owner", profile, "manual", 1, default);
|
||||
Assert.Equal(originalHistory, (await db.CvVariantVersions.SingleAsync()).SettingsJson);
|
||||
var reset = new CvVariantSettings { ThemeId = "minimal" };
|
||||
await service.SaveAsync("revision-owner", cv.Id, null, reset, "manual", 1, default);
|
||||
|
||||
Reference in New Issue
Block a user