Skip to content

Conversation

@marcinapostoluk
Copy link
Contributor

Notebooker already had an option to specify email subject but it was not possible to configure it via the UI. Now added and also preserving it in the results for re-runs

@marcinapostoluk marcinapostoluk linked an issue May 16, 2023 that may be closed by this pull request
Copy link
Collaborator

@jonbannister jonbannister left a comment

Choose a reason for hiding this comment

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

Looks good, but I think there is a small bug in the scheduler config - it doesn't seem to be saving the new field
image

Comment on lines 27 to 31
default_subject = f"Notebooker: {report_title} report completed with status: {result.status.value}"
if isinstance(result, NotebookResultComplete):
subject = result.email_subject or default_subject
else:
subject = default_subject
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
default_subject = f"Notebooker: {report_title} report completed with status: {result.status.value}"
if isinstance(result, NotebookResultComplete):
subject = result.email_subject or default_subject
else:
subject = default_subject
subject = f"Notebooker: {report_title} report completed with status: {result.status.value}"
if isinstance(result, NotebookResultComplete):
subject = result.email_subject or subject

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, now changed

@marcinapostoluk marcinapostoluk force-pushed the 133-add-option-to-customize-email-subject branch from c49bab8 to d31ac4e Compare July 11, 2023 19:49
@marcinapostoluk
Copy link
Contributor Author

Looks good, but I think there is a small bug in the scheduler config - it doesn't seem to be saving the new field image

hmmm re-tested and does work fine for me :/

@marcinapostoluk marcinapostoluk force-pushed the 133-add-option-to-customize-email-subject branch from 6983811 to 31bdb1e Compare July 12, 2023 08:07
@marcinapostoluk marcinapostoluk merged commit 9fdd442 into master Jul 12, 2023
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.

Add option to customize email subject

4 participants