Skip to content

feat(seer): Return sentry_run_id from runs list and dashboard generate#117808

Merged
trevor-e merged 2 commits into
masterfrom
telkins/feat-seer-return-uuid-runs-list-and-dashboard
Jun 16, 2026
Merged

feat(seer): Return sentry_run_id from runs list and dashboard generate#117808
trevor-e merged 2 commits into
masterfrom
telkins/feat-seer-return-uuid-runs-list-and-dashboard

Conversation

@trevor-e

@trevor-e trevor-e commented Jun 16, 2026

Copy link
Copy Markdown
Member

Surfaces the run's UUID (sentry_run_id) on two more Seer endpoints that only returned the numeric run id, matching explorer chat, search agent, and autofix.

  • GET /seer/explorer-runs/ adds sentry_run_id per run via a single bulk SeerRun lookup (null for legacy runs with no mirror row).
  • POST /dashboards/generate/ returns sentry_run_id alongside run_id.

Purely additive — existing clients ignore the new field.

Not covered here:

  • project_seer_night_shift.py — its SeerRun isn't mirrored at all (created outside the outbox); needs the deeper outbox-mirroring fix, tracked separately.
  • organization_seer_agent_pr_groups.py — still returns a numeric-only run id.
  • Frontend adoption (sessions-list picker preferring the UUID, dashboards from-seer flow) is separate.

Surface the run's UUID on the two remaining endpoints that only returned
the numeric run id:
- GET /seer/explorer-runs/ adds sentry_run_id per run (single bulk SeerRun
  lookup; null for legacy runs with no mirror row).
- POST /dashboards/generate/ returns sentry_run_id alongside run_id.

Additive: existing clients ignore the new field.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 16, 2026
Build the runs-list items via an AgentRunWithUuid(AgentRun) subclass
instead of spreading into a raw dict, keeping AgentRun pure (it models
Seer's response) and the sentry_run_id enrichment at the API layer.
Type the dashboard-generate response with a DashboardGenerateResponse
model. Same wire shape; mypy now knows both response shapes.
@trevor-e trevor-e marked this pull request as ready for review June 16, 2026 23:00
@trevor-e trevor-e requested review from a team as code owners June 16, 2026 23:00
@trevor-e trevor-e merged commit 02b49f6 into master Jun 16, 2026
63 checks passed
@trevor-e trevor-e deleted the telkins/feat-seer-return-uuid-runs-list-and-dashboard branch June 16, 2026 23:00
billyvg pushed a commit that referenced this pull request Jun 17, 2026
#117808)

Surfaces the run's UUID (`sentry_run_id`) on two more Seer endpoints
that only returned the numeric run id, matching explorer chat, search
agent, and autofix.

- `GET /seer/explorer-runs/` adds `sentry_run_id` per run via a single
bulk `SeerRun` lookup (`null` for legacy runs with no mirror row).
- `POST /dashboards/generate/` returns `sentry_run_id` alongside
`run_id`.

Purely additive — existing clients ignore the new field.

Not covered here:
- `project_seer_night_shift.py` — its `SeerRun` isn't mirrored at all
(created outside the outbox); needs the deeper outbox-mirroring fix,
tracked separately.
- `organization_seer_agent_pr_groups.py` — still returns a numeric-only
run id.
- Frontend adoption (sessions-list picker preferring the UUID,
dashboards `from-seer` flow) is separate.
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
#117808)

Surfaces the run's UUID (`sentry_run_id`) on two more Seer endpoints
that only returned the numeric run id, matching explorer chat, search
agent, and autofix.

- `GET /seer/explorer-runs/` adds `sentry_run_id` per run via a single
bulk `SeerRun` lookup (`null` for legacy runs with no mirror row).
- `POST /dashboards/generate/` returns `sentry_run_id` alongside
`run_id`.

Purely additive — existing clients ignore the new field.

Not covered here:
- `project_seer_night_shift.py` — its `SeerRun` isn't mirrored at all
(created outside the outbox); needs the deeper outbox-mirroring fix,
tracked separately.
- `organization_seer_agent_pr_groups.py` — still returns a numeric-only
run id.
- Frontend adoption (sessions-list picker preferring the UUID,
dashboards `from-seer` flow) is separate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants