Finds and replaces Full Name and User email ID from specified DocTypes
Changes:
* Option "partial" added in user_data_fields
* If "redact_fields" aren't speciifed, "partial" mode is assumed
* If "rename" is set, the respective docs are renamed with self.anon
* "strict" if unset, is assumed to be False. In this case, a non conditional
query is used to delete data. If "strict" is True, Personal Data
Deletion Request will obey "filter_by" field value if defined else "owner" is used
* Replace data in the fields mentioned in the hook, user_data_fields'
redact_fields option
* The value is decided by utilizing the anonymization_value_map defined
by the __set_anonymization_data method
* Rename User doc with self.anon value and mark as "Deleted"
* Set anonymization matrix for instance of Personal Data Deletion Request
* During the initialization of the object, privacy docs are segregated
into full match and partial data redaction types
* Context for execution of _anonymize_data is set via
__set_anonymization_data by default unless set_data is False
Changes:
* Renamed hook from `user_privacy_documents` to `user_data_fields`
* Renamed ref field from `match_field` to `filter_by`
* Renamed ref field from `personal_fields` to `redact_fields`
* Removed ref field `applies_to_website_user` from hook options -- let's
treat all requests equally and redact data from all privacy docs
* Added boilerplate hook for new apps
changes:
* Added docstrings to all methods under ServerScript and resp. API
* Added validations and sync for scheduler server scripts based on b376e67608
* Restructured and simplified code to make it "less" confusing
* Added type hints for method args and returns
* Document Links to show Scheduled Job Types linked to doc
* Event Type field added to maintain track of job scheduled via server
script
* One Server Script => One Scheduled Job Type !!!
Co-authored-by: Faris Ansari <netchamp.faris@gmail.com>
Co-authored-by: Abhishek Balam <abhishekbalam96@gmail.com>