Closed Bug 856736 Opened 12 years ago Closed 12 years ago

Set X-Bugzilla-Type to dep_changed for 'dependency changed" bugmail

Categories

(Bugzilla :: Email Notifications, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: kats, Assigned: dkl)

Details

Attachments

(2 files)

Recently (in the last 3-4 days or so) emails from bugzilla.mozilla.org about dependent bug changes have started including the field names in the X-Bugzilla-Changed-Fields and X-Bugzilla-Changed-Field-Names headers. For example, bug 856039 was recently closed, and I got a notification email for bug 814282 which depends on bug 856039. The notification email contained: X-Bugzilla-Changed-Fields: Status Resolution X-Bugzilla-Changed-Field-Names: bug_status resolution [snip other headers] https://bugzilla.mozilla.org/show_bug.cgi?id=814282 Bug 814282 depends on bug 856039, which changed state. Bug 856039 Summary: Don't let bounce animations clobber viewport size updates https://bugzilla.mozilla.org/show_bug.cgi?id=856039 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED I'm not sure if this change was intentional but email filters that filtered on the Changed-Fields headers are now affected (in my case, for the worse). If it wasn't intentional I would like this to be reverted.
There has been a change recently to the code that generates the email headers so this could be possible. I am looking now to see how this affects dependency emails. http://bzr.mozilla.org/bmo/4.2/revision/8695 dkl
OS: Mac OS X → All
Hardware: x86 → All
Any update on this?
You wouldn't by chance have an old email that did not show this problem before the code change? I need something to compare to. I could revert the patch locally and see but I thought you may have something quicker. Thanks dkl
Attached file Old email
Sure, I've attached an old email from before the change.
Ok so I found the place where we fixed this in the code and therefore changed your email headers to be different than before. http://bzr.mozilla.org/bmo/4.2/revision/8687 It was not related to the header change we did recently and was instead a bug fix where it was causing our logs to fill up with warnings. The header "X-Bugzilla-Changed-Fields:" was there before our upgrade on 3/5 to Bugzilla 4.2 but was blank unintentionally for dependency emails. We were not populating the field description values properly. After the fix on 3/25 the "Status Resolution" values are now being displayed properly. The fact that you were filtering on the original empty X-Bugzilla-Changed-Fields: header was unfortunate but not our intention. Instead what I propose is we issue a proper header for dependency changes so you will have something better and more stable to filter on. Currently we have: X-Bugzilla-Type: changed for both normal bug change notifications and dependency notifications. I propose we change the X-Bugzilla-Type header to show dep_changed when it is a dependency notification like the one you pasted in comment 0: X-Bugzilla-Type: dep_changed We should push this upstream as well if possible. glob, opinion? dkl
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Summary: Bugzilla change emails now include changed-fields for dependency bug changes → Bugzilla change mails for dependencies should display a dep_changed header that can be filtered on
+1 setting x-bugzilla-type to dep_changed makes a lot of sense.
Component: General → Email Notifications
Product: bugzilla.mozilla.org → Bugzilla
QA Contact: default-qa
Summary: Bugzilla change mails for dependencies should display a dep_changed header that can be filtered on → Set X-Bugzilla-Type to dep_changed for 'dependency changed" bugmail
Version: Production → unspecified
Severity: normal → enhancement
Attached patch 856736_1.patchSplinter Review
Attachment #781216 - Flags: review?(sgreen)
Attachment #781216 - Flags: review?(sgreen) → review+
Flags: approval?
Keywords: relnote
Target Milestone: --- → Bugzilla 5.0
Flags: approval? → approval+
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk modified Bugzilla/BugMail.pm modified template/en/default/email/bugmail-header.txt.tmpl Committed revision 8676.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Added to relnotes for 5.0rc1.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: