Gabe Mulley
59e173de47
fix malformed template variable
2017-10-24 10:21:48 -04:00
Gabe Mulley
58bff7ed8c
update docstrings, DRY up schedules_for_bin
2017-10-24 10:15:41 -04:00
Calen Pennington
1accff9b78
DRY up more of tasks.py code
2017-10-24 10:15:40 -04:00
Calen Pennington
887191b1b3
Pull template context generation out of inside loop
2017-10-24 10:15:40 -04:00
Calen Pennington
dc3c79124b
Clean up errant leftover imports
2017-10-24 10:15:39 -04:00
Calen Pennington
9e00f9275e
Move MessageType definitions into message_types.py
2017-10-24 10:15:39 -04:00
Calen Pennington
65a740e52f
Make SendEmailBaseCommand.send_emails raise NotImplementedError
2017-10-24 10:15:39 -04:00
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
Matt Tuchfarber
63d2607059
Merge pull request #16307 from edx/tuchfarber/fix_program_instructor_dedup
...
Add trim to instructor deduplicator
2017-10-24 09:22:10 -04:00
ayub-khan
790150a8aa
Management Command to Clear DOT expired Tokens
...
LEARNER-717
2017-10-24 16:10:26 +05:00
Nimisha Asthagiri
cd1eaf3010
Dynamic Pacing: Waffle switch
2017-10-23 18:30:36 -04:00
Matt Tuchfarber
7305d6f97d
Add trim to instructor deduplicator
...
Current instructor list on program marketing page has duplicate
professors because they are manually entered and some have trailing
spaces. This fixes that.
2017-10-23 14:50:02 -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
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