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

Fixing response handling #4180

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Fixing response handling #4180

merged 1 commit into from
Sep 28, 2023

Conversation

galvana
Copy link
Contributor

@galvana galvana commented Sep 28, 2023

Description Of Changes

The PUT /custom-asset endpoint in fidesplus was updated to return the accepted CSS instead of just a success status. This meant that the Admin UI would try to parse the response as JSON and report a false error toast. This changes makes it so the response is treated as plain text instead of JSON.

Steps to Confirm

  • Spin up fidesplus
  • Spin up the Admin UI
  • Navigate to Consent > Privacy experience
  • Click on Upload stylesheet
  • Upload a valid stylesheet

Pre-Merge Checklist

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

@cypress
Copy link

cypress bot commented Sep 28, 2023

Passing run #4393 ↗︎

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 7ef4e0b into 157b33e...
Project: fides Commit: 46b7b45a0e ℹ️
Status: Passed Duration: 00:51 💡
Started: Sep 28, 2023 5:05 PM Ended: Sep 28, 2023 5:06 PM

Review all test suite changes for PR #4180 ↗︎

Copy link
Contributor

@TheAndrewJackson TheAndrewJackson left a comment

Choose a reason for hiding this comment

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

:shipit:

@galvana galvana merged commit 92fd45b into main Sep 28, 2023
10 checks passed
@galvana galvana deleted the fix-custom-asset-repsonse-handling branch September 28, 2023 21:55
galvana added a commit that referenced this pull request Sep 28, 2023
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