refactor: share the update check; owner review 5 request
Move UpdateCheck, UpdateDownload and ProductLinks to Chronos.Core/Updates and UpdateFlow to Chronos.Ui/Updates, so the Uploader can reuse the update check (#64) and the check and download tests run on Linux in Core.Tests. No behaviour change: only namespaces and usings moved. Record owner review 5 (request, interpretation R1-R5, answers Q1-Q3, the v1.1.0 phase). Refs #64 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
988068ee8e
commit
58ed737310
11 files changed
+53
-12
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# Owner review 5 (2026-11-15)
|
||||
|
||||
## Owner's text (verbatim, Italian)
|
||||
|
||||
> Ripensa il setup in modo da fare un setup unico per installare e aggiornare tutti i componenti. Crea quindi UN solo
|
||||
> setup dove puoi scegliere se installare Chronos Uploader o Chronos Desktop (Chronos Server solo disponibile in docker)
|
||||
> e quindi è un installer a parte.
|
||||
>
|
||||
> Dammi più informazioni riguardo alle scansioni massive (esempio "elaborazione foto x di y)
|
||||
>
|
||||
> Differenzia il percorso sul desktop tra server locale e server remoto, differenziando i percorsi per evitare di
|
||||
> mischiare i due archivi. Puoi fare la stessa cosa con le aree di lavoro
|
||||
>
|
||||
> Ricorda sempre di tracciare tutti i lavori che fai
|
||||
|
||||
## Interpretation
|
||||
|
||||
| Id | Request | Working interpretation |
|
||||
|---|---|---|
|
||||
| R1 | One setup for every component (issue #64) | One `Chronos-Setup-<v>.exe` installs, updates, adds, removes and uninstalls Chronos Desktop and Chronos Uploader (ticked per component; Desktop on by default). The Uploader-only setup and the Windows server zip are no longer published; Chronos Server ships only as the Docker image. The portable zip stays beside the setup. The update code moves to `Chronos.Core/Updates` and `Chronos.Ui/Updates` so that the Uploader checks for updates too. |
|
||||
| R2 | More detail on mass passes (issue #65) | Live progress of a job gains an optional detail: the step, the item, item x of y (e.g. photo x of y) and part n of m (e.g. sequence n of m), with rate and time left. The desktop shows it for its own jobs (Jobs, job bar, Archive, editor header); its Server section, when connected, lists the server's running jobs with the same detail; the admin panel shows it too. |
|
||||
| R3 | Separate homes for local and remote archives (issue #66) | "Local" is this PC's archive and each Chronos Server is its own home, keyed by a stable server id: `servers\<id>` in the cache and in the workspace, and its own archive for downloaded originals (e.g. `D:\ChronosArchive - Studio NAS`). Copies already downloaded stay where they are. |
|
||||
| R4 | Chronos Desktop as the Windows server (issue #67) | The separate Windows server program leaves the product. Chronos Desktop can be set to share this PC's library on the local network (Settings › Server › *Share this library*), hosting the same server engine as the Docker image in-process over its own archive and index. A 1.0 Windows Server found by the setup is shown as no longer offered and removed only by an explicit, dry-run-planned action. |
|
||||
| R5 | Track every piece of work | Every work item has an issue in milestone `v1.1.0` and a board card; every commit ends with `Refs #N`. |
|
||||
|
||||
## Questions and answers
|
||||
|
||||
| Id | Question | Owner's answer |
|
||||
|---|---|---|
|
||||
| Q1 (#66) | What do "local server" and "remote server" mean, and where do downloaded originals go? | The recommended option: *local* is this PC's archive, *remote* is a Chronos Server. Each server gets its own folders keyed by a stable server id (`servers\<id>` in the cache and in the workspace) and its own archive for downloaded originals, e.g. `D:\ChronosArchive - Studio NAS`. Copies already downloaded stay where they are. |
|
||||
| Q2 (#65) | Where is the detailed progress of mass passes shown, and does the desktop follow the server's jobs? | "I lavori del desktop li seguo, ovviamente, sul desktop mentre i lavori in esecuzione sul server li posso vedere dal pannello server dell'applicazione desktop, se connesso a un server ovviamente". Desktop jobs show their detail on the desktop; the desktop's Server section, while connected, lists the server's running jobs live with the same detail (server jobs API, `jobProgress` events, `JobDetailDto`). Pause, resume and cancel are offered only with the account's right, otherwise the list is read-only. The admin panel shows the detail too. |
|
||||
| Q3 (#64, #67) | One setup: what happens to the Windows server and the portable zip? | "Il server windows non dovrebbe essere un exe separato ma dovrebbe essere chronos desktop che gestisce una libreria e viene impostato come server e viene condiviso in rete locale". No Server component, no Windows server zip or installer, the Windows service hosting removed; new issue #67 makes Chronos Desktop a server for this PC's library (R4). The Docker image is unchanged. The portable zip keeps being published beside the single setup. |
|
||||
|
||||
## Delivery plan
|
||||
|
||||
| Phase | Content | State | Commit |
|
||||
|---|---|---|---|
|
||||
| 1 | `v1.1.0`: R1 single setup and Uploader update check (#64), R2 mass-pass progress (#65), R3 separate homes (#66), R4 Chronos Desktop as server (#67); R5 tracking | in progress | |
|
||||
@@ -4,8 +4,10 @@ using System.Windows.Input;
|
||||
using Chronos.App.Infrastructure;
|
||||
using Chronos.App.Shell;
|
||||
using Chronos.Core.Localization;
|
||||
using Chronos.Core.Updates;
|
||||
using Chronos.Ui.Controls;
|
||||
using Chronos.Ui.Mvvm;
|
||||
using Chronos.Ui.Updates;
|
||||
|
||||
namespace Chronos.App.About;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using Chronos.App.About;
|
||||
using Chronos.App.Editor;
|
||||
using Chronos.App.Import;
|
||||
using Chronos.App.Infrastructure;
|
||||
@@ -21,6 +20,7 @@ using Chronos.Core.Localization;
|
||||
using Chronos.Core.Metadata;
|
||||
using Chronos.Core.Model;
|
||||
using Chronos.Core.Project;
|
||||
using Chronos.Core.Updates;
|
||||
using Chronos.Core.Video;
|
||||
using Chronos.Data;
|
||||
using Chronos.Data.Archiving;
|
||||
|
||||
@@ -2,7 +2,6 @@ using System.ComponentModel;
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using System.Reflection;
|
||||
using Chronos.App.About;
|
||||
using Chronos.App.Archiving;
|
||||
using Chronos.App.Import;
|
||||
using Chronos.App.Jobs;
|
||||
@@ -16,6 +15,7 @@ using Chronos.Core.Export;
|
||||
using Chronos.Core.Imaging;
|
||||
using Chronos.Core.Imaging.Decoders;
|
||||
using Chronos.Core.Model;
|
||||
using Chronos.Core.Updates;
|
||||
using Chronos.Core.Video.Managed;
|
||||
using Chronos.Core.Windows.MediaFoundation;
|
||||
using Chronos.Core.Windows.Wic;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
using System.Reflection;
|
||||
|
||||
namespace Chronos.App.Infrastructure;
|
||||
namespace Chronos.Core.Updates;
|
||||
|
||||
/// <summary>
|
||||
/// Public links (BRIEF §19.4, amended 2026-10-23, R2): the Gitea repository that publishes the releases. Release
|
||||
@@ -2,7 +2,7 @@ using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Chronos.App.About;
|
||||
namespace Chronos.Core.Updates;
|
||||
|
||||
/// <summary>The newest public release (BRIEF §18) with its downloadable files.</summary>
|
||||
public sealed record ReleaseInfo(Version Version, string Tag, string PageUrl)
|
||||
+1
-1
@@ -6,7 +6,7 @@ using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace Chronos.App.About;
|
||||
namespace Chronos.Core.Updates;
|
||||
|
||||
/// <summary>A downloaded update was refused: the release lacks a setup or checksum line, or the bytes do not match.</summary>
|
||||
public sealed class UpdateVerificationException(string message) : Exception(message);
|
||||
@@ -1,9 +1,10 @@
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
using Chronos.Core.Diagnostics;
|
||||
using Chronos.Core.Updates;
|
||||
using Chronos.Ui.Mvvm;
|
||||
|
||||
namespace Chronos.App.About;
|
||||
namespace Chronos.Ui.Updates;
|
||||
|
||||
/// <summary>Where the update notice stands.</summary>
|
||||
public enum UpdateState
|
||||
@@ -1,7 +1,8 @@
|
||||
using System.IO;
|
||||
using Chronos.App.About;
|
||||
using Chronos.Core.Updates;
|
||||
using Chronos.Testing;
|
||||
using Chronos.Ui.Mvvm;
|
||||
using Chronos.Ui.Updates;
|
||||
|
||||
namespace Chronos.App.Tests.About;
|
||||
|
||||
|
||||
+2
-3
@@ -1,11 +1,10 @@
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using Chronos.App.About;
|
||||
using Chronos.App.Infrastructure;
|
||||
using Chronos.Core.Updates;
|
||||
using Chronos.Testing;
|
||||
|
||||
namespace Chronos.App.Tests.About;
|
||||
namespace Chronos.Core.Tests.Updates;
|
||||
|
||||
public sealed class UpdateCheckTests
|
||||
{
|
||||
+2
-2
@@ -4,10 +4,10 @@ using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using Chronos.App.About;
|
||||
using Chronos.Core.Updates;
|
||||
using Chronos.Testing;
|
||||
|
||||
namespace Chronos.App.Tests.About;
|
||||
namespace Chronos.Core.Tests.Updates;
|
||||
|
||||
public sealed class UpdateDownloadTests(TestContext context)
|
||||
{
|
||||
Reference in new issue
Block a user