Skip to content

chore(cli): drop 'notification' prefix for configuring email auth #15270

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 30, 2024

Conversation

DanielleMaywood
Copy link
Contributor

Closes #14644

@DanielleMaywood DanielleMaywood marked this pull request as ready for review October 29, 2024 14:58
@DanielleMaywood DanielleMaywood marked this pull request as draft October 29, 2024 15:04
@DanielleMaywood DanielleMaywood marked this pull request as ready for review October 29, 2024 15:58
Copy link
Contributor

@SasSwart SasSwart 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 just one question. Will leave it to someone who's been here a bit longer to actually approve for now.

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Just a minor nit about struct field name, otherwise LGTM 👍🏻

hello: localhost
# Force a TLS connection to the configured SMTP smarthost.
# (default: false, type: bool)
# (default: <unset>, type: bool)
Copy link
Member

Choose a reason for hiding this comment

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

We should probably start adding the deprecation notice to these comments at some point 🤔

Description: "The sender's address to use.",
Flag: "email-from",
Env: "CODER_EMAIL_FROM",
Value: &c.Notifications.SMTP.From,
Copy link
Member

Choose a reason for hiding this comment

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

Why are we keeping .Notifications here? Rename to email?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I kept .Notifications for now because separating out SMTP from it would be a larger refactor and at the moment we only use SMTP for notifications so didn't think it warranted being put into this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Alright, fair enough 👍🏻. Not a pressing issue but worth doing at some point to match the configuration.

@DanielleMaywood DanielleMaywood merged commit 823a2ea into main Oct 30, 2024
30 checks passed
@DanielleMaywood DanielleMaywood deleted the dm-cli-email-prefix branch October 30, 2024 10:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 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.

CLI: Drop the 'notification' prefix on cli options for configuring email auth
3 participants