Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(coderd/notifications): simplify TemplateWorkspaceManualBuildFailed #15067

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

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

SasSwart
Copy link
Contributor

@SasSwart SasSwart commented Oct 14, 2024

This PR closes #15065.

As advised by @mtojek, a template's display name may be set to "", which is not useful in an email notification. We'd like to provide a friendly name for the template, but it also needs to be identifiable.

As such, we fall back to template.Name in the case that the template's display name is empty.

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

LGTM with nit.

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

Fix LGTM 👍

I believe you can quickly fix it for TemplateTemplateDeleted too.

@SasSwart SasSwart marked this pull request as ready for review October 15, 2024 15:39
@SasSwart SasSwart merged commit fac77f9 into main Oct 15, 2024
29 checks passed
@SasSwart SasSwart deleted the jjs/15065 branch October 15, 2024 19:02
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TemplateWorkspaceManualBuildFailed renders an empty template display name
3 participants