[web] admit and report unpublish jobs #170

Merged
eleith merged 1 commits from feat/unpublish-api into main 2026-10-30 01:06:05 +00:00

Summary

  • Add authenticated POST /api/admin/unpublish, validating one exact filePath and returning the queued job ID. The worker remains authoritative for the current public-record lookup.
  • Include Unpublish in existing publication admission and reject checks made stale by a newer Unpublish request.
  • Reuse status streaming for Unpublish identity, completion/failure and diagnostic details. Preserve existing transport and conflict behavior.
  • Add focused route, admission, freshness, stream and auth-routing coverage, plus a web patch changeset.

This is the API/admission/status slice only. The editor More action and confirmation remain separate; #133 remains open. No worker behavior, editor UI, user documentation, dependency or schema changes.

Validation

  • Code review: clear. One stream-test readability finding was fixed with explicit outcome rows and independently closed.
  • 1,905 web tests passed.
  • Typecheck: 0 errors, 17 existing warnings.
  • Web build, lint and tracked/new-file whitespace checks passed after the test-only readability/format fix.
  • No E2E, live authentication handshake, remote deletion or production/browser acceptance performed.

One focused commit, ten files. Committed locally with verified owner author/committer and pushed over SSH; archive edits excluded.

## Summary - Add authenticated `POST /api/admin/unpublish`, validating one exact filePath and returning the queued job ID. The worker remains authoritative for the current public-record lookup. - Include Unpublish in existing publication admission and reject checks made stale by a newer Unpublish request. - Reuse status streaming for Unpublish identity, completion/failure and diagnostic details. Preserve existing transport and conflict behavior. - Add focused route, admission, freshness, stream and auth-routing coverage, plus a web patch changeset. This is the API/admission/status slice only. The editor More action and confirmation remain separate; #133 remains open. No worker behavior, editor UI, user documentation, dependency or schema changes. ## Validation - Code review: clear. One stream-test readability finding was fixed with explicit outcome rows and independently closed. - **1,905 web tests passed.** - Typecheck: **0 errors, 17 existing warnings**. - Web build, lint and tracked/new-file whitespace checks passed after the test-only readability/format fix. - No E2E, live authentication handshake, remote deletion or production/browser acceptance performed. One focused commit, ten files. Committed locally with verified owner author/committer and pushed over SSH; archive edits excluded.
eleith-gitea-agent Bot added 1 commit 2026-10-29 23:38:10 +00:00
[web] admit and report unpublish jobs
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
712af7a640
eleith merged commit 712af7a640 into main 2026-10-30 01:06:05 +00:00
eleith deleted branch feat/unpublish-api 2026-10-30 01:06:05 +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#170