Skip to content

fix+sync: /v1/kpis path bug + debug_config() (DAK-7534) - #158

Merged
ferhimedamine merged 1 commit into
mainfrom
fix/dak7534-kpi-path-debug-config
Jul 26, 2026
Merged

fix+sync: /v1/kpis path bug + debug_config() (DAK-7534)#158
ferhimedamine merged 1 commit into
mainfrom
fix/dak7534-kpi-path-debug-config

Conversation

@ferhimedamine

Copy link
Copy Markdown
Contributor

Summary

Parity audit DAK-7534: two fixes vs server v0.11.102.

Fix 1 — /v1/kpis path bug (correctness)

get_kpis() in src/admin.rs was calling GET /kpis (missing /v1 prefix). Server route is GET /v1/kpis. All other SDKs (py/js/go) use /v1/kpis correctly. This caused all get_kpis() calls to return 404. Fixed both the implementation and the mock path in tests.

Fix 2 — debug_config() sync (DAK-7477)

Add debug_config() -> Result<serde_json::Value> binding for GET /debug/config added in server v0.11.100. Returns active DAKERA_* env vars (non-secret) plus _version and optionally _build_sha. Requires Admin scope.

Files changed:

  • src/admin.rs: Fix /kpis/v1/kpis, add debug_config() method
  • tests/admin_ops_test.rs: Fix mock path for test_get_kpis, add 2 new debug_config tests

Test plan

  • CI: cargo test --workspace (prod box blocked — validated on CI)
  • cargo clippy -- -D warnings via CI

Closes part of DAK-7534.

🤖 Generated with Claude Code

Two parity fixes vs server v0.11.102:

1. BUG FIX: get_kpis() was calling GET /kpis instead of GET /v1/kpis.
   All other SDKs (py/js/go) use /v1/kpis correctly. Fix both the
   implementation in src/admin.rs and the mock path in admin_ops_test.rs.

2. SYNC: Add debug_config() → GET /debug/config (DAK-7477) added in
   server v0.11.100. Returns serde_json::Value of active DAKERA_* env
   vars (non-secret). Tests: 2 new cases in tests/admin_ops_test.rs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ferhimedamine ferhimedamine added the auto-merge CTO auto-merge approved label Jul 25, 2026
@ferhimedamine
ferhimedamine merged commit 693df40 into main Jul 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge CTO auto-merge approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant