Skip to content

fix(store): match project identity in analytics#306

Merged
upsetbit merged 1 commit into
masterfrom
codex/fix-analytics-project-match
Jun 27, 2026
Merged

fix(store): match project identity in analytics#306
upsetbit merged 1 commit into
masterfrom
codex/fix-analytics-project-match

Conversation

@upsetbit

Copy link
Copy Markdown
Contributor

Summary

Fixes #291.

Local analytics now applies --project using the same identity-aware substring semantics as timeline/search.

What changed

  • Reused applyProjectMatch in the analytics query builder.
  • ProjectMatch now spans project_path, project_remote, and project_marker for all local analytics reports.
  • Added a regression test covering path, remote, and marker matches.

Validation

  • go test ./internal/store -run 'TestAnalyticsProjectMatchSpansPathRemoteMarker|TestAnalytics' -count=1
  • go test ./internal/store/... -race
  • go test ./internal/cli/... -race
  • go build -o ./bin/prosa ./cmd/prosa

@upsetbit upsetbit added bug Something isn't working area:cli prosa CLI area:store SQLite + Postgres + migrations + FTS5 scope:cli prosa CLI commands, flags, rendering, setup, and scheduled sync scope:store SQLite, Postgres, migrations, FTS, and raw-object metadata severity:medium Latent bug, inconsistent contract, brittle pattern priority:P1 Important reliability, usability, workflow, or audit follow-up source:audit Created from an audit report or validation pass labels Jun 27, 2026
@upsetbit upsetbit merged commit b5f636e into master Jun 27, 2026
4 checks passed
@upsetbit upsetbit deleted the codex/fix-analytics-project-match branch June 27, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli prosa CLI area:store SQLite + Postgres + migrations + FTS5 bug Something isn't working priority:P1 Important reliability, usability, workflow, or audit follow-up scope:cli prosa CLI commands, flags, rendering, setup, and scheduled sync scope:store SQLite, Postgres, migrations, FTS, and raw-object metadata severity:medium Latent bug, inconsistent contract, brittle pattern source:audit Created from an audit report or validation pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Analytics --project only matches project_path locally

1 participant