Fixes bugs: 926673, 1011220, 1011227, 1011243 * Expose new API endpoint for v2 * Use django-rest-framework instead of tastypie * Respect per field privacy level * API Resources: Users, Groups, Skills * Manage API v2 in /admin * Add page to allow users manage their API keys * Grant PUBLIC level API access for vouched Mozillians
Stage and Prod share the same Basket and ET setup which can result in updating the email subscription preferences of users while testing on stage. We remove the basket tokens from stage dumps which, in combination with the email address change of all profiles, will result in users getting subscribed as new users in Basket/ET and therefore overcome this issue. In the future we will have a staging Basket/ET setup connected with mozillians stage and this change will be still needed, since the Prod tokens will be no longer valid.
Bash script now creates 4 databases instead of 2: - sanitize_dev_$DB - sanitized_dev_$DB - sanitize_stage_$DB - sanitized_stage_$DB mysqldump is run against the sanitized_* databases, i.e. sanitized_stage_mozillians_org and sanitized_dev_mozillians_org Python SQL generation script was altered to: - Execute all generated SQL into a transaction, so it's either all executed or nothing executed. - The last command of the sanitization process is to rename the database E.g sanitize_dev_mozillians_org becomes sanitized_dev_mozillians_org