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

fix: remove username and change the subject in emails #1192

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

ahtesham-quraish
Copy link
Contributor

@ahtesham-quraish ahtesham-quraish commented Mar 12, 2024

Description:
Remove username from email templates and change the subject line

JIRA:
VAN-1865

@ahtesham-quraish ahtesham-quraish force-pushed the ahtesham/1865 branch 9 times, most recently from 163d2fe to 5b88ccb Compare March 14, 2024 15:36
exam_name=exam_attempt_obj.proctored_exam.exam_name
)
)
email_subject = 'Proctoring attempt submitted'
Copy link
Contributor

Choose a reason for hiding this comment

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

This email subject didn't contain the username, is there a reason we shouldn't be using the course name or exam name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have removed the exam name along with username to make it consistent with edx-exams. We already took consensus from UX team to change the subject line.

@@ -1767,7 +1764,7 @@ def create_proctoring_attempt_status_email(user_id, exam_attempt_obj, course_nam
course_home_url = get_course_home_url(exam_attempt_obj.proctored_exam.course_id)

exam_name = exam_attempt_obj.proctored_exam.exam_name
support_email_subject = _('Proctored exam {exam_name} in {course_name} for user {username}').format(
support_email_subject = _('Proctored exam {exam_name} in {course_name}').format(
Copy link
Contributor

Choose a reason for hiding this comment

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

If this isn't being used in the template, can it just be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes we can remove this.

@ahtesham-quraish ahtesham-quraish force-pushed the ahtesham/1865 branch 3 times, most recently from 3878259 to 41e52c7 Compare March 15, 2024 06:15
Description: Remove username and change the subject in emails
VAN-1865
@ahtesham-quraish ahtesham-quraish merged commit 7d021f5 into master Mar 19, 2024
16 checks passed
@ahtesham-quraish ahtesham-quraish deleted the ahtesham/1865 branch March 19, 2024 05:40
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.

2 participants