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

Consent Privacy Request Status when Identity Verification Required #2736

Merged
merged 2 commits into from
Mar 2, 2023

Conversation

pattisdr
Copy link
Contributor

@pattisdr pattisdr commented Mar 2, 2023

Closes #2735

Code Changes

  • Update the logic as to which initial status a Privacy Request is given. If the request is already authenticated, even if subject_identity_verification_required=True, this should be a PENDING request, not "identity unverified". This was putting the consent request in a non-executable state. It's identity was already verified, but the privacy request is sitting there in the wrong state and can't be manually approved.

Steps to Confirm

  • Set your src/fides/data/test_env/fides.test_env.toml file to have subject_identity_verification_required = true
  • Update one consent option in the test env config.json to be executable. Rebuild the privacy center
  • Run nox -s fides_env(dev)
  • Setup mailgun locally
  • Go to the privacy center. Do a hard refresh
  • Click on Manage your consent and enter an email you control
  • Go to your email and retrieve the verification code
  • Return to the privacy center and enter the code into the Enter verification code modal and click submit
  • Update your consent preferences and click save
  • Login to the admin app. You should see the associated privacy request with a status of "New" instead of "Identity Unverified"

Pre-Merge Checklist

Description Of Changes

When updating consent preferences, and subject_identity_verification_required is True, Privacy Request should be put in a status of "pending" not "identity_unverified" as identity was verified before the consent preferences were saved.

Screenshot 2023-03-02 at 2 42 14 PM

…required is True, Privacy Request should be put in a status of "pending" not "identity_unverified" as identity was verified before the consent preferences were saved.
@pattisdr pattisdr marked this pull request as ready for review March 2, 2023 20:52
@seanpreston seanpreston self-requested a review March 2, 2023 20:55
@cypress
Copy link

cypress bot commented Mar 2, 2023

Passing run #575 ↗︎

0 3 0 0 Flakiness 0

Details:

Merge 1fbddb8 into 0e7d3f7...
Project: fides Commit: 933884efa5 ℹ️
Status: Passed Duration: 00:42 💡
Started: Mar 2, 2023 9:05 PM Ended: Mar 2, 2023 9:06 PM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (0e7d3f7) 86.58% compared to head (1fbddb8) 86.58%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2736   +/-   ##
=======================================
  Coverage   86.58%   86.58%           
=======================================
  Files         290      290           
  Lines       16210    16210           
  Branches     2059     2059           
=======================================
  Hits        14035    14035           
  Misses       1792     1792           
  Partials      383      383           
Impacted Files Coverage Δ
...rc/fides/api/ops/api/v1/endpoints/drp_endpoints.py 92.00% <ø> (ø)
.../ops/api/v1/endpoints/privacy_request_endpoints.py 88.78% <ø> (ø)
.../service/privacy_request/request_runner_service.py 77.15% <ø> (ø)
...api/ops/service/privacy_request/request_service.py 91.66% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@seanpreston seanpreston left a comment

Choose a reason for hiding this comment

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

Thankyou @pattisdr

@seanpreston seanpreston merged commit 87370f4 into main Mar 2, 2023
@seanpreston seanpreston deleted the consent_requests_identity_verification_required branch March 2, 2023 22:39
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.

Consent requests always show their status as UNVERIFIED
2 participants