Skip to content

feat(preprod): Use one relevant-filtered link per snapshot row#117863

Merged
mtopo27 merged 2 commits into
masterfrom
improve-snapshots-status-check-links
Jun 16, 2026
Merged

feat(preprod): Use one relevant-filtered link per snapshot row#117863
mtopo27 merged 2 commits into
masterfrom
improve-snapshots-status-check-links

Conversation

@mtopo27

@mtopo27 mtopo27 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The snapshot status check and PR comment previously put a separate link on every count column (Added/Removed/Changed/Renamed/Unchanged/Skipped), so a single row could carry up to six links and reviewers couldn't tell which one to click. Each row now exposes a single link in the Name column that opens the snapshot diff view filtered to only the categories that actually changed, with the count columns rendered as plain numbers.

The link's ?selectedTypes= filter is built from the non-zero relevant categories (added, removed, changed, renamed) — unchanged, skipped, and errored are never included. When nothing relevant changed, the link opens unfiltered so a reviewer is never shown an empty filtered view.

The change is confined to the shared markdown templates in src/sentry/preprod/vcs/; the selectedTypes URL param and its comma-separated parsing already exist on the frontend, so no UI change is needed.

The snapshot status check and PR comment rendered a separate link on
every count column, so a single row could carry up to six links and
reviewers could not tell which to click. Each row now exposes one link
in the Name column, pointing at the diff view filtered to only the
categories that actually changed (added/removed/changed/renamed); count
columns become plain numbers. When nothing relevant changed, the link
opens unfiltered so unchanged/skipped views are not hidden behind a
stale filter.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 16, 2026
Compute the comparison lookup and selected-types decision once before rendering each snapshot table row. This keeps the filtered link behavior unchanged while avoiding a second name cell build for completed rows.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@mtopo27 mtopo27 marked this pull request as ready for review June 16, 2026 21:54
@mtopo27 mtopo27 requested a review from a team as a code owner June 16, 2026 21:54
@mtopo27 mtopo27 merged commit 3633945 into master Jun 16, 2026
64 checks passed
@mtopo27 mtopo27 deleted the improve-snapshots-status-check-links branch June 16, 2026 22:33
billyvg pushed a commit that referenced this pull request Jun 17, 2026
The snapshot status check and PR comment previously put a separate link
on every count column (Added/Removed/Changed/Renamed/Unchanged/Skipped),
so a single row could carry up to six links and reviewers couldn't tell
which one to click. Each row now exposes a single link in the Name
column that opens the snapshot diff view filtered to only the categories
that actually changed, with the count columns rendered as plain numbers.

The link's `?selectedTypes=` filter is built from the non-zero relevant
categories (`added`, `removed`, `changed`, `renamed`) — `unchanged`,
`skipped`, and `errored` are never included. When nothing relevant
changed, the link opens unfiltered so a reviewer is never shown an empty
filtered view.

The change is confined to the shared markdown templates in
`src/sentry/preprod/vcs/`; the `selectedTypes` URL param and its
comma-separated parsing already exist on the frontend, so no UI change
is needed.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
The snapshot status check and PR comment previously put a separate link
on every count column (Added/Removed/Changed/Renamed/Unchanged/Skipped),
so a single row could carry up to six links and reviewers couldn't tell
which one to click. Each row now exposes a single link in the Name
column that opens the snapshot diff view filtered to only the categories
that actually changed, with the count columns rendered as plain numbers.

The link's `?selectedTypes=` filter is built from the non-zero relevant
categories (`added`, `removed`, `changed`, `renamed`) — `unchanged`,
`skipped`, and `errored` are never included. When nothing relevant
changed, the link opens unfiltered so a reviewer is never shown an empty
filtered view.

The change is confined to the shared markdown templates in
`src/sentry/preprod/vcs/`; the `selectedTypes` URL param and its
comma-separated parsing already exist on the frontend, so no UI change
is needed.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: OpenAI Codex <noreply@openai.com>
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