fix: address the owner review 5 review
Setup: a kept 1.0 Uploader no longer fixes the scope and folder, the Remove tooltip promises kept files only with a hashed log, and a single-program setup preselects it. The Uploader always downloads the setup. Sync links move to the server id at every sign-in while folders wait for jobs and open editors; jobs of a pending homes sort still find their projects. A shared library exposes only the shared archive's client-visible jobs and events, render nodes take only client renders, and the share counts as its own while starting. Progress: a new step waits a quarter interval and a trailing timer publishes the last state; the job bar tooltip carries the whole line; Recent maintenance and the Server jobs list pick up jobs that start while they are shown. Refs #64 #65 #66 #67 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
817956e719
commit
f30eb2904a
51 files changed
+895
-122
No files matched your search
@@ -9,6 +9,7 @@ using Chronos.Core.Localization;
|
||||
using Chronos.Core.Model;
|
||||
using Chronos.Data;
|
||||
using Chronos.Data.Archiving;
|
||||
using Chronos.Data.Jobs;
|
||||
using Chronos.Data.Repositories;
|
||||
using Chronos.Testing;
|
||||
using Chronos.Ui.Controls;
|
||||
@@ -260,6 +261,29 @@ public sealed class ArchiveLogicTests
|
||||
Assert.SequenceEqual(new[] { "sunset", "dusk" }, changes.Single().Tags);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AMaintenanceJobQueuedWhileTheScreenIsShownJoinsRecent()
|
||||
{
|
||||
var archive = Guid.NewGuid();
|
||||
var now = DateTimeOffset.UtcNow;
|
||||
IReadOnlyList<Job> jobs = [new Job { Id = Guid.NewGuid(), Kind = JobKind.Scan, State = JobState.Done, TargetIds = [archive], Created = now.AddDays(-1), Finished = now.AddDays(-1) }];
|
||||
var verify = new Job { Id = Guid.NewGuid(), Kind = JobKind.Verify, State = JobState.Queued, TargetIds = [archive], TargetLabel = "Main", Created = now };
|
||||
|
||||
jobs = MaintenanceReports.Track(jobs, verify, archive);
|
||||
Assert.Equal(2, jobs.Count);
|
||||
var running = verify with { State = JobState.Running, Started = now };
|
||||
jobs = MaintenanceReports.Track(jobs, running, archive);
|
||||
Assert.Equal(2, jobs.Count);
|
||||
var live = new Dictionary<Guid, JobProgressInfo> { [verify.Id] = new(verify.Id, JobKind.Verify, "Main", 40, 100, null, null, null) };
|
||||
var recent = MaintenanceReports.Recent(jobs, 5, live);
|
||||
Assert.Equal(verify.Id, recent[0].JobId);
|
||||
Assert.Equal("40 %", recent[0].StateText);
|
||||
|
||||
// Another archive's job, or another kind of job, leaves the list as it is.
|
||||
Assert.Same(jobs, MaintenanceReports.Track(jobs, running with { Id = Guid.NewGuid(), TargetIds = [Guid.NewGuid()] }, archive));
|
||||
Assert.Same(jobs, MaintenanceReports.Track(jobs, running with { Id = Guid.NewGuid(), Kind = JobKind.Render }, archive));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ReportsListDuplicatesOrphansAndRecentMaintenance()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user