Skip to content

[self-care:server-go-logging] Extract operator config parsing in cao-dashboard with debug logging - #20743

Closed
mnkiefer wants to merge 2 commits into
mainfrom
self-care/server-go-logging-operator-config-256918a33657a713
Closed

mnkiefer wants to merge 2 commits into
mainfrom
self-care/server-go-logging-operator-config-256918a33657a713

Conversation

@mnkiefer

Copy link
Copy Markdown
Contributor

Splits readOperatorConfig in server/cmd/cao-dashboard/canvas.go into file reading and a testable parseOperatorConfig, mirroring the existing canvas config structure, and adds cao:cli debug logs for the disabled and loaded states. Behavior and error messages are unchanged.

Action: Reviewer should confirm the diff is behavior-preserving and that go -C server vet ./... and go -C server test ./... pass in CI.

Diagnostics and privacy

  • Two log calls via the existing commandLog (cao:cli), off by default.
  • They log only fixed strings; no paths, contents, or error text.
Tests added

Real-file tests in canvas_test.go for: omitted path, valid file, missing file, and invalid documents (empty, non-JSON, wrong type). No mocks.

Validation

gofmt, go -C server vet ./..., go -C server test ./... all pass locally.

Control Plane

Generated by SelfCare / Server Go Logging · copilot · auto (Claude Sonnet 5.5) · ~27 AIC · ⌖ ~2 AIC · ⊞ 16K · ◷

  • expires on Nov 20, 2026, 1:06 AM UTC

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 13, 2026 04:58
@pelikhan
pelikhan self-requested a review as a code owner November 13, 2026 04:58
@pelikhan pelikhan closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants