Skip to content

Incorrect event preview shown when filtering by environment #35504

@alyssaruth

Description

@alyssaruth

Environment

SaaS (https://sentry.io/)

Version

No response

Steps to Reproduce

  1. Set up multiple environments in Sentry, and produce errors in them that will be grouped together as a single issue.
  2. From the 'Issues' screen, toggle between the different environments.

Expected Result

The event preview that's displayed under the issue title should update, to show an example relevant to the selected environment.

Actual Result

The event preview does not change. In our case, this often leads to URLs from the dev environment being shown, which is confusing. When you click into the issue, an example from the selected environment is correctly shown - so this only affects the preview.

I've attached screenshots to hopefully show what I mean - the issue shows a CI preview regardless of the chosen environment (but when opened and filtered on production, correctly shows a prod example)

CI Filter
Production Filter
Opened issue

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions