-
Notifications
You must be signed in to change notification settings - Fork 77
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
Adding ability to resubmit DSRs #5658
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fides
|
Project |
fides
|
Branch Review |
refs/pull/5658/merge
|
Run status |
|
Run duration | 00m 48s |
Commit |
|
Committer | Adrian Galvan |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
5
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (84.85%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #5658 +/- ##
==========================================
+ Coverage 86.85% 87.17% +0.32%
==========================================
Files 388 389 +1
Lines 24101 24220 +119
Branches 2606 2624 +18
==========================================
+ Hits 20932 21114 +182
+ Misses 2611 2532 -79
- Partials 558 574 +16 ☔ View full report in Codecov by Sentry. |
if self.config_proxy.execution.require_manual_request_approval: | ||
self.approve_privacy_requests( | ||
[privacy_request_id], | ||
reviewed_by=reviewed_by, | ||
suppress_notification=True, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if the env var changes between runs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test upgrade/downgrade
authenticated=True, | ||
|
||
# It's a bit weird to initialize the privacy request service here, | ||
# but this logic is slated for deprecation so it's not worth doing a larger refactor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow up on deprecation
def get_cached_encryption_key(self) -> Optional[str]: | ||
"""Gets the cached encryption key for this privacy request.""" | ||
cache: FidesopsRedis = get_cache() | ||
encryption_key = cache.get(get_encryption_cache_key(self.id, "key")) | ||
return encryption_key | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create ticket to persist encryption key
def test_resubmit_privacy_request( | ||
self, | ||
url, | ||
api_client: TestClient, | ||
generate_auth_header, | ||
) -> None: | ||
auth_header = generate_auth_header(scopes=[PRIVACY_REQUEST_CREATE]) | ||
response = api_client.post( | ||
url, | ||
headers=auth_header, | ||
) | ||
assert response.status_code == HTTP_200_OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add more tests around completed and pending tests + add docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did a screenshare CR session with @galvana , and all comments / requests are above, non-blocking.
fides
|
Project |
fides
|
Branch Review |
main
|
Run status |
|
Run duration | 00m 50s |
Commit |
|
Committer | Adrian Galvan |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
5
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Closes LJ-112
Description Of Changes
Adds a new
/resubmit
endpoint to fully resubmit any errored privacy requests.Code Changes
PrivacyRequestService
andMessagingService
/resubmit
endpointSteps to Confirm
nox -s dev -- postgres
Pre-Merge Checklist
CHANGELOG.md
updatedmain
downgrade()
migration is correct and works