fix(projects): empty sequences, push size, version paging, delete rights, settings PATCH, change events
- An unplaced sequence (no photos) lists no projects and refuses to create one with sequence_empty, instead of writing sidecars at the archive root. - A push accepts a full-size version; a 413 is reported as too_large. - Version pages are capped in bytes and say when more follow; the summary form leaves settings out; server homes page on. - Deleting by its maker needs the same account, not just the same username. - A settings PATCH writes project.json under the sequence lease, so Main's later birth no longer wipes it. - Reconcile, read-only catch-up and a Main flip publish projectChanged. - Server homes read the frames stamp and check a version is really stored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ed7452e739
commit
4f652c4025
16 files changed
+356
-53
No files matched your search
@@ -418,7 +418,8 @@ public sealed class WorkspaceHost
|
||||
var listed = await reached.ListAsync(cancellationToken).ConfigureAwait(false);
|
||||
project = projectId is { } id
|
||||
? listed.FirstOrDefault(p => p.Id == id) ?? throw new ProjectException(ProjectError.NotFound, $"The home has no project {id}.")
|
||||
: listed.First(p => p.IsMain);
|
||||
// A server's sequence with no photo yet has no projects at all.
|
||||
: listed.FirstOrDefault(p => p.IsMain) ?? throw new ProjectException(ProjectError.SequenceEmpty, $"Sequence {sequenceId} has no projects yet.");
|
||||
}
|
||||
// A copy here this Chronos cannot read (damaged, or a newer Chronos's): nothing is checked out or copied over it.
|
||||
if (Store.Find(project.Id) is { } here && await EntryOrUnreadableAsync(here, cancellationToken).ConfigureAwait(false) is { IsReadable: false } unreadable)
|
||||
|
||||
Reference in new issue
Block a user