adeelehsan
35fb321a89
fetch lms root url using configuration helper
...
PROD-1063:
2020-01-20 12:58:34 +05:00
adeelehsan
12708a093d
Unsubscribe link added in bulk emails
2020-01-15 16:56:35 +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
39d3a7ca17
Fix pep8 issues caused by the fixer.
2019-12-30 11:42:04 -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
Taranjeet Singh
00653433a5
Adds optional "unsubscribe" link and api support to let users opt out of email updates.
...
Scheduled emails show "unsubscribe" link if waffle switch
`schedules.course_update_show_unsubscribe` is enabled, and
settings.ACE_ENABLED_POLICIES respects `bulk_email_optout`.
API endpoint allows GET/POST requests, which:
* GET asks for confirmation of opt-out
* POST accepts "unsubscribe" or "cancel", where "unsubscribe" creates the
Optout entry, and "cancel" does nothing.
Fixes flaky tests:
* The resolvers handle users in "bins", which are groups that depend on the user ID.
* The test user ID varies depending on the test order.
* This change ensures that the bin requested matches the user for the test.
2019-12-09 22:49:57 +10:30
DawoudSheraz
50fe851614
remove small job queue condition for bulk email task
2019-11-11 11:46:16 +05:00
Manjinder Singh
7f3045cf75
BOM-933: Fix type mismatches in various migrations 4 ( #22146 )
...
* fix type mismatch in course_goals migrations
* fix type mismatch in experiments migrations
* fix type mismatch in xblock_django migrations
* fix type mismatch in catalog migrations
* fix type mismatch in static_replace migrations
* fix type mismatch in bulk_email migrations
* fix type mismatch in course_overviews migrations
2019-10-24 13:47:51 -04:00
Jeremy Bowman
b351e58c25
Fix bulk email i18n tests under Python 3 BOM-927 ( #22052 )
2019-10-17 10:40:47 -04:00
Nimisha Asthagiri
beb95eb69c
Python 3: assertIn -> assertContains consistency
2019-09-30 08:51:01 -04:00
Nimisha Asthagiri
a6b219a9e9
Python-3: assertIn(..response.content) -> assertContains
2019-09-30 08:50:38 -04:00
Stu Young
7c6c166e73
fix toggle implementation annotations ( #21802 )
...
fix toggle implementation annotations and rename waffle flags
2019-09-27 11:45:40 -04:00
Ned Batchelder
efba6e45e8
Finally import courseware properly everywhere to get rid of a warning
2019-09-26 09:40:15 -04:00
Ayub khan
5c47a3b425
BOM Project
...
Updated __unicode__ to __str__
2019-09-25 18:31:54 +05:00
Chris Pappas
4c9af183cb
ENT-2294 | Moving utility functions in program enrollments to places … ( #21752 )
...
* ENT-2294 | Moving utility functions in program enrollments to places related to the data they manipulate
* updating a mock path
* minor test fix
2019-09-24 10:07:38 -04:00
Stu Young
13bbf85257
clean up toggle annotations ( #21673 )
...
clean up toggle annotations and lint when running feature toggle report
2019-09-17 11:11:20 -04:00
Ayub
85be57b64a
Merge pull request #21397 from edx/BOM-95
...
BOM-95
2019-08-22 12:41:08 +05:00
Ayub khan
8a95a8e520
BOM-95
...
assertItemsEqual with six.assertCountEqual
2019-08-21 17:01:40 +05:00
Feanil Patel
73a146fbbe
Revert "assertItemsEqual() moved to assertCountEqual()"
...
This reverts commit 3d2617983b .
The change was not quite right because the method six provides needs to
have `self` be passed in as well. See the docs here:
https://six.readthedocs.io/#unittest-assertions
Reverting for now and we can fix it in smaller chunks later.
2019-08-20 15:31:20 -04:00
Dave St.Germain
3d2617983b
assertItemsEqual() moved to assertCountEqual()
2019-08-19 17:00:17 -04:00
Nimisha Asthagiri
d564af8301
Fix for decode errors in bulk_email.tests.test_course_optout.py
2019-08-19 14:26:48 -04:00
David Ormsbee
9a1385585f
Convert response bytes to str before JSON parsing. ( #21375 )
...
Convert response bytes to str before JSON parsing.
2019-08-19 11:01:55 -04:00
Aarif
4b1ef3005e
Merge pull request #21116 from edx/INCR-447
...
INCR-447 Python 3 compatibility
2019-07-25 14:51:17 +05:00
aarif
fd3a83236a
ran python-modernize and isort on files mentioned in INCR-446
...
changes made to comply with quality
changes made to comply with quality
changes made to comply with quality
2019-07-16 15:14:12 +05:00
aarif
0ab995a771
ran python-modernize and isort on files mentioned in INCR-447
2019-07-12 16:36:16 +05:00
Nimisha Asthagiri
01ccd877e6
Merge pull request #20702 from edx/bom/enrollment-readme
...
Enrollments README and refactor
2019-05-28 16:58:27 -04:00
Nimisha Asthagiri
6e214a85b0
Move common/djangoapps/enrollment to openedx/core/djangoapps/enrollments
2019-05-28 11:20:53 -04:00
DawoudSheraz
831a106bfa
update email subtask logs
2019-05-28 16:53:24 +05:00
Michael Roytman
5da94023e6
Merge pull request #20620 from edx/mroytman/bulk-email-python-api
...
introduce Python API for BulkEmail Djangoapp
2019-05-21 18:38:24 -04:00
Stu Young
da616921f0
INCR-257 Run python-modernize on lms/djangoapps/bulk_email/migrations and lms/djangoapps/bulk_email/tests ( #20563 )
...
* run python modernize
* run isort
* Fix quality
2019-05-21 11:34:42 -04:00
Michael Roytman
b33b8e8897
introduce Python API for BulkEmail Djangoapp
2019-05-21 09:22:08 -04:00
DawoudSheraz
9be988a12a
added time logs for bulk email
2019-05-21 18:15:11 +05:00
uzairr
3d7b60dde4
Make copyright year dynamic
...
Currently, course email templates have hard-coded copyright year.
Marketing team needs to ping engineering to update it every year.
In this PR, steps are taken to make it dynamic.
PROD-106
2019-05-08 13:08:28 +05:00
Alan Zarembok
30b9692915
PROD-9: Fix badly performing database query for bulk email by using
...
the union() function to combine multiple querysets together, rather
than the or (|) operator. This avoids a very inefficient OUTER
JOIN query that reads the entire user table.
2019-04-25 08:55:59 -04:00
albemarle
05a682f55e
use new, shorter names for feature toggle annotations ( #20202 )
2019-04-12 15:46:09 -04:00
Calen Pennington
78c8950ea3
Clean up a few remaining unicode format string errors
2019-02-20 15:28:14 -05: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
Awais Jibran
717712391f
Fixing conflicts
2019-02-12 17:50:58 +05:00
Taranjeet Singh
3eb9058dd2
Adds optional "unsubscribe" link and api support to let users opt out of email updates.
...
Scheduled emails show "unsubscribe" link if waffle switch `schedules.course_update_show_unsubscribe` is enabled, and
settings.ACE_ENABLED_POLICIES respects `bulk_email_optout`.
API endpoint allows GET/POST requests, which:
* GET asks for confirmation of opt-out
* POST accepts "unsubscribe" or "cancel", where "unsubscribe" creates the
Optout entry, and "cancel" does nothing.
2019-02-07 11:47:10 +10:30
Matthew Piatetsky
6e81c84d8b
fix unicode strings in lms/ part 1
2019-02-05 15:15:02 -05:00
cclauss
8fca11b85c
Use print() function in both Python 2 and Python 3
2019-01-13 17:16:37 +01:00
Diana Huang
6572d99e76
Remove all references to datadog from our code.
2019-01-08 15:41:24 -05:00
Ned Batchelder
3353e7425e
Remove unused imports
2018-11-03 16:07:05 -04:00
Awais Jibran
ac3c274d57
Skip sending email if an email address contains non-ascii char.
2018-09-27 22:45:15 +05:00
Jeremy Bowman
1a5bf35357
TE-2689 Remove useless pylint suppressions part 2
2018-08-14 17:39:02 -04:00
Jeremy Bowman
ca3316962d
TE-2524 Stop using nose.plugins - LMS 1
2018-07-31 13:03:18 -04:00