Skip to content

fix(dashboard): Serve empty Review item reads in mock reporting mode - #2476

Merged
dcramer merged 1 commit into
mainfrom
fix/mock-review-items
Oct 31, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix/mock-review-items

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Mock reporting mode had no review item routes. The nav count, the waiting dot and the Conversation bar fell through to the real API. That API then queried a database with no review item tables and returned 500s. Each dashboard e2e run logged about 300 Failed query ... relation "junior_review_items" does not exist errors.

Mock mode has no Review items, so createMockReportingApi now answers:

  • GET /api/review-items: an empty list
  • GET /api/review-items/count: { mine: 0 }
  • GET /api/review-items/waiting-conversations: no Conversations
  • GET /api/review-items/:id and POST /api/review-items/:id/actions: 404

Checks: dashboard typecheck passes. I ran the full dashboard e2e suite locally against an empty database. The count went from about 300 Failed query errors to 2, and those 2 are the junior_automations query that was already there before the review desk. 59 of 60 tests passed. The one failure was a pending-messages request timeout in conversations-event-log.spec.ts, which doesn't touch review items, and it passed 4/4 when I ran it again.

This adds no fixture items, so mock mode shows an empty review desk. Related: #2474 fixes the conversation-share timeout.

via David Cramer.

--

View Session [Sentry]

Mock reporting mode had no review item routes, so the nav count, the
waiting dot and the Conversation bar fell through to the real API. That
API queried a database with no review item tables and returned 500s.
The dashboard e2e logs had about 300 'Failed query' errors per run.

Mock mode has no Review items, so the reads return empty results and a
single item or an action returns 404.

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 31, 2026 4:06am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

2 screenshot changes — 2 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Child Agent Drawer · Desktop
Conversation Child Agent Drawer · Desktop
Changed
Conversation Child Agent Drawer · Mobile
Conversation Child Agent Drawer · Mobile
Changed

@dcramer
dcramer merged commit 53e6ade into main Oct 31, 2026
43 checks passed
@dcramer
dcramer deleted the fix/mock-review-items branch October 31, 2026 04:11

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 9879aeac Deployed Oct 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant