-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Implement themed enrollment email feature #6081
Conversation
Thanks for the pull request, @kluo! I've created OSPR-243 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the Github pull request interface. As a reminder, our process documentation is here. |
05794b8
to
67f7492
Compare
Something you did with bulk email is causing every test shard to fail... |
@kluo still working on this PR? |
@sarina Yep, I'm close to fixing the tests, sorry for the delay! |
@kluo great! Also your PR will need a rebase, FYI. |
add retire method to order class
…cart Adam/add defunct states for cart
Legacy dash cleanup
Course instructors can choose to send email to users who enroll before or after the course start date. This option is in the Settings -> Schedule & Details page in studio, and is available by setting the ENABLE_ENROLLMENT_EMAIL feature flag. Allows theming the default enrollment email body by specifying DEFAULT_PRE_ENROLLMENT_EMAIL and DEFAULT_POST_ENROLLMENT_EMAIL in environment settings file. Moves bulk_email models to common in order for studio to access the CourseEmailTemplate model, for sending test email in studio. Initial front-end code by: Ali Reza Sharafat <[email protected]> Co-authored-by: Se Won Jang <[email protected]>
67f7492
to
ab84d48
Compare
ab84d48
to
21dd99c
Compare
@sarina at last, tests have passed! |
@kluo nice! I need to find some of the Solutions team people tomorrow to make sure this code doesn't conflict with any work they're doing - see the OSPR ticket for more on that. Hopefully will get to starting review by end of this week. |
@chrisndodge - I never found you around this week, and I'm remote next week. Could you take a look at this pull request and let us know if this conflicts with any of the work the white label team is doing? If it is, let's chat about what conflicts and how we might solve the conflicts. Thanks |
@kluo Thanks for the contribution, looks like an interesting feature. There's a lot to look at here, so I'll try to get through some high level comments over the weekend. Off the cuff, I see some uses of microsite.get_value() in the CMS implementation. While I appreciate the thoughtfulness behind that, we don't use microsites inside studio, so I might have to make a suggestion to look up microsite configuration by course ORG. I don't have code infront of me right now, so let me get back to you on that shortly. |
@kluo this feature does NOT seem to be behind a platform-level feature flag, but your description kind of implies it is. Can you clarify? |
A few broad comments:
|
@@ -146,6 +146,30 @@ def get_lms_link_for_about_page(course_key): | |||
) | |||
|
|||
|
|||
def get_lms_link_for_dashboard(): | |||
"""Returns the url to the lms dashboard.""" |
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.
These docstrings should describe the behavior that would lead to None
being returned.
@kluo please prepare two brief documents as follows, and post on this PR:
Thanks - that will help make reviewing easier. I'm finding it difficult to understand what's going on in this PR. |
@kluo : Hi and happy 2015! 🎊 Are you still planning to work on this pull request? If so, you will really need to prepare the two documents listed above so that I can help run this feature by all the appropriate teams and product managers. It is a better use of your time to prepare these documents before continuing to work on more code - the documents will help the arch council and product teams understand your work and let you more quickly know what you will need to do to get it in a mergeable state. |
@sarina Thanks and you too! Sorry I've been taking care of some other waiting pull requests I had but I'll get to the documents once I'm done with those! |
@kluo : are you still working on this? If you're not going to pick it up for awhile (it's been 6 weeks), perhaps it's best to close it and reopen at a later time. |
It's been awhile since this PR has seen an update. I'm going to close it; it can be reopened, or a new PR can be opened, as soon as work resumes. |
Course instructors can choose to send email to users who enroll before or after the course start date. This option is in the Settings -> Schedule & Details page in studio, and is available by setting the ENABLE_ENROLLMENT_EMAIL feature flag.
Allows theming the default enrollment email body by specifying
DEFAULT_PRE_ENROLLMENT_EMAIL and DEFAULT_POST_ENROLLMENT_EMAIL
in environment settings file.
Moves bulk_email models to common in order for studio to access the CourseEmailTemplate model, for sending test email in studio.
*Note @griffresch @jinpa per discussion, this is behind a flag since eventually it would be a global platform feature rather than course-specific.