mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-11 02:27:30 +01:00
Entire-Session: 5de2a23c-09cd-4d6c-a97c-fab8657d094c Entire-Strategy: manual-commit Entire-Agent: Claude Code Ephemeral-branch: entire/9672903-e3b0c4
17 lines
552 B
Markdown
17 lines
552 B
Markdown
# Session Context
|
|
|
|
## User Prompts
|
|
|
|
### Prompt 1
|
|
|
|
Implement the following plan:
|
|
|
|
# Consolidate buildQueries / Scope Transformation Logic
|
|
|
|
## Context
|
|
|
|
`pkg/metricstore/query.go` (InternalMetricStore) and `internal/metricstoreclient/cc-metric-store-queries.go` (CCMetricStore) both implement the `MetricDataRepository` interface. They contain nearly identical scope-transformation logic for building metric queries, but the code has diverged:
|
|
|
|
- **metricstoreclient** has the cleaner design: a standalone `buildScopeQueries()` function handling all ...
|
|
|