Skip to content

Decompose Phase 1: Split backend admin.ts by domain #903

Closed

Description

@neuromechanist

Part of epic #902. Behavior-preserving; tests green before and after.

backend/src/routes/admin.ts is 7,054 lines / 55 route handlers with ~145 inline db.prepare() calls. Split into routes/admin/{users,doi,publish,fleet,imports,datasets-lifecycle,notices}.ts, each registering its own handlers on a shared admin router. No behavior change. Normalize the two drifted audit_log INSERT shapes into a writeAuditLog() helper as call sites move. Establishes the extraction pattern for later phases.

Activity

  1. added
    P1High priority - important features, significant bugs
    featureNew feature or enhancement
    on Jul 2, 2026
  2. neuromechanist commented on Jul 3, 2026

    @neuromechanist
    ContributorAuthor

    Completed in PR #914 (squash-merged to the epic branch feature/issue-902-epic-decompose as b6a2ee1). admin.ts split into routes/admin/{index,shared,users,doi,fleet,publish,datasets-lifecycle,imports,notices}.ts; all 16 audit-log INSERTs normalized through auditLogStatement(); route inventory + middleware order pinned by test/admin-route-inventory.unit.test.ts.

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

    P1High priority - important features, significant bugsfeatureNew feature or enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions