After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 663800 - Bugzilla will not CC one for comments made via git bz, even though manual comment works
Bugzilla will not CC one for comments made via git bz, even though manual com...
Status: RESOLVED FIXED
Product: git-bz
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: git-bz-maint
git-bz-maint
Depends on:
Blocks:
 
 
Reported: 2011-11-10 18:32 UTC by Vincent Penquerc'h
Modified: 2012-02-04 23:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test attachment (attaching through attachment.cgi) (22 bytes, application/octet-stream)
2012-02-04 21:39 UTC, Owen Taylor
  Details
Add the user to the cc: on the bug (1.76 KB, patch)
2012-02-04 22:47 UTC, Owen Taylor
none Details | Review
Add the user to the cc: on the bug (1.75 KB, patch)
2012-02-04 22:49 UTC, Owen Taylor
none Details | Review
Add the user to the cc: on the bug (1.75 KB, patch)
2012-02-04 22:49 UTC, Owen Taylor
none Details | Review
Add the user to the cc: on the bug (1.76 KB, patch)
2012-02-04 22:55 UTC, Owen Taylor
none Details | Review
Add the user to the cc: on the bug (1.80 KB, patch)
2012-02-04 23:01 UTC, Owen Taylor
committed Details | Review

Description Vincent Penquerc'h 2011-11-10 18:32:15 UTC
See: https://bugzilla.gnome.org/show_bug.cgi?id=322587
I add a comment with patch via git bz, but was not CC'd, causing me to miss the subsequent comments about my patch. I have the "Automatically add me to the CC list of bugs I change" option set to "always". I do get CC'd when commenting manually.
Comment 1 André Klapper 2011-11-10 20:52:27 UTC
I assume this is a git-bz issue, not a GNOME Bugzilla one => moving.
Comment 2 Owen Taylor 2012-02-04 21:39:27 UTC
Created attachment 206782 [details]
Test attachment (attaching through attachment.cgi)

Not finding the code that does the cc addition, testing if adding an attachment through attachment.cgi actually adds to the Cc: list.
Comment 3 Owen Taylor 2012-02-04 21:40:48 UTC
Making an attachment does not add to the Cc: list - the cc: addition for a normal comment (not added with an attachment) is occurring because of the default-selected 'add me to CC list" checkbox on the bug page as far as I can tell.
Comment 4 Vincent Penquerc'h 2012-02-04 21:55:24 UTC
Thanks for investigating.

Since I have the bugzilla option "Automatically add me to the CC list of bugs I change" set to "Always", it means that bugzilla is not thinking that adding a patch is changing a bug, including the comment that gets posted when doing so.
This seems wrong, and either a bug in bugzilla, or a bad phrasing (in which case fair enough, but it'd be useful to have that ability, as clearly when I post a patch I'm interested in any comments, reviews, etc, and not being able to request a CC means using git bz isn't so useful as you can miss a fair bit of feedback).

So this bug can either be moved back to bugzilla, or dismissed if bugzilla people don't want to change the behavior.
Comment 5 Owen Taylor 2012-02-04 22:47:37 UTC
Created attachment 206790 [details] [review]
Add the user to the cc: on the bug

All the logic to add the user to the cc: list on the bug is done in the
web page for show_bug.cgi and not on the client side, so the option
"Automatically add me to the CC list of bugs I change" in the user's
preferences is not honored. Since that preference defaults to Always
and users will very typically want to see further traffic on their patches,
just always request the user to be added to the Cc.

The main downside to this is that we do another round trip to the server
when creating and attachment, and also potentially create more bug mail.
Comment 6 Owen Taylor 2012-02-04 22:49:18 UTC
Created attachment 206791 [details] [review]
Add the user to the cc: on the bug

New version (using this bug as a testing ground)
Comment 7 Owen Taylor 2012-02-04 22:49:37 UTC
Created attachment 206792 [details] [review]
Add the user to the cc: on the bug

Another new version
Comment 8 Owen Taylor 2012-02-04 22:53:56 UTC
A test change
Comment 9 Owen Taylor 2012-02-04 22:55:30 UTC
Created attachment 206793 [details] [review]
Add the user to the cc: on the bug

A hopefully working version.
Comment 10 Owen Taylor 2012-02-04 23:01:29 UTC
Created attachment 206796 [details] [review]
Add the user to the cc: on the bug

Another attempt
Comment 11 Owen Taylor 2012-02-04 23:02:42 UTC
Seems to work, pushed

Attachment 206796 [details] pushed as 025fd83 - Add the user to the cc: on the bug
Comment 12 Vincent Penquerc'h 2012-02-04 23:09:34 UTC
Thanks :)