fix: filter source=live in edge functions (Codex review fix #5)

- community-benchmarks: add .eq("source", "live") to telemetry_events query
- community-pulse: use distinct install_fingerprint count instead of raw
  count, add source=live filter to all queries

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-23 15:49:30 -07:00
parent fed0a4b521
commit af9769d862
2 changed files with 14 additions and 9 deletions

View File

@@ -21,6 +21,7 @@ Deno.serve(async () => {
.from("telemetry_events")
.select("skill, duration_s, outcome")
.eq("event_type", "skill_run")
.eq("source", "live")
.not("duration_s", "is", null)
.not("skill", "is", null)
.gte("event_timestamp", thirtyDaysAgo)