Only-changed releases, first increment: reuse unchanged versions (#5) #11
No reviewers
Labels
No labels
feature request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rhelwig/DecentSite!11
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/only-changed-versioning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First increment of #5 (only-changed releases), per the design in docs/SPECS.md (merged in #10).
What changes
validateReleaseRequest: a record from another batch is only allowed in version 2 with a parent release. Unknown future versions fail with a clear "update Auth" message.inspectReleaseRequest: a reused record must equal the parent's version for the same logical key and already exist on Platform. Otherwise it fails closed and nothing is written.prepareTabletReleaseRequest: compares each record with the parent (ignoring bookkeeping and CIDs; blobs compared by hash). Reused blobs are not uploaded again but are still read back and verified. Uses version 1 when nothing is reused.publishedAtnow keeps the parent's date instead of "now", so republishing never moves a post.reusedCount, and reused blobs are flagged (#6).Safety / rollout
DECENT_RELEASE_REUSE_UNCHANGED=1. Auth 0.1.19 and older reject version 2, so turn it on only after Auth 0.1.20 is installed on the approving device.Tests:
tests/only-changed-release.test.ts(7 new tests: full reuse leaves only the release record to write, a single edit, a blob change by hash, default/first-release version 1, fail-closed tampering/missing/foreign records, the future-version message, and Auth review showing Unchanged/Updated). Full suite: 176/176 pass.Remaining for #5: an Admin setting instead of the environment variable (default on once Auth 0.1.20+ is installed), "unchanged (already on Platform)" wording in Auth plus a count on the fee screen, and rollback by reference.
Refs #5
Merged to
mainas merge commit745c57ed08(--no-ff, pushed over SSH). Forgejo doesn't allow the manually-merged style on this repo, so I'm closing this PR by hand.adb install -r, and app data was kept.Pull request closed