feat(server): the server keeps its sequences' projects, pushed and pulled like a PC's archive
Owner review 2, phase 5b (R8): a server is a project home. A workspace can
list a sequence's projects, make, rename and delete them, read their
versions and push new ones through /api/v1/sequences/{sid}/projects. The
endpoints run on the archive's ProjectService exactly as a desktop's archive
does (sidecars first, then the index, under the sequence's lease), so no
version is stored apart and a desktop sharing the archive sees the same
projects.
- Protocol: project, version, create, rename, version page, push answer
(outcome, stored version, head, plus code and message on 409/422) and
home frames DTOs, the projectChanged event, the "projects" capability and
the ChronosClient calls; a push returns its outcome without throwing on
409 or 422. ProjectWire maps them to and from the model for both sides.
- Server: Read lists and reads, Edit makes, renames and pushes, Delete (the
sequence's owner, the project's maker or an admin) deletes; refusals with
stable codes, 503 while the sequence is busy, offline or moved; the
pushing account becomes the version's author; creations, renames and
deletions audited, pushes logged.
- ProjectService tells the host what each call changed, compared under the
lease, so projectChanged also follows Main's external versions; a Main
version mirrored into the settings sends sequenceChanged too, for older
clients. ProjectCatchUp takes settings a PATCH, an analysis or a
conversion wrote into Main at once, for sequences that have a Main.
- Renders of a project version: POST /jobs checks the project and version
against the sequence and pins a project alone to its head; render nodes
get the version's settings placed on the frames they claim; the render
records the project and version.
- Admin panel: the sequence page lists its projects (Main marked, head,
last change, versions on demand) with Rename and Delete for the others,
live on projectChanged. It edits no settings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
917cddde41
commit
e2ecc409a3
30 files changed
+2261
-35
No files matched your search
@@ -60,6 +60,7 @@
|
||||
<data name="Server.Error.InvalidFilter" xml:space="preserve"><value>A filter value is not valid.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidHash" xml:space="preserve"><value>The SHA-256 must be 64 hexadecimal characters.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidJobKind" xml:space="preserve"><value>This job kind cannot be started here.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidName" xml:space="preserve"><value>A project name has 1 to 60 characters and no control characters.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidParameters" xml:space="preserve"><value>The job parameters are not valid.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidPriority" xml:space="preserve"><value>The priority must be background, normal or user.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidProxy" xml:space="preserve"><value>The proxy is not a JPEG the server can read.</value><comment>long</comment></data>
|
||||
@@ -70,12 +71,16 @@
|
||||
<data name="Server.Error.InvalidState" xml:space="preserve"><value>The job cannot do that in its current state.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidTemplate" xml:space="preserve"><value>The naming template is not valid.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidUsername" xml:space="preserve"><value>Use letters, digits, dot, dash or underscore.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.InvalidVersion" xml:space="preserve"><value>The version is not one of this project: its positions are not by photo, or its id is another version's.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.JobNotAssigned" xml:space="preserve"><value>This job is no longer assigned to this node.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.JobUnavailable" xml:space="preserve"><value>This server cannot run that kind of job.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.LastAdmin" xml:space="preserve"><value>The last administrator cannot be removed or disabled.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.MainCannotBeDeleted" xml:space="preserve"><value>The Main project holds the sequence's own settings and is never deleted.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.MethodNotAllowed" xml:space="preserve"><value>This method is not allowed here.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.NameTaken" xml:space="preserve"><value>Another project of this sequence has that name.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.NestedTarget" xml:space="preserve"><value>A new folder would lie inside the folder of another sequence.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.NotChronosAt" xml:space="preserve"><value>No Chronos server answers at {0}; check the port (the admin panel's Settings › Network and TLS shows the client address).</value><comment>long</comment></data>
|
||||
<data name="Server.Error.NewerFormat" xml:space="preserve"><value>The version was made by a newer Chronos; update the server to keep it.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.NotEnoughSpace" xml:space="preserve"><value>The archive's volume lacks the space the conversion needs.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.NotFound" xml:space="preserve"><value>Not found.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.NotChronos" xml:space="preserve"><value>That address is not a Chronos Server.</value><comment>long</comment></data>
|
||||
@@ -85,6 +90,8 @@
|
||||
<data name="Server.Error.PhotoUnreadable" xml:space="preserve"><value>{0} cannot be read, and without its hash other copies would not learn it was deleted; close the program using it or check its permissions, then try again.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.PlanChanged" xml:space="preserve"><value>The archive changed after the dry run; review the plan again.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.PlanDropped" xml:space="preserve"><value>The server stopped making this plan: it took too long, or too many were asked at once; try again shortly.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.ProjectDiverged" xml:space="preserve"><value>The project has newer versions on the server; take them, then send yours again.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.ProjectsUnreadable" xml:space="preserve"><value>A project of this sequence cannot be read now; nothing was changed. Try again shortly.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.ProxyUntrusted" xml:space="preserve"><value>This page did not come through a trusted proxy over HTTPS. Open it through your proxy, or add the proxy's address to CHRONOS_TRUSTED_PROXIES.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.ProxiesDisabled" xml:space="preserve"><value>This archive makes no proxies.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.ProxyMismatch" xml:space="preserve"><value>The proxy was made from another photo.</value><comment>long</comment></data>
|
||||
@@ -114,6 +121,7 @@
|
||||
<data name="Server.Error.Untrusted" xml:space="preserve"><value>The certificate was not trusted, so nothing was sent.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.UploadState" xml:space="preserve"><value>This upload is not accepting that request now.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.UsernameTaken" xml:space="preserve"><value>That user name is taken.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.VersionHashMismatch" xml:space="preserve"><value>The version arrived damaged; send it again.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.WeakPassword" xml:space="preserve"><value>Use at least {0} characters.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.WebsocketRequired" xml:space="preserve"><value>Connect with a WebSocket.</value><comment>long</comment></data>
|
||||
<data name="Server.Error.WouldEmpty" xml:space="preserve"><value>Every photo of the sequence would go; delete the sequence instead.</value><comment>long</comment></data>
|
||||
|
||||
Reference in new issue
Block a user