mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-11 02:27:30 +01:00
Entire-Session: 2c26c946-1def-45ad-aac8-f65c4765658b Entire-Strategy: manual-commit Entire-Agent: Claude Code Ephemeral-branch: entire/2698208-e3b0c4
19 lines
552 B
Markdown
19 lines
552 B
Markdown
# Session Context
|
|
|
|
## User Prompts
|
|
|
|
### Prompt 1
|
|
|
|
Implement the following plan:
|
|
|
|
# Plan: Improve buildQuery implementation and related code
|
|
|
|
## Context
|
|
|
|
The `buildQueries`/`buildNodeQueries` functions and `Load*` methods exist in two packages with near-identical logic:
|
|
- `pkg/metricstore/query.go` (internal, in-memory store)
|
|
- `internal/metricstoreclient/cc-metric-store.go` + `cc-metric-store-queries.go` (external, HTTP client)
|
|
|
|
Both share `BuildScopeQueries` and `SanitizeStats` from `pkg/metricstore/scopequery.go`. The review identified bug...
|
|
|