Ticket #10519 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

Changes not reported in mail notifications

Reported by: dunkel@dunkel.dk Assigned to: bjornharrtell
Priority: normal Component: GridModifyPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description (Last modified by rjollos)

It seems the way the GridModifyPlugin updates the ticket means that certain parts of the notification flow is bypassed. I don't know the Trac source very well, but I tried to trace through the code and came across this:

Line 180 in trac/ticket/notification.py looks like this:

        for change in TicketModule(self.env).grouped_changelog_entries(ticket, when=modtime):

The call to grouped_changelog_entries() returnes an empty list when using gridmod, but NOT when using the Trac UI. The result is that the notification flow is not updated correctly. In the ticket_notify_email.txt the $changes_body won't be set correctly, which means that the email notification doesn't show WHAT was changed using gridmod.

Don't know if this is related to the 1.0 release.

Attachments

Change History

10/22/12 01:36:35 changed by rjollos

  • description changed.

10/22/12 03:14:05 changed by rjollos

  • status changed from new to closed.
  • resolution set to fixed.

(In [12234]) Fixes #10519: Ticket property changes were not being included in the email body.

10/22/12 03:23:41 changed by rjollos

Thanks for the report. I think you were on the right track with debugging. The modification time is used as the index to get the change entries in notification.py. However, the when parameter, which sets the modification time, was not being passed to Ticket.save_changes, so it defaults to using the current time to set the column. The end effect was that were were attempting to retrieve changes with a different modification time than those we just saved.

(follow-up: ↓ 6 ) 10/22/12 10:47:14 changed by dunkel@dunkel.dk

Awesome. It seems to work now. Thanks for the superfast turnaround :) You also got rid of the "modified by gridmod" comment which is good ;-)

10/22/12 13:21:13 changed by rjollos

(In [12235]) Refs #10519:

  • Added changelog entry for #10519/[12234]
  • Minor code refactoring and reorganization.

(in reply to: ↑ 4 ) 10/22/12 13:22:44 changed by rjollos

Replying to dunkel@dunkel.dk:

Awesome. It seems to work now. Thanks for the superfast turnaround :) You also got rid of the "modified by gridmod" comment which is good ;-)

Thanks for reporting back! Don't hesitate to open another ticket if you discover any more issues.


Add/Change #10519 (Changes not reported in mail notifications)




Change Properties
Action