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

Basic consent reporting UI #4488

Merged
merged 10 commits into from
Dec 7, 2023
Merged

Conversation

jpople
Copy link
Contributor

@jpople jpople commented Dec 6, 2023

Closes #PROD-1434

Description Of Changes

Adds a basic consent reporting UI, from which you can download a CSV consent report from within a date range.

Screenshot 2023-12-06 at 12 55 36 AM

Steps to Confirm

First, populate the privacypreferencehistory table with some requests (instructions courtesy of Adam):

Then, in admin UI:

  • Navigate to "Consent" → "Consent reporting"
  • Input some appropriate dates into the from/to date pickers
  • Click "download report"
  • Button should grey out and be disabled while loading, then report should download

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Relevant Follow-Up Issues Created
  • Update CHANGELOG.md

Copy link

vercel bot commented Dec 6, 2023

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 Dec 7, 2023 6:52pm

Copy link

cypress bot commented Dec 6, 2023

Passing run #5553 ↗︎

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 c16ffd1 into dae3113...
Project: fides Commit: 1a3edd5188 ℹ️
Status: Passed Duration: 00:31 💡
Started: Dec 7, 2023 7:00 PM Ended: Dec 7, 2023 7:00 PM

Review all test suite changes for PR #4488 ↗︎

@jpople
Copy link
Contributor Author

jpople commented Dec 6, 2023

@simon-keane This is available for review.

return {
url: "plus/consent_reporting",
params,
responseHandler: "content-type",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Error results are JSON objects with a detail field, whereas successful results are just the text of the CSV; this makes Redux parse the result out from either.

"A problem occurred while generating your consent report. Please try again."
);
toast({ status: "error", description: message });
} else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The actual download had to be moved out of the slice file to be able to handle errors.

@jpople jpople merged commit b59aa61 into main Dec 7, 2023
13 checks passed
@jpople jpople deleted the jpople/prod-1434/consent-reporting-ui branch December 7, 2023 21:21
jpople added a commit that referenced this pull request Dec 7, 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