-
Notifications
You must be signed in to change notification settings - Fork 186
chore: update email content upon publish #4659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for the pull request, @skumargupta83! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Submit a signed contributor agreement (CLA)
If you've signed an agreement in the past, you may need to re-sign. Once you've signed the CLA, please allow 1 business day for it to be processed. 🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
CODEOWNERS
Outdated
| @@ -1 +0,0 @@ | |||
| # The following users are the owners of all course-discovery files | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this file is showing up. This was deleted in a separate PR #4654. You might want to rebase your PR to get the branch up-to-date.
| {% filter force_escape %} | ||
| {% blocktrans trimmed %} | ||
| The About page for the {{ course_run_number }} course run of {{ course_name }} has been published. No further action is necessary. | ||
| 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment from #4652 (comment) is not addressed here.
| Note: This email address is unable to receive replies. For questions or comments, please contact your Project Coordinator(s): | ||
| Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at | ||
| {% endblocktrans %}{% for contact_us_email in contact_us_emails %}{% if forloop.last %}{{ contact_us_email }}{% else %}{{ contact_us_email }},{% endif %}{% endfor %} | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please remove the additional end of file line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done @DawoudSheraz
| 'text_regexes': [ | ||
| '\n\nView this About page. %s\n' % self.course_run.marketing_url, | ||
| r'For questions or comments, please contact your Project Coordinator\(s\):[email protected]' | ||
| r'Note:This is a no-reply email. For any questions or comments, please contact your Project Coordinator at\(s\):[email protected]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a space after :. That might be causing the tests to fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @DawoudSheraz
DawoudSheraz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is the main PR now, please close #4652 and explain on that PR why was it closed.
e82b249 to
f8f3e5f
Compare
|
Hi @skumargupta83! Looks like your CLA check is failing. If you are contributing on behalf of 2U, please have your manager reach out to [email protected] so we can add you to our existing agreement. Thanks! |
f8f3e5f to
a5a8b7e
Compare
| {% filter force_escape %} | ||
| {% blocktrans trimmed %} | ||
| Dear {{ recipient_name }}, | ||
| Hi Course Team, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skumargupta83 Why have you hardcoded this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ankit-sonata,
Below I am sharing the email template:
Hi Course Team,
The About Page for the [Term] 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.
Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at [PC email]
FYI: Please check the ticket details
| {% interpolate_html tmsg link_start='<a href="mailto:'|safe link_middle='">'|safe link_end='</a>'|safe contact_us_email=contact_us_email|safe %} | ||
| {% else %} | ||
| {% interpolate_html tmsg link_start='<a href="mailto:'|safe link_middle='">'|safe link_end='</a>, '|safe contact_us_email=contact_us_email|safe %} | ||
| {% interpolate_html tmsg link_start='<a href="mailto:'|safe link_middle='">'|safe link_end='</a>'|safe contact_us_email=contact_us_email|safe %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skumargupta83 Why did you do this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because In here getting extra "," so I had remove it.
|
|
||
| {% blocktrans trimmed %} | ||
| Dear {{ recipient_name }}, | ||
| Hi Course Team, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skumargupta83 Why have you hardcoded this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ankit-sonata,
Please check the ticket Details
| ], | ||
| ) | ||
|
|
||
| def test_send_email_for_reviewed(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skumargupta83 Why did you remove this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ankit-sonata,
Fixed it
dab82fa to
434a4c6
Compare
|
@skumargupta83 make sure the bulid should pass. |
|
@ankit-sonata,
|
7f52b99 to
10f40db
Compare
10f40db to
7d9b9d3
Compare
https://2u-internal.atlassian.net/browse/PROD-4410
This PR ensures that upon publishing a course run, an updated email notification is automatically sent to course editors and project coordinators.
New Email Format:
Hi Course Team,
The About Page for the [Term] 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.
Note: This is a no-reply email. For any questions or comments, please contact your Project Coordinator at [PC email]
Testing:-
Create a course run
Set the course status to “Published”
Automatically receive an email from project coordinators and course editors