Skip to content

Conversation

@skumargupta83
Copy link
Contributor

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

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Aug 7, 2025
@openedx-webhooks
Copy link

Thanks for the pull request, @skumargupta83!

This repository is currently maintained by @openedx/2u-phoenix.

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 approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Submit a signed contributor agreement (CLA)

⚠️ We ask all contributors to the Open edX project to submit a signed contributor agreement or indicate their institutional affiliation.
Please see the CONTRIBUTING file for more information.

If you've signed an agreement in the past, you may need to re-sign.
See The New Home of the Open edX Codebase for details.

Once you've signed the CLA, please allow 1 business day for it to be processed.
After this time, you can re-run the CLA check by adding a comment below that you have signed it.
If the CLA check continues to fail, you can tag the @openedx/cla-problems team in a comment for further assistance.

🔘 Get a green build

If 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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 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
Copy link
Contributor

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.
Copy link
Contributor

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 %}

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'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]'
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @DawoudSheraz

Copy link
Contributor

@DawoudSheraz DawoudSheraz left a 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.

@skumargupta83 skumargupta83 force-pushed the PROD-4410/email-update branch 2 times, most recently from e82b249 to f8f3e5f Compare August 12, 2025 12:04
@mphilbrick211
Copy link

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!

@mphilbrick211 mphilbrick211 moved this from Needs Triage to Needs Tests Run or CLA Signed in Contributions Aug 14, 2025
@skumargupta83 skumargupta83 force-pushed the PROD-4410/email-update branch from f8f3e5f to a5a8b7e Compare August 18, 2025 14:41
{% filter force_escape %}
{% blocktrans trimmed %}
Dear {{ recipient_name }},
Hi Course Team,

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?

Copy link
Contributor Author

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 %}

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?

Copy link
Contributor Author

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,

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?

Copy link
Contributor Author

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):

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ankit-sonata,
Fixed it

@skumargupta83 skumargupta83 force-pushed the PROD-4410/email-update branch 2 times, most recently from dab82fa to 434a4c6 Compare August 19, 2025 10:06
@ankit-sonata
Copy link

@skumargupta83 make sure the bulid should pass.

@skumargupta83
Copy link
Contributor Author

@ankit-sonata,
Can you please help me to pass these below build

  • [Migrations check on mysql8 / check migrations (ubuntu-22.04, 3.12)
  • openedx/cla — We need a signed Contributor Agreement

@skumargupta83 skumargupta83 force-pushed the PROD-4410/email-update branch 7 times, most recently from 7f52b99 to 10f40db Compare August 26, 2025 07:48
@skumargupta83 skumargupta83 force-pushed the PROD-4410/email-update branch from 10f40db to 7d9b9d3 Compare August 26, 2025 07:53
@skumargupta83 skumargupta83 requested a review from rjv31 August 26, 2025 14:43
@mphilbrick211 mphilbrick211 moved this from Needs Tests Run or CLA Signed to In Eng Review in Contributions Aug 27, 2025
@hamza-56 hamza-56 merged commit d06d7de into openedx:master Sep 1, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from In Eng Review to Done in Contributions Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants