fix: preserve blank CVs and reliable editor undo

This commit is contained in:
cesnimda
2026-10-27 07:37:03 +01:00
parent 5d4b8f23ce
commit 663023a088
22 changed files with 950 additions and 101 deletions
@@ -364,6 +364,20 @@ public sealed class ApplicationIntelligenceTests
Assert.Empty(match.RelevantExperience);
}
[Fact]
public async Task Match_does_not_inherit_experience_from_an_explicit_blank_cv()
{
var (db, intelligence, _) = New("user-1");
await using var dispose = db;
var job = await SeedJobAsync(db, "user-1");
await SeedProfileAsync(db, "user-1");
await AttachCvAsync(db, "user-1", job.Id, CvVariantSettingsJson.Deserialize("{\"sectionsExplicit\":true,\"includeProfileContact\":false,\"sections\":[]}"));
var match = await intelligence.MatchAsync("user-1", job.Id, default);
Assert.True(match!.HasSelectedCv);
Assert.Empty(match.RelevantExperience);
Assert.Empty(match.RelevantProjects);
}
[Fact]
public async Task Match_is_not_readable_for_another_users_application()
{