Closed Bug 658547 Opened 14 years ago Closed 14 years ago

The link for new attachments in bugmail should point to the "Edit" page rather than to the attachment content itself

Categories

(Bugzilla :: Email Notifications, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: jdm, Assigned: dkl)

Details

(Whiteboard: [bmo4.0-resolved])

Attachments

(1 file, 2 obsolete files)

I frequently want to read a patch that I've learned about in an email, but the only link I get is the raw file contents. I'd like a link to the graphical view as well.
What is a graphical view??? You mean the diff view?
Severity: normal → enhancement
OS: Windows XP → All
Hardware: x86 → All
Precisely.
Patch adds attachment view/edit/diff links to text email notifications. The HTML view of bug mail currently links to view and edit but not diff. This would be solved if bug 652332 lands. dkl
Assignee: email-notifications → dkl
Status: NEW → ASSIGNED
Attachment #534100 - Flags: review?(LpSolit)
Comment on attachment 534100 [details] [diff] [review] Patch to add attachment view/edit/diff links to text emails (v1) I don't think we want all three links. We should keep only one, maybe the edit one, as you can easily go everywhere from there. Also, the Diff view doesn't exist if the attachment is not a patch.
Attachment #534100 - Flags: review?(LpSolit) → review-
This also needs to go into the HTML email in a completely different format than it goes into the text email.
Ok, this patch just changes the link in bug/format_comment.txt.tmpl to go to the attachment details page. The email template for request/email.txt.tmpl already does this. The HTML version of the mail relies on quoteUrls and so when bug 652332 is landed in some fashion. dkl
Attachment #534100 - Attachment is obsolete: true
Attachment #535757 - Flags: review?(LpSolit)
Attachment #535757 - Attachment is patch: true
Attachment #535757 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 535757 [details] [diff] [review] Patch to add attachment edit link to text emails (v2) This is the wrong patch.
Attachment #535757 - Flags: review?(LpSolit) → review-
Sigh. Was really wasted tired at the end of the day when I uploaded that. Here is the right patch. dkl
Attachment #535757 - Attachment is obsolete: true
Attachment #535797 - Flags: review?(LpSolit)
Comment on attachment 535797 [details] [diff] [review] Patch to add attachment edit link to text emails (v2) r=LpSolit
Attachment #535797 - Flags: review?(LpSolit) → review+
Flags: approval?
Summary: Patch attachments should link to the graphic diff view as well as raw attachment → The link for new attachments in bugmail should point to the "Edit" page rather than to the attachment content itself
Target Milestone: --- → Bugzilla 5.0
trunk: Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk modified template/en/default/bug/format_comment.txt.tmpl Committed revision 7843. dkl
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [bmo4.0-resolved]
Damn. I saw the approval flag and thought it was + but it was ?. Should I back out the patch until approval or can I get a quick approval and be done with this? Sorry dkl
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This is minor enough to not break stuff, so let's go for 4.2.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Flags: approval? → approval+
Resolution: --- → FIXED
Target Milestone: Bugzilla 5.0 → Bugzilla 4.2
So, I actually dislike the implemented solution more than the original situation that caused me to file this. If I'm going to look at a patch, it's either going to be in the raw view that lets me fill my screen with the patch contents, or in the coloured diff view. In my opinion, linking to the Edit view is the worst of all worlds.
I'm somewhat in accord with jdm on this; I don't really see why we would always link to the edit page, except that it does allow you to at least get other places. I'm also not sure why we changed this rather broadly-used behavior on the request of a single user.
As said elsewhere, request emails already point to the edit page, and now we are at least consistent between bugmails and flagmails. Then, in the edit page, your attachment is already displayed as raw data, which is exactly the same as the view page; except that from the edit page, you at least have a chance to a) view the attachment in the diff view if it's a patch, b) set flags and other attachment attributes, c) go directly to its bug (which is not possible in view mode). About the "request of a single user" argument, I also wanted to make it point to something usable and consistent with flagmails well before this bug was filed. Except that I always considered it minor enough to not spend time on it.
Okay. Sounds good to me. :-)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: