Skip to content

Remove the unused batch-complete endpoint #504

Description

@vidit-admin

The endpoint (routers/events/batch.py, its schemas in schemas/event.py, its tests) ships and nothing in the app calls it: the queue publishes one detection at a time because a batch publish let badly filled events through. No re-publish flow is scoped, so the route is maintenance without a user. Delete it with lib/events.ts::batchCompletionBlockers (the frontend mirror of services/events/batch._publish_detection's per-row floor) and the AGENTS.md mirror entry; if a bulk re-tag flow is ever scoped, it starts from its own design, not from this route.

Imported from planning/backlog.md.

Note: batchCompletionBlockers is not dead code. frontend/src/components/detections/DetectionQueueRow.tsx calls it for the per-row blockers, so it stays when the endpoint goes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions