Calen Pennington
c19a3368f0
Move MessageType definitions into tasks.py
2017-10-24 10:15:38 -04:00
Calen Pennington
e81931da32
Move get_schedules_with_target_date_by_bin_and_orgs into Resolver baseclass
2017-10-24 10:15:38 -04:00
Calen Pennington
234780f5c9
Move Resolver.send into baseclass
2017-10-24 10:15:37 -04:00
Calen Pennington
33a50cf899
Rename schedule_bin to send to match standard Resolver terminology
2017-10-24 10:15:37 -04:00
Calen Pennington
b9643e9d1d
Move MessageType instantiation out of Resolvers into Tasks
2017-10-24 10:15:37 -04:00
Calen Pennington
f0fd40421b
Use SiteConfigurationFactory a bit more idiomatically
2017-10-24 10:15:36 -04:00
Calen Pennington
5dd172b3d0
Use consistent beginning_of_day function
2017-10-24 10:15:36 -04:00
Calen Pennington
eff9c9c9ab
Move common attributes into Resolver.__init__
2017-10-24 10:15:36 -04:00
Calen Pennington
27fd73ac37
Move datetime deserialization out of Resolver.schedule_bin
2017-10-24 10:15:35 -04:00
Calen Pennington
ec3ebafbc1
Pass an instantiated Site object into schedule_bin
2017-10-24 10:15:35 -04:00
Calen Pennington
2dc4621db0
Move log_prefix up to be a class attribute
2017-10-24 10:15:34 -04:00
Calen Pennington
199468eca9
DRY up the Schedule*.run task methods
2017-10-24 10:15:34 -04:00
Calen Pennington
0f1023232c
Use official celery interfaces for class-based tasks
2017-10-24 10:15:33 -04:00
Calen Pennington
505e039653
Don't swallow exceptions by returning inside finally
2017-10-24 10:15:32 -04:00
Calen Pennington
41b27e0498
Removed redundant name information from schedule_bin methods
2017-10-24 10:15:32 -04:00
Calen Pennington
d222b2d718
Move bin-task enqueuing into a classmethod (rather than having it on the RecipientResolvers
2017-10-24 10:15:31 -04:00
Calen Pennington
352fa067ae
Induce a base class for the scheduling tasks
2017-10-24 10:15:31 -04:00
Calen Pennington
0c5d788a9a
Convert bin-scheduling tasks into classes
2017-10-24 10:15:30 -04:00
Calen Pennington
4d230d629d
Move the core of the bin enumeration code into resolvers.py
2017-10-24 10:15:23 -04:00
Calen Pennington
2e4e479f4f
Move get_schedules_with_target_date_by_bin_and_orgs closer to its eventual home
2017-10-24 10:12:52 -04:00
Calen Pennington
bb050381a0
Move async_send_task binding to commands to allow tasks.py to import resolvers.py
2017-10-24 10:12:47 -04:00
Calen Pennington
4700656980
Move bin-count constants into resolvers.py nearer to the queries that use them
2017-10-24 10:12:46 -04:00
Calen Pennington
31db37eaf9
Move binning queries into resolvers.py to be closer to the Resolvers where they will live
2017-10-24 10:12:36 -04:00
Nimisha Asthagiri
cd1eaf3010
Dynamic Pacing: Waffle switch
2017-10-23 18:30:36 -04:00
Tyler Hallada
5cc73bc7fd
Merge pull request #16276 from edx/thallada/ret-dedupe-upgrade-reminder
...
Send only one upgrade reminder email per user per day
2017-10-23 14:11:45 -04:00
Sanford Student
fd8a9fdb02
EDUCATOR-1511: credit users added to verified user partition irrespective of upgrade deadline
2017-10-23 13:14:47 -04:00
Tyler Hallada
4ab477eaa7
Address Greg's comment
2017-10-23 11:59:27 -04:00
Tyler Hallada
89e7404955
Add copy preceding course list in upgrade reminder
2017-10-19 16:51:07 -04:00
ayub-khan
a71fd68673
Added user logs for save bearer token
...
Purpose of those logs is to get more information
about deadlocks coming on prod when we revoke already
existing refresh tokens.
LEARNER-717
2017-10-20 00:26:18 +05:00
Tyler Hallada
de072f8d24
Update upgrade_reminder template for multi-course
2017-10-19 11:57:41 -04:00
Tyler Hallada
9724843327
Group by user in the upgrade_reminder task
2017-10-19 11:57:40 -04:00
Matt Tuchfarber
b5ddcb3950
Merge pull request #16263 from edx/tuchfarber/program_marketing_fix
...
Fix program marketing page when it doesn't have a video.
2017-10-19 09:18:48 -04:00
Matt Tuchfarber
75e3845dad
Fix issue where program doesn't have video
...
I wrongly assumed a video field wouldn't exist on a program
that doesn't include a video. Since it exists and is set to null
this fixes the retrieval of the source url.
2017-10-18 16:56:00 -04:00
Gabe Mulley
fce9344ddc
new relic tracing for ace
2017-10-18 10:29:53 -04:00
sanfordstudent
d4ff8c1597
Merge pull request #16254 from edx/sstudent/EDUCATOR-1511
...
add logging for EDUCATOR-1511
2017-10-18 09:19:02 -04:00
Brian Mesick
ba4c6ca2aa
Merge pull request #16256 from edx/bmedx/django111_models_and_migrations_cleanup
...
Remove empty models.py files
2017-10-18 09:03:32 -04:00
John Eskew
eb99657770
Merge pull request #16220 from edx/jeskew/delete_historical_data
...
Mgmt commands to clear data from historical tables.
2017-10-18 09:00:21 -04:00
Gabe Mulley
9c63d1f338
Merge pull request #16251 from edx/include-upsell-in-10-day
...
include upsell messaging in the 10 day nudge emails
2017-10-18 08:37:41 -04:00
McKenzie Welter
0375e42d59
Merge pull request #16167 from edx/McKenzieW/course-cert-hours-of-effort
...
Flag for Hours of Effort in course certificates
2017-10-17 18:27:22 -04:00
McKenzie Welter
39bf59e6d3
Flag for Hours of Effort in course certificates
...
Retrieve different data fields from Discovery
2017-10-17 17:07:54 -04:00
bmedx
763fa4de99
Remove empty models.py files
2017-10-17 16:21:21 -04:00
John Eskew
f3e089bd3f
Mgmt commands to clear data from historical tables.
2017-10-17 15:27:59 -04:00
Sanford Student
5c90b786fe
add logging for EDUCATOR-1511
2017-10-17 15:09:15 -04:00
J. Cliff Dyer
4ab64f76a2
Add BigAutoField for BlockCompletion primary key.
2017-10-17 14:45:49 -04:00
Tyler Hallada
1dc9b1194f
Merge pull request #16209 from edx/thallada/dont-send-emails-after-course-end
...
Don't send RET emails after course end
2017-10-17 10:52:18 -04:00
Troy Sankey
e507dac87c
Merge pull request #16247 from edx/pwnage101/avoid_implicit__in_query_PLAT-1525
...
Use singular getter function where only one requirement is expected
2017-10-17 10:43:32 -04:00
Gabe Mulley
71a62f827c
use pixel measurements
2017-10-16 22:33:23 -04:00
Gabe Mulley
7ab0f39df0
include upsell messaging in the 10 day nudge emails
2017-10-16 22:22:22 -04:00
Troy Sankey
2eba1b5122
Use singular getter function where only one requirement is expected
...
This avoids a fatal error in Django 1.9+ in most scenarios, where this
code (before this commit) will no longer result in an implicit __in
query. This commit should be a no-op functionally for Django 1.8.
More info: https://code.djangoproject.com/ticket/25284
PLAT-1525
2017-10-16 17:35:32 -04:00
Tyler Hallada
1c8fcf218a
Fix tests
2017-10-16 16:15:10 -04:00