Skip to content

BUG-34: GET /admin/kpi returns less than the KPIs tab shows #147

Open

Description

@ephico2real2

Part of #16

What is wrong: GET /api/v1/admin/kpi returns four database KPIs and one component. The KPIs tab of the mockup shows three components, one of them cmapi-capacity, and 10 or 11 KPI cards.

Where: cmapi/src/cmapi/core/kpi.py:126-157. The mockup is mockups/portal/Main.dc.html:1931-1969 and :2102-2124.

How to prove it: A test reads GET /api/v1/admin/kpi and compares the KPI names with the list of the mockup. Each KPI of the mockup must be present, with a value or with unavailable.

Measured or inferred: Read from the code and the mockup at ecc5cb3 on 2026-11-13, by OB1's diagram agent. build-tracker.md lists "most KPIs" as not built.

Severity: Medium.

What must hold after the fix: Each KPI card and each component of the tab has a field in the answer. A figure that cannot be measured reads unavailable, never 0.

Research: Not done yet.

Solution (inline, not applied): Not written yet.

Class: INV. The fix adds KPIs that are designed and not built.

Activity

  1. added
    bug
    class:INV
    status:open
    sev:medium
    Backlog
    on Nov 13, 2026
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

    Backlogbugclass:INVsev:mediumstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions