Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Conversation

spog163
Copy link
Contributor

@spog163 spog163 commented Nov 13, 2017

Hi, could you add the email notification on topic asssignment to your amazing plugin, please?
Greetings from Russia:)

@coding-horror
Copy link

coding-horror commented Nov 13, 2017 via email

@SamSaffron
Copy link
Member

@spog163 let us know once this is setup as a site setting.

@@ -110,6 +112,9 @@ def assign(assign_to, silent: false)
user_ids: staff_ids
)

message = AssignMailer.send_assignment(assign_to.email, @topic, @assigned_by)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this unconditionally send out the email even if the user mutes the topic?

Copy link

Choose a reason for hiding this comment

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

Let me answer, @spog163 and I worked on this improvement. Currently it sends emails always without an option to disable. Our task was pointed to staff users, who need to have an email notification always. Agree, that this setting must be an option (disabled by default) and depend on mute conditions. So, let us to make some updates first :)

@spog163
Copy link
Contributor Author

spog163 commented Nov 16, 2017

@SamSaffron, @coding-horror Added global options as site settings + russian translation (@rapekas)

@@ -10,8 +10,21 @@ en:
unassign_on_group_archive: "When a message is archived by a group, unassign message (reassign if moved back to inbox)"
unassign_on_close: "When a topic is closed unassign topic"
assign_locks_flags: "When a topic is assigned to a staff member, its flags can only be handled by that person"
assign_mailer_enabled: "When enabled, the assigned user will receive a notification email on each assignment"
assign_mailer_disabled_for_muted_topics: "When enabled, the assigned user will not receive emails on muted topics"
Copy link
Member

Choose a reason for hiding this comment

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

This is overdoing it I would remove this option, if email_on_assignment is enabled then it should never assign on muted topics you should not be allowed to override it.

Copy link

Choose a reason for hiding this comment

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

Thanks for reviewing! Actually user always receive emails on muted topics if 'assign_mailer_disabled_for_muted_topics' disabled or absent. So it is not overrided by any other site setting.

Copy link
Member

Choose a reason for hiding this comment

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

Sure I understand, I just feel it is an option we don't need to provide.... I would like to delete the setting "assign_mailer_disabled_for_muted_topics"

Ivan Rabkesov and others added 2 commits November 17, 2017 17:13
@rapekas
Copy link

rapekas commented Nov 17, 2017

@SamSaffron Ok, we removed the override option for muted topics, please review.

@ZogStriP
Copy link
Member

Looks great 👍 It's missing a test though.

@SamSaffron SamSaffron merged commit 5758486 into discourse:master Nov 21, 2017
@SamSaffron
Copy link
Member

Thanks @rapekas maybe if you have some time a bit later submit a PR for the test, thanks for the contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants