Skip to content
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

Add email notification flow to add verticals for new products #4549

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

hamza-56
Copy link
Contributor

@hamza-56 hamza-56 commented Jan 23, 2025

PROD-4283

Add email notification flow to add verticals for new products

@hamza-56 hamza-56 changed the title Hamza/prod 4283 Add email notification flow to add verticals for new products Jan 23, 2025
@hamza-56 hamza-56 self-assigned this Jan 23, 2025
if instance.draft or not created:
return

management_groups = getattr(settings, 'VERTICALS_MANAGEMENT_GROUPS', [])
Copy link
Contributor

Choose a reason for hiding this comment

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

should it not be a single group?

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.

The tests are missing.

@hamza-56 hamza-56 marked this pull request as ready for review January 27, 2025 23:53
@hamza-56 hamza-56 requested a review from DawoudSheraz January 27, 2025 23:53
@DawoudSheraz
Copy link
Contributor

The tests are missing.

This is not addressed and hence, not ready for re-review.

@hamza-56 hamza-56 force-pushed the hamza/PROD-4283 branch 2 times, most recently from a58b093 to c0ed45b Compare January 28, 2025 16:36
course_discovery/apps/tagging/emails.py Outdated Show resolved Hide resolved
course_discovery/apps/tagging/tests/test_emails.py Outdated Show resolved Hide resolved
course_discovery/apps/tagging/signals.py Outdated Show resolved Hide resolved
course_discovery/apps/tagging/tests/test_emails.py Outdated Show resolved Hide resolved
course_discovery/apps/tagging/apps.py Outdated Show resolved Hide resolved
course_discovery/apps/tagging/emails.py Outdated Show resolved Hide resolved
@hamza-56 hamza-56 force-pushed the hamza/PROD-4283 branch 3 times, most recently from 649f2e1 to a1ef58b Compare January 29, 2025 14:23
course_discovery/settings/test.py Outdated Show resolved Hide resolved
@@ -0,0 +1,11 @@
{% extends "course_metadata/email/email_base.html" %}
Copy link
Contributor

Choose a reason for hiding this comment

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

the template path should be template/tagging/email/vertical_assignment.html. The app name directory should be there as per best/recommended practice https://learndjango.com/tutorials/template-structure.

Copy link
Contributor Author

@hamza-56 hamza-56 Jan 30, 2025

Choose a reason for hiding this comment

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

We are using Option 1: App Level Templates. And our template is in

course_discovery/apps/tagging/templates/email/update_course_verticals.html

@hamza-56 hamza-56 merged commit caae73b into master Jan 30, 2025
14 checks passed
@hamza-56 hamza-56 deleted the hamza/PROD-4283 branch January 30, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants