Commit graph

30778 commits

Author SHA1 Message Date
Gavin D'souza
6b104e2bf1 feat: Partial field value redaction
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
2021-02-26 21:24:02 +05:30
Gavin D'souza
3208836fae fix: Redact field data completely defined via redact_fields
* 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"
2021-02-26 21:12:03 +05:30
Gavin D'souza
c220c6063d fix: Standardize anonymization Data
* 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
2021-02-26 20:59:49 +05:30
Gavin D'souza
af3c8d45a2 fix: Single trigger for Data Deletion workflow
* Sytem Manager authorization for triggering data deletion
* Validate form verififcation state
* Disable user before data deletion process starts
2021-02-26 20:53:40 +05:30
Gavin D'souza
e8efc32b28 style: Re-fromatted functions via Black-ish 2021-02-26 20:49:44 +05:30
Gavin D'souza
479631c144 refactor: Split functionality into re-usable methods 2021-02-26 20:45:30 +05:30
Gavin D'souza
557d1aa6e7 fix: Use standard frappe configuration for Email validation
happy side-effect: JSON shrinks with new schema
2021-02-26 20:37:46 +05:30
Gavin D'souza
cd94227aa5 refactor(hooks): Personal Data Deletion Request
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
2021-02-26 20:31:02 +05:30
mergify[bot]
cce7b3d96e
Merge pull request #12423 from gavindsouza/server-script-scheduled-record
refactor: Server scripts
2021-02-19 06:51:12 +00:00
Suraj Shetty
ce752dbafd
fix: Checkbox style for disabled but checked checkbox (#12435) 2021-02-19 09:24:56 +05:30
Suraj Shetty
82c8bbbacd
fix: Disable trigger_change_on_input_event to avoid unexpected behavior (#12429) 2021-02-18 16:43:51 +05:30
mergify[bot]
db88902a70
Merge pull request #12427 from rohitwaghchaure/ignore-notify-update-in-patch
perf: Ignore notify update in patch execution
2021-02-18 09:13:27 +00:00
mergify[bot]
0c4910d7c5
Merge pull request #12417 from netchampfaris/fix-request-handling
fix: Throw early if invalid arguments
2021-02-18 08:21:10 +00:00
Rohit Waghchaure
bfab46c536 fix: ignore notify update in patch execution 2021-02-18 13:33:12 +05:30
Gavin D'souza
e901feb1bf refactor(minor): Rename field event_type to event_frequency
* Drop _dashboard.py in favour of links in the .json
2021-02-18 13:05:55 +05:30
Suraj Shetty
b034161397
Merge pull request #12425 from surajshetty3416/fix-form-padding 2021-02-18 12:57:52 +05:30
Suraj Shetty
3aa2a91baf fix: Table multiselect style 2021-02-18 12:35:38 +05:30
prssanna
7b66292d27 fix: kanban column max height 2021-02-18 12:28:47 +05:30
Prssanna Desai
24a90c76d4
Merge pull request #12419 from prssanna/redesign-fixes 2021-02-18 12:20:19 +05:30
Suraj Shetty
cdd7f17609 fix: Update breakpoint 2021-02-18 12:00:05 +05:30
prssanna
24aabd2b02 fix: ui tests 2021-02-18 11:24:25 +05:30
Gavin D'souza
f78e5deb10 refactor: Server Script
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
2021-02-17 19:18:48 +05:30
Gavin D'souza
b376e67608 refactor: Scheduler Server Scripts
* 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>
2021-02-17 19:10:46 +05:30
Gavin D'souza
c8a0bd000d style: Add type hints, Black-ish & f-strings 2021-02-17 19:07:08 +05:30
Gavin D'souza
53378ac7e1 fix: Scheduled Job Type sync conditions
Delete only if job not defined in hooks' scheduler events, neither is
linked to a server script
2021-02-17 19:00:28 +05:30
prssanna
c5bd96aea0 fix: kanban like 2021-02-17 16:42:42 +05:30
prssanna
c42b5a5cc7 fix: kanban last card cut off 2021-02-17 16:25:23 +05:30
prssanna
f91c9bf467 fix: remove hidden_due_do_dependency property for filter field
Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2021-02-17 16:25:09 +05:30
prssanna
9dd4d4b72a fix: show first filter row on opening popover 2021-02-17 16:23:45 +05:30
prssanna
68bee13f6e fix: title for link field items in awesomplete 2021-02-17 15:38:59 +05:30
mergify[bot]
344f7878ef
Merge pull request #12420 from ankush/fix_formatter
fix: remove trailing quote from formatter html
2021-02-17 09:33:47 +00:00
Ankush Menat
c02a7ef214
fix: remove trailing quote from formatter html
Related issue: FR-ISS-256268
2021-02-17 14:35:14 +05:30
prssanna
caf0adaa9d fix: sidebar dropdown placeholder 2021-02-17 13:02:01 +05:30
prssanna
f7c930d50d fix: don't show report builder link on report builder route 2021-02-17 13:01:13 +05:30
Suraj Shetty
ebc18892b6 fix: Form padding in mobile view 2021-02-17 12:49:15 +05:30
prssanna
d86832aaf2 fix: disabled link style 2021-02-17 12:34:48 +05:30
prssanna
bc2656dbd8 fix: remove duplicate variables.scss import 2021-02-17 11:41:33 +05:30
prssanna
cef115967b fix: awesomplete width for filters 2021-02-17 10:59:38 +05:30
Suraj Shetty
aea5f83b46 fix: Remove unnecessary padding value in mobile.scss 2021-02-17 10:29:08 +05:30
Faris Ansari
6fa38a325d fix: Fallback value for allow_traceback when no db 2021-02-16 21:45:26 +05:30
Faris Ansari
51bb7aa39a fix: Throw early if invalid arguments 2021-02-16 21:44:35 +05:30
prssanna
7beaf81e07 Merge branch 'develop' of https://github.com/frappe/frappe into develop 2021-02-16 18:26:28 +05:30
prssanna
cf1621cc8c fix: unescape docname before passing to update_order_for_single_card 2021-02-16 18:26:19 +05:30
Suraj Shetty
49372564df
Merge pull request #12415 from prssanna/redesign-fixes 2021-02-16 18:13:29 +05:30
prssanna
14580a7675 fix: add back removed .centered class 2021-02-16 18:10:38 +05:30
Prssanna Desai
05d3537c20
Merge pull request #12403 from prssanna/design-fixes 2021-02-16 17:40:55 +05:30
prssanna
b7604d0154 fix: query report route in sidebar report selector 2021-02-16 17:40:17 +05:30
mergify[bot]
4ee1e0f1e6
Merge pull request #12381 from hasnain2808/aloow-on-submit
fix: allow on submit for child table not working
2021-02-16 11:26:22 +00:00
Prssanna Desai
774d3cf55e
Merge branch 'develop' into design-fixes 2021-02-16 16:52:26 +05:30
Suraj Shetty
dbf60c7483
Merge branch 'develop' into aloow-on-submit 2021-02-16 16:18:04 +05:30