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

Use the origin trial display name in trial extension emails #4679

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

DanielRyanSmith
Copy link
Collaborator

This change fixes a small problem where the feature name is being used in the origin trial extension emails rather than the origin trial name. The origin trial name is now passed with the email task parameters to populate the subject line in the email.

Comment on lines -843 to -850
if feature is None:
self.abort(400, 'No feature provided.')
gate_id = self.get_param('gate_id')
if gate_id is None:
self.abort(400, 'Extension gate ID not provided.')
requester_email = self.get_param('requester_email')
if not requester_email:
self.abort(400, 'Extension requester\'s email address not provided.')
Copy link
Collaborator Author

@DanielRyanSmith DanielRyanSmith Jan 9, 2025

Choose a reason for hiding this comment

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

These abort statements were unnecessary, since the get_param method contains an abort statement in the event the parameter is not provided.

internals/notifier.py Outdated Show resolved Hide resolved
internals/notifier.py Show resolved Hide resolved
@DanielRyanSmith DanielRyanSmith merged commit 2577fe3 into main Jan 13, 2025
7 checks passed
@DanielRyanSmith DanielRyanSmith deleted the email-name-update branch January 13, 2025 19:21
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