[Debt] Refactor high-complexity admin catalog/settings route helpers #5

Closed
opened 2026-07-11 12:51:23 +02:00 by zemion · 1 comment
Owner

Xenon/Radon identify complex admin route helpers around catalog planning and system settings.

Classification: structural maintainability work.

Report evidence:

  • _catalog_plan_item rank D.
  • read_module_package_catalog rank C.
  • write_system_settings rank C.
  • _window_history_records rank C.

Suggested next steps:

  • Extract catalog response mapping from route handlers.
  • Split system settings validation from persistence writes.
  • Keep this aligned with the planned Packages/Package catalog UI cleanup.

Baseline report directory: audit-reports/govoplan-full-20260711-1238

<!-- codex-audit-full-2026-07-11:admin-complexity-baseline --> Xenon/Radon identify complex admin route helpers around catalog planning and system settings. Classification: **structural maintainability work**. Report evidence: - `_catalog_plan_item` rank D. - `read_module_package_catalog` rank C. - `write_system_settings` rank C. - `_window_history_records` rank C. Suggested next steps: - Extract catalog response mapping from route handlers. - Split system settings validation from persistence writes. - Keep this aligned with the planned Packages/Package catalog UI cleanup. Baseline report directory: `audit-reports/govoplan-full-20260711-1238`
Author
Owner

Codex State: done

The current Admin implementation now satisfies this debt ticket.

  • Fresh Xenon run passes the configured threshold: --max-absolute C --max-modules B --max-average A.
  • Admin test suite: 3 passed, 2 subtests passed.
  • The consolidated cross-module check and WebUI permutations pass.
  • Current state is published on main at f3e69b9.

The catalog/settings helpers no longer reproduce the recorded D-ranked complexity baseline, so this issue is closed.

## Codex State: done The current Admin implementation now satisfies this debt ticket. - Fresh Xenon run passes the configured threshold: `--max-absolute C --max-modules B --max-average A`. - Admin test suite: `3 passed, 2 subtests passed`. - The consolidated cross-module check and WebUI permutations pass. - Current state is published on `main` at `f3e69b9`. The catalog/settings helpers no longer reproduce the recorded D-ranked complexity baseline, so this issue is closed.
zemion removed the codex/ready
status
ready
labels 2026-07-29 14:20:48 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GovOPlaN/govoplan-admin#5