Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stats): hide stats if no project access #80447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oioki
Copy link
Member

@oioki oioki commented Nov 8, 2024

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:

projects = self.get_projects(request, organization, project_ids=req_proj_ids)

These stats are used only by projectCard.tsx in the list of projects:
image
Which are not visible when there is no access to a project, so it should be a safe change.

@oioki oioki requested a review from a team November 8, 2024 13:14
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 8, 2024
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