Commit Graph

67 Commits

Author SHA1 Message Date
Christie Rice
8fb4049c62 Remove flaky test (#23075) 2020-02-14 09:05:45 -05:00
Feanil Patel
046feb0cf0 Merge pull request #22649 from edx/feanil/fix_pep8
Fix all E303 pep8 errors.
2019-12-30 13:32:26 -05:00
Feanil Patel
6e3fe00fff Fix all E303 pep8 errors. 2019-12-30 12:25:38 -05:00
Feanil Patel
2df8b8226b Merge pull request #22643 from edx/feanil/2to3_asserts
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -05:00
Feanil Patel
9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Feanil Patel
70294b0ad2 Run 2to3 -f asserts . -w on edx-platform.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
adeelehsan
609fe8632c Merge pull request #21777 from edx/aehsan/prod-707/fixed_encoding_error
Used encode instead of str
2019-09-26 18:01:25 +05:00
adeelehsan
8e2cdc2dad Used smart_str instead of str 2019-09-26 16:28:03 +05:00
Ayub khan
5c47a3b425 BOM Project
Updated __unicode__ to __str__
2019-09-25 18:31:54 +05:00
Ayub khan
f9a4f6e307 BOM-288
python3 compatibility
2019-09-06 12:31:59 +05:00
uzairr
32aa2273ab Python-modernize on edx-platform (350 of 380)
After executing python-modernize and isort, few changes
occurred in import sequence as well as unicode func is
replaced by six.text_type func.

INCR-453
2019-07-12 13:43:35 +05:00
usama sadiq
79d02a1b67 Python3 Update
Added absolute_import
Changed unicode() with six.text_type()
2019-07-11 19:27:15 +05:00
Stu Young
7d8f779fc0 incr-272 (#20567)
* run python modernize

* run isort
2019-05-15 15:47:59 -04:00
Julia Eskew
368f221f0a Initial start on annotations. 2019-02-19 11:24:21 -05:00
Michael Youngstrom
3221c2b91f Remove lms pytest shards 2019-02-12 11:03:46 -05:00
Matthew Piatetsky
6e81c84d8b fix unicode strings in lms/ part 1 2019-02-05 15:15:02 -05:00
Zia Fazal
ae34212528 Fixed bug which stopped new user link with All edX Users sailthru list 2018-12-21 12:11:20 -05:00
bmedx
9b3abd5598 DEPR-8 - Remove retire_mailings endpoint and supporting code 2018-11-27 11:51:03 -05:00
Zia Fazal
9bfe4c3b6c Do not send user info to sailthru when registered from white label site
Added tests to support changes
2018-10-11 17:26:02 +05:00
Nimisha Asthagiri
8cf44283c9 Consolidate user login and authentication code 2018-09-15 03:21:39 -04:00
Jeremy Bowman
1a5bf35357 TE-2689 Remove useless pylint suppressions part 2 2018-08-14 17:39:02 -04:00
Uzair Rasheed
0c610749c9 Refactor Code for LEARNER-5257
Course key object was not serializable before sending to celery
task.
2018-07-17 18:20:39 +05:00
uzairr
d84d47f32c Update sailthru audit purchase calls
Currently, there are two purchase calls are occurring for each audit
purchase on sail-thru.To avoid it,code is updated so that a single
call will occur for each purchase.

LEARNER-5257
2018-07-09 01:09:27 +05: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
J Eskew
c87ba77233 Revert "Retry upon Sailthru optout timeout." 2018-05-23 10:59:28 -04:00
John Eskew
597e6c66d5 Add backoff module as a new requirement.
Use backoff when calling Sailthru API to retry upon optout timeouts.
2018-05-22 16:03:41 -04:00
bmedx
1e6c6fca5c Fix issues with Sailthru retirement 2018-05-10 13:31:34 -04:00
uzairr
dfb295fe38 Send verification status email through sailthru
Support needs to inform a learner different states of its
id-verification.In order to achieve it email will be sent
to learner about its verification state using sailthru.

LEARNER-617
2018-05-07 12:30:47 +05:00
Stuart Young
1fd2167144 rebalance python unittests onto new shards 2018-05-03 11:16:05 -04:00
bmedx
4390773f4b Clean up some warnings to get enough headroom to pass tests 2018-04-19 15:04:39 -04:00
bmedx
65147386c0 PLAT-2028 - Create mailing list retirement API endpoint
- Removes "email-optin" UserOrgTags for the user
- Creates and uses a new "UserRetireMailingsSignal" signal
- Creates and uses a new "CanRetireUser" permission
- Creates and uses a new setting "RETIREMENT_SERVICE_WORKER_USERNAME"
- Creates a signal handler to globally opt-out the user from Sailthru
2018-04-05 15:52:26 -04:00
Douglas Hall
7b65a76d33 Reverting celery task kwarg name. 2018-04-02 12:40:03 -04:00
Waheed Ahmed
8eb73a6e17 Route sailthru tasks to lms ace queue instead of default.
LEARNER-4801
2018-03-29 14:39:03 +05:00
Douglas Hall
2ecbe19b29 ENT-936 Allow TPA providers to be configured to not send a welcome email upon registration. 2018-03-28 14:00:35 -04:00
Waheed Ahmed
07a0aac814 Assign new sailthru var upon signup.
In SailThru, randomly set a var value of 0-9 on each user upon signup.

LEARNER-4177
2018-02-16 19:20:37 +05:00
uzairr
4e91ce19b1 Handle Exception in getting cookies from Sailthru
In order to send email, cookies are required from Sailthru,
ocassionally, celery task fails possibly because of request timeout
that ultimately fails login.To avoid it,generic exception handler
is added so that login will not fail in future.

LEARNER-3465
2018-01-31 18:35:19 +05:00
Tasawer Nawaz
abf7b26b32 Exclude enterprise learners from the welcome email
LEARNER-3649
2017-12-28 15:49:45 +05:00
John Eskew
7b4a3c1714 Move email_marketing startup.py to AppConfig::ready().
Remove query counting of LMS signals.
2017-11-03 13:57:38 -04:00
uzairr
1b6ed3ba21 Celery task to update sailthru purchase record
After change in the audit enrollment process, edX platform is
no longer keeping its audit enrollment record on sailthru.To keep
updated sailthru a celery task is created that will update sailthru
user profile in case of enroll/un-enroll of any audit enrollment course.

LEARNER-2694
2017-11-01 15:28:52 +00:00
Dillon Dumesnil
f54edeff2e Removing flaky test 2017-10-26 11:31:42 -04:00
tasawernawaz
9d7a1d5b53 send welcome email to only activated users
LEARNER-2474
2017-09-12 10:44:05 +05:00
Waheed Ahmed
7d5446125d Create migration to remove 'sailthru_activation_template' from DB.
Follow up PR for PR-15863 to remove the field from database table.

LEARNER-2201
2017-08-29 13:07:28 +05:00
uzairr
1aea33cefc Fix email will not sent to white-label users
White label partners reported that the users are receiving edX
welcome emails at the time of signup.To solve it, a check is added
that will assure, only edX users will receive the welcome email.

LEARNER-1466

changes requested

update

update

updated
2017-08-28 14:55:24 +00:00
Waheed Ahmed
b069020710 Remove deprecated field 'sailthru_activation_template'.
LEARNER-2201
2017-08-24 11:58:16 +05:00
Waheed Ahmed
33e077d4e2 Add activation_key var to user profile in SailThru.
As an email marketer, I would like to send an account activation reminder to learners who haven't activated
their accounts to increase their chances of coming back and engaging with our platform. Each user profile in
SailThru will have a var with the correct activation_key originally assigned to the user.

LEARNER-2110
2017-08-18 19:34:52 +05:00
Waheed Ahmed
f780b02b03 Send welcome email to inactive learners on registration.
LEARNER-2039
2017-08-09 16:39:14 +05:00
Waheed Ahmed
853c9cd8df Revert "Send welcome email to inactive learners on registration." 2017-08-08 19:00:09 +05:00
Waheed Ahmed
f073a11475 Send welcome email to inactive learners on registration.
LEARNER-2039
2017-08-07 12:44:50 +05:00
Anthony Mangano
398fd19ba5 Merge pull request #15502 from edx/LEARNER-1298-LEARNER-1299-send-ui-lang-to-sailthru
Set ui_lang in Sailthru when creating and updating users
2017-07-11 14:35:06 -04:00
Anthony Mangano
4f4f25b432 Set ui_lang in Sailthru when creating and updating users 2017-07-11 11:27:01 -04:00