Circle V2 API Docs
    Preparing search index...

    Function computeOverallAuditStatus

    • Mirrors the legacy audit-chart priority: fail > needs_review > (pass | not_applicable). not_applicable counts as all-clear alongside pass, so a set that is entirely pass/not_applicable (including all-N/A) resolves to pass. An empty/all-null set falls back to needs_review so the UI doesn't mis-report a green pass on no responses (matches the legacy default in determineSessionAuditStatus), and any unrecognized status keeps the conservative needs_review default.

      Parameters

      • statuses: readonly (string | null)[]

      Returns
          | "error"
          | "in_progress"
          | "pass"
          | "fail"
          | "needs_review"
          | "pending"
          | "not_started"