[wp-trac] [WordPress Trac] #43438: Add filters and Ajax support for personal data export

WordPress Trac noreply at wordpress.org
Fri Jun 1 20:20:49 UTC 2018


#43438: Add filters and Ajax support for personal data export
-----------------------------------------------+-----------------------
 Reporter:  azaozz                             |       Owner:  desrosj
     Type:  enhancement                        |      Status:  assigned
 Priority:  low                                |   Milestone:  4.9.7
Component:  Privacy                            |     Version:  4.9.6
 Severity:  normal                             |  Resolution:
 Keywords:  gdpr has-unit-tests needs-refresh  |     Focuses:
-----------------------------------------------+-----------------------
Changes (by desrosj):

 * keywords:  gdpr has-unit-tests => gdpr has-unit-tests needs-refresh
 * version:   => 4.9.6
 * milestone:  4.9.8 => 4.9.7


Comment:

 Moving to 4.9.7 so that these unit tests can get added. Some thoughts on
 [attachment:43438.12.diff] (mostly a check list of what is left):

 `wp_ajax_wp_privacy_export_personal_data()` tests:

 - A test for `Invalid request ID.` scenario is missing.
 -
 `test_wp_ajax_wp_privacy_export_personal_data_should_error_when_current_user_missing_required_capability()`
 test's documentation is confusing. It says that the function should
 successfully send exporters response data when the user is an
 administrator, but it then sets the user as an Author, and tests that the
 response was not a success.
 - Missing tests for the `Invalid request type` scenario.
 - MIssing tests for the `A valid email address must be given.` scenario.
 - Missing tests for the `Missing exporter index.` scenario.
 - Missing tests for the `Missing page index.` scenario.
 - Missing tests for all of the errors indicating incorrect exporter usage.

 `wp_ajax_wp_privacy_erase_personal_data()` tests:

 - This is also missing a large handful of error scenarios, as well as
 scenarios indicating incorrect erasure usage by plugins.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43438#comment:65>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list