Determine whether POST /api/admin/preview is still used #99

Closed
opened 2026-10-05 12:50:13 +00:00 by eleith · 0 comments
Owner

Goal

Determine whether POST /api/admin/preview is still needed before deciding to repair or remove it.

The UI currently starts previews through the preview page loader. No in-repository caller for the standalone POST endpoint has been found so far. That endpoint uses a different workflow-client singleton, which appears uninitialized.

Investigation

  • Check application, CLI, scripts, tests and documentation for callers.
  • Confirm with the owner whether external clients or workflows use it.
  • Distinguish this POST endpoint from the actively used /api/admin/preview/[jobId]/stream route.
  • Report the evidence and recommend retaining/fixing or removing the endpoint. Make that decision with the owner before changing behavior.

Worker service ownership and general bootstrap refactoring are outside this ticket's revised scope.

## Goal Determine whether `POST /api/admin/preview` is still needed before deciding to repair or remove it. The UI currently starts previews through the preview page loader. No in-repository caller for the standalone POST endpoint has been found so far. That endpoint uses a different workflow-client singleton, which appears uninitialized. ## Investigation - Check application, CLI, scripts, tests and documentation for callers. - Confirm with the owner whether external clients or workflows use it. - Distinguish this POST endpoint from the actively used `/api/admin/preview/[jobId]/stream` route. - Report the evidence and recommend retaining/fixing or removing the endpoint. Make that decision with the owner before changing behavior. Worker service ownership and general bootstrap refactoring are outside this ticket's revised scope.
eleith added the bug label 2026-10-05 12:50:13 +00:00
eleith changed title from Initialize workflow clients and worker services explicitly at startup to Determine whether POST /api/admin/preview is still used 2026-10-05 22:48:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/luzzle#99