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

notification: use application name in messaging #1881

Merged
merged 6 commits into from
Sep 7, 2021

Conversation

mastercactapus
Copy link
Member

Description:
This PR continues the work from #1803 and uses the application name in notification providers.

KatieMSB
KatieMSB previously approved these changes Sep 2, 2021
@dctalbot dctalbot self-requested a review September 2, 2021 17:27
@@ -50,19 +53,19 @@ func (s *Sender) Send(ctx context.Context, msg notification.Message) (*notificat
var subject string
switch m := msg.(type) {
case notification.Test:
subject = "GoAlert: Test Message"
subject = "Test Message"
e.Body.Title = "Test Message"
e.Body.Intros = []string{"This is a test message from GoAlert."}
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
e.Body.Intros = []string{"This is a test message from GoAlert."}
e.Body.Intros = []string{"This is a test message from " + cfg.ApplicationName() + "."}

Should these be substituted?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm. maybe it should just be This is a test message. since the from is already defined elsewhere with the name.

Copy link
Member Author

Choose a reason for hiding this comment

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

We're already setting the product name too; so it's redundant

Copy link
Contributor

@dctalbot dctalbot Sep 2, 2021

Choose a reason for hiding this comment

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

Either works for me! I don't find it overly redundant.

@mastercactapus mastercactapus merged commit 443507f into master Sep 7, 2021
@mastercactapus mastercactapus deleted the use-app-name-in-messaging branch September 7, 2021 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants