feat: owner review 2 phase 5c: originals, local render, clean-up and the workspace settings #18

Merged
Alby96 merged 42 commits from review2-p5c into main 2026-11-04 20:03:58 +01:00
3 changed files with 7 additions and 3 deletions
Showing only changes of commit 99ae344c0d - Show all commits

No files matched your search

+2 -1
View File
@@ -803,7 +803,8 @@ public sealed partial class WorkspaceHost
var conflict = status.Conflict is not null || project.OpenConflict() is not null;
var (unsentRenders, lastOriginals) = await RemovalMediaAsync(project, cancellationToken).ConfigureAwait(false);
return new WorkspaceRemovalPlan(projectId, name, files, bytes, status.Ahead + status.Damaged, status.Modified, conflict, status.Offline,
status.State == WorkspaceState.Gone) { UnsentRenders = unsentRenders, LastOriginals = lastOriginals };
status.State == WorkspaceState.Gone)
{ UnsentRenders = unsentRenders, LastOriginals = lastOriginals };
}, cancellationToken);
/// <summary>
@@ -111,7 +111,7 @@ public sealed class DesktopScheduleHostTests(TestContext context)
// Chronos was closed for two days: the missed copy is made once at start (catch-up, as the housekeeping's run; the
// scan has none and just moves on; the workspace clean-up, with catch-up too, runs once as well).
fx.Clock.Advance(TimeSpan.FromDays(2.5));
Assert.Equal(3,await scheduler.RunDueAsync());
Assert.Equal(3, await scheduler.RunDueAsync());
var job = (await fx.Db.Jobs.ListByScheduleAsync(backup.Id)).Single();
Assert.Equal((JobKind.Backup, JobPriority.Background, JobState.Queued), (job.Kind, job.Priority, job.State));
Assert.Equal(0, await scheduler.RunDueAsync());
@@ -74,7 +74,10 @@ public sealed class WorkspaceOpenPolicyTests(TestContext context)
UiLanguage.Apply("en");
var settings = new AppSettings
{
Language = "en", FirstRunCompleted = true, CheckForUpdates = false, WorkspaceDefaultMedia = BundleMedia.Originals,
Language = "en",
FirstRunCompleted = true,
CheckForUpdates = false,
WorkspaceDefaultMedia = BundleMedia.Originals,
};
var services = new AppServices(environment, settings, () => { }, new NoDialogs());
await services.AttachAsync(await ChronosDatabase.OpenAsync(DatabaseOptions.Sqlite(environment.DatabasePath)), startEngine: true);