Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Add due_date to PrivacyRequest model #1147

Closed
seanpreston opened this issue Aug 25, 2022 · 0 comments · Fixed by #1259
Closed

Add due_date to PrivacyRequest model #1147

seanpreston opened this issue Aug 25, 2022 · 0 comments · Fixed by #1259
Assignees
Labels
DSR SLA Countdown enhancement New feature or request

Comments

@seanpreston
Copy link
Contributor

seanpreston commented Aug 25, 2022

To track the date by which a PrivacyRequest must be actioned, we must store it on the PrivacyRequest model. This attribute should be set automatically on PrivacyRequest creation, based upon the Policy.execution_timeframe belonging to the policy with which the request is associated. PrivacyRequest.due_date can be calculated by created_at + timedelta(execution_timeframe)

We'll want to allow sorting PrivacyRequests based on this field, so an index on this field could be appropriate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
DSR SLA Countdown enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants