getsentry / getsentry/sentry

Incorrect event preview shown when filtering by environment

Open
#35,504 6 comments 0 reactions 0 assignees View on GitHub
Bug Waiting for: Product Owner
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
1d 5h
Merged PRs (30d)
624

Description

### 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](https://user-images.githubusercontent.com/57534485/172832607-6178d4d2-71aa-409e-9711-d9cd962ef720.png)
![Production Filter](https://user-images.githubusercontent.com/57534485/172832658-ca761ecb-20b4-4093-8738-5702ef3b2ed5.png)
![Opened issue](https://user-images.githubusercontent.com/57534485/172832723-2338e9cb-33ef-41e1-9c40-e11692a197d9.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.