Commit Graph

58 Commits

Author SHA1 Message Date
Gabe Mulley
669f61b2ea mark email sent events as non-interactions 2018-05-11 13:24:55 -04:00
Nimisha Asthagiri
549f4b661e Schedules: Add celery task logging 2017-12-04 14:16:27 -05:00
Tyler Hallada
f5d2741c34 Merge pull request #16744 from edx/thallada/highlights-logging
Schedules: more info logging and add exception logging
2017-12-04 11:32:43 -05:00
Nimisha Asthagiri
61f4ceca5b Schedules: Emulate HTTP request needs to include host information 2017-12-03 23:57:12 -05:00
Tyler Hallada
3425502a23 Schedules: change logging from DEBUG to INFO/EXCEPTION 2017-12-03 22:34:33 -05:00
Tyler Hallada
fd5c5acc28 Add emulate_http_request contextmanager for tasks
remove explicit middleware from resolver task

Address Gabe's comment

Add TODO to define middleware_classes in settings
2017-11-30 16:40:20 -05:00
Gabe Mulley
7dbe2cd89d ensure landing page for scheduled emails is not a redirect 2017-11-20 07:12:31 -05:00
Gabe Mulley
6de115545a coerce UUIDs to strings when logging email sent events 2017-11-15 22:34:54 -05:00
Gabe Mulley
53544a708e always include num_courses in the event 2017-11-15 10:21:19 -05:00
Gabe Mulley
6f20cd5cf2 support a GA tracking pixel 2017-11-15 08:35:35 -05:00
Gabe Mulley
54ae1c6238 support theming of ACE emails 2017-11-09 11:16:26 -05:00
Nimisha Asthagiri
08d31e1a43 Schedules: Tests for Course Update messages 2017-10-30 14:13:59 -04:00
Calen Pennington
fa7b9a132a Move the org_list and exclude code into the resolvers 2017-10-25 09:10:16 -04:00
Calen Pennington
1accff9b78 DRY up more of tasks.py code 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
c19a3368f0 Move MessageType definitions into tasks.py 2017-10-24 10:15:38 -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
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
199468eca9 DRY up the Schedule*.run task methods 2017-10-24 10:15:34 -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
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
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
Gabe Mulley
fce9344ddc new relic tracing for ace 2017-10-18 10:29:53 -04:00
Tyler Hallada
bf95f2371c Standardize on var names: *_datetime and *_day 2017-10-16 11:33:45 -04:00
Tyler Hallada
3c250e5649 Address Gabe's comments 2017-10-16 11:12:19 -04:00
Tyler Hallada
5bfb322f1e Don't send RET emails after course end 2017-10-16 11:11:16 -04:00
Nimisha Asthagiri
43c7a5171f Merge pull request #16219 from edx/ret/dynamic-pacing-email
Course Update emails (initial)
2017-10-13 17:28:36 -04:00
Tyler Hallada
642a9b82b2 Delete old recurring_nudge_schedules_for_hour task 2017-10-13 14:20:11 -04:00
Nimisha Asthagiri
741917e92b Course Update emails 2017-10-13 10:53:44 -04:00
sandroroux
40d3f4f2fc Unit tests for "_add_upsell_button_to_email_template". 2017-10-13 10:08:52 -04:00
Tyler Hallada
d571adfb99 Use upsell_link in upgrade reminder template 2017-10-13 10:01:35 -04:00
sandroroux
fc7c1652f8 Modified criteria for upselling. User must have a dynamic deadline to receive an email with an upsell button 2017-10-13 10:01:35 -04:00
Calen Pennington
8468357ac4 Separate the date and link logic out of VerifiedUpgradeDeadlineBlock, so that it can be called directly with prefetched data for check_and_get_upgrade_link_and_date 2017-10-13 10:01:34 -04:00
castellanese
f8d41b9764 Differentiated emails - unverified users receive email with upsell button. 2017-10-06 15:23:42 -04:00
Calen Pennington
d5b6b170dd Use the current site to generate absolute urls for emails 2017-10-06 13:36:27 -04:00
Tyler Hallada
e7b3590448 Add verified cert image to email template
Make image url in the task and pass to template
2017-10-06 13:36:18 -04:00
Tyler Hallada
9876f597e6 Refactor common task querying into a separate func
Address some of Cale's PR comments

Combine query functions into one. No debug logging

Pull int variables out into static class variables

Mixin needs to call super __init__ too

Remove multi-course copy from upgrade reminder

Address Cale's round 2 comments
2017-10-06 13:36:13 -04:00
Tyler Hallada
004ca4800e Add tests for upgrade_reminder
Fix test_templates

By passing the date pre-formatted to ace.

Address PR comments

Fix linting

Add TODO comment about using LoggerAdapter

More lint fixes

Fix upgrade_reminder task from silently failing
2017-10-06 13:35:00 -04:00