Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-3935 Use correct query for project health view setting #2242

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

khelif96
Copy link
Contributor

DEVPROD-3935

Description

We have logged nearly 7k events to sentry due to a failing permission check caused by the projectHealthView query consistently failing. It was trying to use the ProjectSettings query to fetch the projectHealthView state
Since most users don't have project settings access this query always fails and will consistently report an error.
This pr updates it so that we use a query that does not require the same permissions.

Testing

Since I am an admin it is difficult to test but since the query does not have a permissions check directive this should work.

@khelif96 khelif96 requested a review from a team January 24, 2024 22:28
Copy link

cypress bot commented Jan 24, 2024

1 flaky test on run #15413 ↗︎

0 545 10 0 Flakiness 1
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Update src/pages/commits/ViewToggle.tsx
Project: Spruce Commit: f86ba46053
Status: Passed Duration: 18:19 💡
Started: Jan 25, 2024 4:13 PM Ended: Jan 25, 2024 4:31 PM

Review all test suite changes for PR #2242 ↗︎

Copy link
Contributor

@sophstad sophstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

src/pages/commits/ViewToggle.tsx Outdated Show resolved Hide resolved
@khelif96 khelif96 merged commit 39459e0 into evergreen-ci:main Jan 25, 2024
3 of 6 checks passed
@khelif96 khelif96 deleted the DEVPROD-3935 branch January 26, 2024 15:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants