Commit Graph

424 Commits

Author SHA1 Message Date
Nimisha Asthagiri
ce4cb53672 Update Permissions to use latest edx-drf-extensions and rest_condition 2018-06-28 18:37:53 -04:00
bmedx
f3a9e508a0 Refactor retirement endpoints to isolate Sailthru and respect boundaries
- Change retire mailings endpoint to use new USER_RETIRE_THIRD_PARTY_MAILINGS signal, currently only used by Sailthru retirement
- Move USER_RETIRE_MAILINGS signal firing to the LMS misc endpoint
- Remove duplicate clearing of UserOrgTags
- Remove LMS imports in openedx/core and update usage to use new USER_RETIRE_LMS_CRITICAL and USER_RETIRE_LMS_MISC signals
- Add testing for new signal handlers and app registration for the LMS survey app
2018-06-27 10:23:49 -04:00
irfanuddinahmad
a46a28e983 incorporated manual verification 2018-06-25 12:08:54 +05:00
Brian Mesick
9ef11139d6 Merge pull request #18398 from edx/bmedx/reporting_queue_stage
Add retirement stage API that adds a user to the partner reporting queue
2018-06-22 14:34:37 -04:00
John Eskew
a09a81b138 Make retirement endpoints idempotent. 2018-06-21 15:35:30 -04:00
bmedx
706d3dd395 Add retirement stage API that adds a user to the partner reporting queue 2018-06-21 15:24:59 -04:00
bmedx
8fbe12e4cc Add retirement partner reporting queue and APIs 2018-06-18 16:22:02 -04:00
Adeel Khan
7768dd1de3 Ratelimiting registration form validation end point.
This patch would ratelimit registration form validation
endpoint for anonymous user based on his/her ip.

LEARNER-3810
2018-06-08 14:45:15 +05:00
Tyler Hallada
01191e34a5 Merge pull request #18324 from edx/thallada/PLAT-1746-format-lazy
PLAT-1746: Use Django 1.11 format_lazy instead of allow_lazy
2018-06-06 15:09:43 -04:00
Brian Mesick
832f6a7157 Merge pull request #18320 from edx/bmedx/remove_111_test_marks
Remove unused pytest markers for Django 1.11 upgrade
2018-06-06 11:15:26 -04:00
Michael Youngstrom
f4dc2ca000 Merge pull request #18314 from edx/youngstrom/remove_django_18_shim
Remove temp django upgrade logic
2018-06-06 11:09:17 -04:00
Tyler Hallada
8b0de593a1 Use Django 1.11 format_lazy instead of allow_lazy 2018-06-06 11:07:35 -04:00
Tyler Hallada
1f42d1b384 Merge pull request #18316 from edx/thallada/PLAT-1524-on-delete
PLAT-1524: Add on_delete kwarg to ForeignKey & OneToOneFields
2018-06-06 10:38:15 -04:00
Michael Youngstrom
26b4e30833 Remove django 1.8 shim 2018-06-06 10:34:56 -04:00
bmedx
c125ff6a57 Remove unused pytest markers for Django 1.11 upgrade 2018-06-06 09:58:38 -04:00
Tyler Hallada
1540f9ec72 Add on_delete kwarg to ForeignKey & OneToOneFields
Django 2.0 will make this field required for `ForeignKey` and `OneToOneFields`.
In previous versions the option defaulted to `models.CASCADE` when not
specified. This change should make the deprecation warnings in the current
Django version go away.

The migrations where also modified, but the changes should not cause a change in
the database schema since `models.CASCADE` was already the old default.
2018-06-05 17:05:12 -04:00
Eric Fischer
247bb50ed2 s/django.core.urlresolvers/django.urls/g
Django 1.10 deprecation fix for Hackathon XIX
Addresses PLAT-1397
2018-06-05 13:59:09 -04:00
Cole Rogers
623cb0d6ae Removed GDPR flag and its functionality 2018-06-04 10:25:37 -04:00
Diana Huang
8adcff938a Add new notification email. 2018-05-31 16:05:32 -04:00
Diana Huang
6de5c09239 Fix the GDPR registration form for the mobile app. 2018-05-22 14:23:48 -04:00
sanfordstudent
d4a338d4af Merge pull request #18113 from edx/sofiya/ed-2802-2
EDUCATOR-2802 Different LMS api endpoint to finish GDPR retirement for the user
2018-05-21 15:26:10 -04:00
Sofiya Semenova
cd18206167 EDUCATOR-2802: P2 gdpr endpoint 2018-05-21 11:12:54 -04:00
Omar Al-Ithawi
73af914cfc Use edx-ace for password reset email 2018-05-21 09:49:14 -04:00
Troy Sankey
a7ecfe1cd3 Fixup! refactor email_exists, and handle many more cases 2018-05-18 15:34:35 -04:00
Troy Sankey
232b359258 Fixup! pivot to treating retired emails as banned forever 2018-05-16 16:44:02 -04:00
Troy Sankey
e9276ba246 Disallow registration when the proposed email is half-retired
Our learner retirement implementation shall allow re-use of email
addresses, but we currently do not disallow re-use of emails for
learners whose retirement is still in-progress (i.e. their retirement
state is between PENDING and LMS_COMPLETE inclusive).

The time between a user initiating retirement, and the jenkins job
actually picking up the user and driving their account retirement might
be as long as 1 hour, so this is a serious concern.

Addresses EDUCATOR-2824.
2018-05-16 16:44:02 -04:00
Sofiya Semenova
057122b482 Create GDPR test user command fix for password and meta 2018-05-15 14:04:53 -04:00
John Eskew
3529e0779f Add migrations missing from previous PR. 2018-05-14 16:40:17 -04:00
J Eskew
62865599c7 Merge pull request #18154 from edx/jeskew/add_model_for_retired_users
Refuse password reset for retired users.
2018-05-14 13:02:53 -04:00
John Eskew
2ef404b83e Fix two deprecation warnings. 2018-05-14 12:24:36 -04:00
John Eskew
fee875f2a9 PLAT-2115: Refuse password reset for retired user. 2018-05-14 12:24:36 -04:00
Sanford Student
6bb2d9dcc7 EDUCAOTR-2870: move oauth token retirement to dea deactivation endpoint 2018-05-11 13:05:04 -04:00
Brian Mesick
c3ca67781a Merge pull request #18183 from edx/bmedx/PLAT-2123
Fix PLAT-2123- Bug with retiring user's original_email being hashed
2018-05-11 12:55:42 -04:00
bmedx
fd84e3f52a Fix PLAT-2123- Bug with retiring user's original_email being hashed 2018-05-11 11:13:50 -04:00
Brian Mesick
4170b5d294 Merge pull request #18175 from edx/bmedx/sailthru_retirement_fixes
Fix issues with Sailthru retirement
2018-05-10 14:01:19 -04:00
bmedx
1e6c6fca5c Fix issues with Sailthru retirement 2018-05-10 13:31:34 -04:00
Gabe Mulley
5fa6c51368 Revert "Use edx-ace for the password reset email" 2018-05-10 13:06:52 -04:00
Gabe Mulley
7a5cecf3e9 Merge pull request #16545 from appsembler/omar/fmo/multipart-email
Use edx-ace for the password reset email
2018-05-10 11:31:43 -04:00
Sofiya Semenova
cb767d5bb2 Merge pull request #18169 from edx/sofiya/gdpr-testing
Create GDPR test user management command fix for optional arguments
2018-05-10 11:23:42 -04:00
Sofiya Semenova
5dcd77ff93 Create GDPR test user management command fix for optional arguments 2018-05-09 16:53:05 -04:00
Brian Mesick
091cf1cdc8 Merge pull request #18162 from edx/bmedx/retirement_bugfixes
Fix issues with retirement state population and unenrollment
2018-05-09 14:41:25 -04:00
bmedx
01ebe1e26e Fix issues with retirement state population and unenrollment
- Prevent RetirementState state_execution_order collisions when updating
- Add slash to end of unenroll API endpoint to match other retirement endpoints
2018-05-09 10:40:00 -04:00
Sofiya Semenova
879ba582cc Merge pull request #18130 from edx/sofiya/gdpr-testing
EDUCATOR-2822 | Management command to create GDPR test user
2018-05-08 16:54:10 -04:00
Sofiya Semenova
403b67198a Management command to create GDPR test user 2018-05-08 16:04:01 -04:00
Omar Al-Ithawi
556c8b86d0 Use edx-ace for password reset email 2018-05-08 18:53:31 +03:00
bmedx
f09edea13b Fix issues with retirement state population and update view
- Fix RetirementState cascade deleting UserRetirementStatus
- Change AccountRetirementStatusView's PATCH to accept application/json
- Remove ill-considered retirementstate_pre_delete_callback
- Fix up tests
2018-05-07 11:22:11 -04:00
John Eskew
b74d720442 Remove activation keys upon logout of retired user. 2018-05-03 11:41:20 -04:00
Alex Dusenbery
95d5b13714 EDUCATOR-2753 | Add calls to retire secondary user data to the /accounts/retire endpoint. 2018-05-03 11:35:50 -04:00
Eric Fischer
2556864bfb Merge pull request #18106 from edx/efischer/is_it_this_easy
Silence deprecation warnings
2018-05-02 14:17:05 -04:00
Alex Dusenbery
2b48649a9e EDUCATOR-2771 | Adds an LMS API endpoint to retire a user account. 2018-05-02 13:10:03 -04:00