Opened 15 years ago
Closed 15 years ago
#8621 closed enhancement (duplicate)
Use TicketChangeListener infrastructure for ticket notifications
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | 0.12dev |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Currently the ticket notification system is completely separate from the TicketChangeListener infrastructure so that the notification code needs to be duplicated everywhere if the user should be notified of a change.
The general consensus seems to be that the notification system needs to be cleaned up so this could be the first step in that direction:
Attachments (2)
Change History (5)
by , 15 years ago
Attachment: | 8621_use_ticket_change_listeners_for_ticket_notifications added |
---|
follow-up: 2 comment:1 by , 15 years ago
by , 15 years ago
Attachment: | 8621_use_ticket_change_listeners_for_ticket_notifications_cleanup added |
---|
This is an additional cleanup patch which just refactors the code a bit
comment:2 by , 15 years ago
Replying to rblank:
Looks like a good start. One issue I can see is that with the patch, a component that changes a ticket cannot prevent sending notifications. For example, the
commit_ticket_updater
plugin in multirepos has a configuration option to allow not sending notifications for changes due to automatic ticket updates from commit messages.
This is indeed a problem. My feeling is that we need probably additional infrastructure in the TicketNotificationSystem or NotificationSystem so that external plugins can temporarily disable email notifications. The other option would be that you pass additional flags in ticket.save_changes and handle listeners differently which I don't like.
Any suggestions?
comment:3 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Looks like a good start. One issue I can see is that with the patch, a component that changes a ticket cannot prevent sending notifications. For example, the
commit_ticket_updater
plugin in multirepos has a configuration option to allow not sending notifications for changes due to automatic ticket updates from commit messages.