[worker] add one-attempt unpublish operation #169

Merged
eleith merged 1 commits from feat/unpublish-worker into main 2026-10-29 21:56:07 +00:00

Summary

  • Add the shared Unpublish job contract and a short, one-attempt worker workflow.
  • Select recorded generated files, preserve references from other published pieces, and validate paths before withdrawing the public record.
  • Attempt cache, local-file and exact remote-file cleanup; report failures for human action. Keep archive originals and the core index. No saved deletion plan, retry or recovery machinery.
  • Share rclone configuration mapping across CDN sync, archive sync, connectivity and Unpublish while retaining caller-specific skip/error policies. Keep generated-file validation in asset utilities.
  • Include jobs/worker patch changeset and focused tests.

This PR is the worker slice only. Authenticated API/admission and editor integration come in separate slices before end-user exposure; #133 remains open. Normal publishing behavior is preserved.

Validation

  • Fresh independent code and readability reviews of all 16 files: clear.
  • 393 tests passed: 24 jobs + 369 worker, using existing package coverage configurations.
  • Both package builds, lint and tracked/new-file whitespace checks passed. No coverage thresholds changed.
  • No E2E, actual remote deletion or production/browser acceptance performed.

One focused commit; archive edits excluded. No user-facing documentation, dependency or schema changes.

## Summary - Add the shared Unpublish job contract and a short, one-attempt worker workflow. - Select recorded generated files, preserve references from other published pieces, and validate paths before withdrawing the public record. - Attempt cache, local-file and exact remote-file cleanup; report failures for human action. Keep archive originals and the core index. No saved deletion plan, retry or recovery machinery. - Share rclone configuration mapping across CDN sync, archive sync, connectivity and Unpublish while retaining caller-specific skip/error policies. Keep generated-file validation in asset utilities. - Include jobs/worker patch changeset and focused tests. This PR is the worker slice only. Authenticated API/admission and editor integration come in separate slices before end-user exposure; #133 remains open. Normal publishing behavior is preserved. ## Validation - Fresh independent code and readability reviews of all 16 files: clear. - **393 tests passed:** 24 jobs + 369 worker, using existing package coverage configurations. - Both package builds, lint and tracked/new-file whitespace checks passed. No coverage thresholds changed. - No E2E, actual remote deletion or production/browser acceptance performed. One focused commit; archive edits excluded. No user-facing documentation, dependency or schema changes.
eleith-gitea-agent Bot added 1 commit 2026-10-29 21:52:33 +00:00
[worker] add one-attempt unpublish operation
ci/woodpecker/pr/web-jobs Pipeline was successful
ci/woodpecker/pr/web-worker Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/push/web-jobs Pipeline was successful
ci/woodpecker/push/web-worker Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
6458f9c543
eleith merged commit 6458f9c543 into main 2026-10-29 21:56:07 +00:00
eleith deleted branch feat/unpublish-worker 2026-10-29 21:56:07 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/luzzle#169