-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stats): hide stats if no project access (#80447)
Hide stats, session stats, transaction stats, and options in project serialization if a user does not have access to the project. This aligns with the behavior of OrganizationStatsEndpointV2 endpoint: https://github.com/getsentry/sentry/blob/0b9d9f8ddcd27ea00b97bd66bc6380f9fddf360e/src/sentry/api/endpoints/organization_stats_v2.py#L202 These stats are used only by projectCard.tsx in the list of projects: <img width="472" alt="image" src="https://github.com/user-attachments/assets/00afa358-e256-423f-b34e-161d31945109"> Which are not visible when there is no access to a project, so it should be a safe change.
- Loading branch information
Showing
2 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters