Checkpoint: fc3be444ef4c

Entire-Session: 5de2a23c-09cd-4d6c-a97c-fab8657d094c
Entire-Strategy: manual-commit
Entire-Agent: Claude Code
Ephemeral-branch: entire/9672903-e3b0c4
This commit is contained in:
2026-03-04 16:43:19 +01:00
parent e46841c4e2
commit dfa7def694
6 changed files with 371 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# 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 ...