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
Matthew Piatetsky
c20c8b21c8
Merge pull request #16313 from edx/LEARNER-2412
...
Do not set location cookie for USA and set cookie on top level domain
2017-10-24 08:34:43 -04:00
Ayub khan
5aa450ec59
Merge pull request #16279 from edx/LEARNER-717-2
...
Management Command to clear DOT expired data
2017-10-24 17:09:11 +05:00
Hasnain
2277aaca3f
WL-1060 | Made the dashboard social sharing site aware.
2017-10-24 16:35:44 +05:00
ayub-khan
790150a8aa
Management Command to Clear DOT expired Tokens
...
LEARNER-717
2017-10-24 16:10:26 +05:00
Nimisha Asthagiri
00d8b2a492
Merge pull request #16316 from edx/pacing/studio-setting
...
Dynamic Pacing: Waffle switch
2017-10-23 21:46:23 -04:00
Nimisha Asthagiri
cd1eaf3010
Dynamic Pacing: Waffle switch
2017-10-23 18:30:36 -04:00
Clinton Blackburn
b574641f17
Minor update to if-else to avoid unnecessary query
...
If an anonymous learner visits the course tab view, we now perform one
less query to check enrollment status. This query has been moved inside
an else statement, and is only called if the learer is logged in.
2017-10-23 17:47:35 -04:00
Matthew Piatetsky
e0c739288e
Do not set location cookie for USA and set cookie on top level domain
2017-10-23 17:22:37 -04:00
Nimisha Asthagiri
2211ae335b
Merge pull request #16304 from edx/pacing/studio-updates
...
Dynamic pacing: Studio support of Section Highlights
2017-10-23 17:08:20 -04:00
Nimisha Asthagiri
ee1a003c45
Tests for Studio support for Section Highlights
2017-10-23 15:16:57 -04:00
Stuart Young
7f94d311c0
set django version in paver args
2017-10-23 15:08:29 -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
Nimisha Asthagiri
53e1dfaa99
Studio support of Section Highlights
2017-10-23 14:31:57 -04:00
Ned Batchelder
5949024479
Merge pull request #16193 from open-craft/josh/fix-vimeo-m3u8-urls
...
Fix regex in video xmodule to check for HTML5 video urls which contain parameters
2017-10-23 14:23:06 -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
Ned Batchelder
5940342f71
Merge pull request #16180 from caesar2164/shopping-cart-style-fixes
...
Fix Shopping-cart CSS and JS
2017-10-23 13:51:43 -04:00
Eric Fischer
9f3f3a501b
Merge pull request #16111 from edx/dahlia/watch_studio-frontend
...
Webpack studio frontend
2017-10-23 13:17:55 -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
Zubair Afzal
6e846fd938
Merge pull request #16291 from edx/zub/ENT-675-enterprise-version-bump-to-0.52.9
...
bump enterprise version from 0.52.4 to 0.52.10
2017-10-23 22:00:44 +05:00
Tyler Hallada
4ab477eaa7
Address Greg's comment
2017-10-23 11:59:27 -04:00
Eric Fischer
45a5e7853f
Correctly install and load webpacked studio-frontend
2017-10-23 11:50:36 -04:00