Skip to content

Commit 434a4c6

Browse files
committed
chore: Update email content upon publish
1 parent 75e5264 commit 434a4c6

File tree

3 files changed

+13
-27
lines changed

3 files changed

+13
-27
lines changed

course_discovery/apps/course_metadata/templates/course_metadata/email/go_live.html

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,32 @@
77
<p>
88
{% filter force_escape %}
99
{% blocktrans trimmed %}
10-
Dear {{ recipient_name }},
10+
Hi Course Team,
1111
{% endblocktrans %}
1212
{% endfilter %}
1313
</p>
1414

1515
<p>
1616
{% filter force_escape %}
1717
{% blocktrans trimmed %}
18-
The About page for the {{ course_run_number }} course run of {{ course_name }} has been published. No further action is necessary.
18+
The About page for the {{ course_run_number }} course run of {{ course_name }} has been submitted for publishing. The new session will appear on the edX website following the next couple of deployments—typically within 24 to 48 business hours.
1919
{% endblocktrans %}
2020
{% endfilter %}
2121
</p>
2222

2323
<p>
24-
{% blocktrans trimmed asvar tmsg %}
25-
{link_start}{preview_url}{link_middle}View this About page.{link_end}
26-
{% endblocktrans %}
27-
{% interpolate_html tmsg link_start='<a href="'|safe link_middle='">'|safe link_end='</a>'|safe preview_url=preview_url|safe %}
28-
</p>
29-
30-
<p>
31-
Note: This email address is unable to receive replies. For questions or comments, please contact your Project Coordinator(s):
24+
Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at
3225
{% for contact_us_email in contact_us_emails %}
3326
{% blocktrans trimmed asvar tmsg %}
3427
{link_start}{contact_us_email}{link_middle}{contact_us_email}{link_end}
3528
{% endblocktrans %}
3629
{% if forloop.last %}
3730
{% interpolate_html tmsg link_start='<a href="mailto:'|safe link_middle='">'|safe link_end='</a>'|safe contact_us_email=contact_us_email|safe %}
3831
{% else %}
39-
{% interpolate_html tmsg link_start='<a href="mailto:'|safe link_middle='">'|safe link_end='</a>, '|safe contact_us_email=contact_us_email|safe %}
32+
{% interpolate_html tmsg link_start='<a href="mailto:'|safe link_middle='">'|safe link_end='</a>'|safe contact_us_email=contact_us_email|safe %}
4033
{% endif %}
4134
{% endfor %}
4235
</p>
4336

4437
<!-- End Message Body -->
45-
{% endblock body %}
38+
{% endblock body %}
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
{% load i18n %}
22

33
{% blocktrans trimmed %}
4-
Dear {{ recipient_name }},
4+
Hi Course Team,
55
{% endblocktrans %}
66

77
{% blocktrans trimmed %}
8-
The About page for the {{ course_run_number }} course run of {{ course_name }} has been published. No further action is necessary.
8+
The About page for the {{ course_run_number }} course run of {{ course_name }} has been submitted for publishing. The new session will appear on the edX website following the next couple of deployments—typically within 24 to 48 business hours.
99
{% endblocktrans %}
1010

1111
{% blocktrans trimmed %}
12-
View this About page. {{ preview_url }}
13-
{% endblocktrans %}
14-
15-
{% blocktrans trimmed %}
16-
Note: This email address is unable to receive replies. For questions or comments, please contact your Project Coordinator(s):
17-
{% endblocktrans %}{% for contact_us_email in contact_us_emails %}{% if forloop.last %}{{ contact_us_email }}{% else %}{{ contact_us_email }},{% endif %}{% endfor %}
12+
Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at
13+
{% endblocktrans %}{% for contact_us_email in contact_us_emails %}{% if forloop.last %} {{ contact_us_email }} {% else %} {{ contact_us_email }} ,{% endif %}{% endfor %}

course_discovery/apps/course_metadata/tests/test_emails.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,23 +244,20 @@ def test_send_email_for_go_live(self):
244244
"""
245245
Verify that send_email_for_go_live's happy path works as expected
246246
"""
247+
# pylint: disable=line-too-long
247248
kwargs = {
248249
'both_regexes': [
249-
'The About page for the %s course run of %s has been published.' %
250+
'The About page for the %s course run of %s has been submitted for publishing. The new session will appear on the edX website following the next couple of deployments—typically within 24 to 48 business hours' %
250251
(self.run_num, self.course_run.title),
251-
'No further action is necessary.',
252252
],
253253
'html_regexes': [
254-
'<a href="%s">View this About page.</a>' % self.course_run.marketing_url,
255-
r'For questions or comments, please contact your Project Coordinator\(s\):',
254+
r'Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at ',
256255
'<a href="mailto:[email protected]">[email protected]</a>',
257256
],
258257
'text_regexes': [
259-
'\n\nView this About page. %s\n' % self.course_run.marketing_url,
260-
r'For questions or comments, please contact your Project Coordinator\(s\):[email protected]'
258+
r'Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at [email protected]'
261259
],
262260
}
263-
264261
self.assertEmailSent(
265262
emails.send_email_for_go_live,
266263
f'^Published: {self.course_run.title}$',

0 commit comments

Comments
 (0)