Amazon Ergo 1.0 · Heavy
replays-self-serve-bulk-delete-system-sentry
Sentry · Python · M · 100–299 lines · 3 files
The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Opus 5.5.
- Gold bugs found
- 5 of 14
- Comments published
- 6
- Comments matching a bug
- 5
- Comments not matching
- 1
- Cost of this PR
- $24.533
Published comments (6)
Feature-flagged table visualization renders empty data — Enabling `use-table-widget-visualization` replaces fetched `tableResults` with hard-coded empty `columns` and `tableData`, so populated dashboard tables render empty. Pass `columns` built from `fields` and `tableData` built from `result.data` and `result.meta` to `TableWidgetVisualization`.
Mocked delete_matched_rows leaves the None-segment guard untested — Mocking `delete_matched_rows` means the `max_segment_id=None` row never reaches `_make_recording_filenames`, so this test would still pass if its None guard were removed. Test `_make_recording_filenames` directly, or run `delete_replay_recordings` with storage mocked, asserting that the row yields no filenames.
Validation-failure log exposes raw browser reports — Logging `raw_report` can persist URL query tokens, user agents, and free-form bodies containing PII from this unauthenticated, CSRF-exempt endpoint. Log only report type, destination, and validation error fields, or redact URL query strings and body content first.
Error details can be paired with the wrong event IDs — `get_multi` is keyed by node ID, so zipping `error_ids` with `events.values()` misattributes titles, messages, and timestamps whenever keys are missing or reordered. Build each result by looking up its node ID with `events.get(node_id)` instead of relying on value order.
Zero-valued age and timestamp bypass mutual-exclusivity validation — Reports with both `age: 0` and `timestamp: 0` pass validation because `self.initial_data.get('age')` and `self.initial_data.get('timestamp')` treat zero as absent. Use `'age' in self.initial_data` and `'timestamp' in self.initial_data` to enforce mutual exclusivity.
Falsy custom cell renderer output is replaced by default renderers — Valid falsy output such as `0`, `''`, or `null` from `renderTableBodyCell` is discarded by `if (cell)`, so default body and header renderers replace custom content. Check `cell !== undefined` in both paths, falling back only when the renderer returns `undefined`.