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 system information form getting stuck on loading spinner #5034

Merged
merged 6 commits into from
Jun 27, 2024

Conversation

jpople
Copy link
Contributor

@jpople jpople commented Jun 27, 2024

Closes PROD-2251

Description Of Changes

Fixes a bug where, on trying to view a system's detail page, a user with the Viewer role would get caught in an infinite "loading" screen while the dictionary query 403'd repeatedly.

This bug came from the way the dictionary query was being called; RTK Query re-runs the query and re-renders the page automatically when it errors, but the error result wasn't being cached so the query got stuck in a loop. The fix was just adding a check to show the page anyway if the query returns an error.

Code Changes

  • Allow system information form to load even when dictionary query errors
  • Replaced top-left green spinner with centered FidesSpinner
  • Added test to confirm that page loads correctly

Steps to Confirm

  • Create two systems
  • Create a user with the Viewer role and assign one of the systems to the user
  • Sign in as the user
  • View the detail page for the system that was assigned to the user
  • Page should render; should be able to make and submit changes
  • View the detail page for the system not assigned to the user
  • Page should render; if the user tries to make changes, should get a "not authorized" error

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Jun 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2024 8:15pm

Copy link

cypress bot commented Jun 27, 2024

Passing run #8588 ↗︎

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

Details:

Merge b9256f0 into 0e34550...
Project: fides Commit: 505f8ae8ef ℹ️
Status: Passed Duration: 00:36 💡
Started: Jun 27, 2024 8:23 PM Ended: Jun 27, 2024 8:24 PM

Review all test suite changes for PR #5034 ↗︎

@jpople jpople marked this pull request as ready for review June 27, 2024 20:40
@jpople jpople merged commit dec9910 into main Jun 27, 2024
13 checks passed
@jpople jpople deleted the jpople/prod-2251/system-form-permissions-fix branch June 27, 2024 21:17
Copy link

cypress bot commented Jun 27, 2024

Passing run #8593 ↗︎

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

Details:

Fix system information form getting stuck on loading spinner (#5034)
Project: fides Commit: dec991016e
Status: Passed Duration: 00:35 💡
Started: Jun 27, 2024 9:28 PM Ended: Jun 27, 2024 9:29 PM

Review all test suite changes for PR #5034 ↗︎

@cypress cypress bot mentioned this pull request Jun 28, 2024
31 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants