You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG-44: GET /admin/kpi gives walBytes as a text, not a number #173
In-QAPull request open to the integration branch: review rounds, ruling and CI runningbugSomething isn't workingsev:lowA small defect, a defect no code path reaches yet, or a cleanupstatus:openNo fix yet
What is wrong:GET /api/v1/admin/kpi returns database.walBytes as a JSON text, for example "83886080". The other figures are numbers. PostgreSQL's sum(size) is a numeric, and the code passed it on as it came.
Where:cmapi/src/cmapi/core/kpi.py, database_figures, the query on pg_ls_waldir().
How to prove it: The recorded sample admin_kpi in cmapi/src/cmapi/contract/samples.json has "walBytes": "83886080". A test asserts that each figure of database is a number or null.
Measured or inferred: Measured on 2026-11-13 in the recorded sample of the service suite, PostgreSQL 16 on 127.0.0.1:55432.
Severity: Low.
What must hold after the fix:walBytes and sizeBytes are integers. The response model KpiDatabase types each figure, so another text fails the response validation.
Research:docs/17-kpis.md has the definitions and their sources.
Solution (inline, not applied): Not written here. Where the tag is In-Progress, the fix is on branch kpis.
In-QA: pull request #177 closes this issue. Its tests failed before the change and pass after it; GitHub's checks on its head were not read yet when this was written.
In-QAPull request open to the integration branch: review rounds, ruling and CI runningbugSomething isn't workingsev:lowA small defect, a defect no code path reaches yet, or a cleanupstatus:openNo fix yet
Activity
ephico2real2 commentedon Nov 13, 2026
In-QA: pull request #177 closes this issue. Its tests failed before the change and pass after it; GitHub's checks on its head were not read yet when this was written.