Skip to content

Add a feature-flagged /rest/v1/health endpoint (thin v1: DB + data sanity) #935

@skypank-coder

Description

@skypank-coder

Summary

Add a narrow, fast deploy/uptime health probe at GET /rest/v1/health, off by default behind the CRE_ENABLE_HEALTH feature flag.

Scope (v1 — thin)

On prod we only need the DB for serving, so the check is DB + data-sanity only:

  • No Neo4j / Redis in the health check.
  • 200 = app up + DB reachable + minimal data sanity (CRE count > 0, standards non-empty).
  • 503 = DB unreachable or obviously broken/empty dataset.

Out of scope (by design)

Full GA / mapping completeness does not belong in a deploy health check — too slow and flaky, and it can fail deploys for the wrong reason. Deeper checks stay in ops land: verify_ga_completeness, monitor_ga_health, the weekly automation, etc.

If we want a heavier "deep health" later, we can add it separately. Ship the thin version first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions