Closed Bug 297870 Opened 20 years ago Closed 19 years ago

attachments table/list should show attachment creator

Categories

(Bugzilla :: Attachments & Requests, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: glob, Assigned: glob)

References

Details

Attachments

(1 file, 1 obsolete file)

attachments table/list should show attachment creator.
Attached patch v1 (obsolete) — Splinter Review
adds "creator" column to the attachments table
Attachment #186437 - Flags: review?
Comment on attachment 186437 [details] [diff] [review]
v1

i'll change this to do a join to get the submitter name/email instead of
creating a Bugzilla::User object.
Attachment #186437 - Attachment is obsolete: true
Attachment #186437 - Flags: review?
Comment on attachment 186437 [details] [diff] [review]
v1

glob, wurblzap told me that derive_groups() is called only when group privs
have changed since the last time this user object was created (I checked this
point and he is right, see User.pm line 133). So it's fine to create a user
object here.

We should move to a unique user identifier (username) as soon as bug 218917 is
fixed.

r=LpSolit
Attachment #186437 - Flags: review+
Comment on attachment 186437 [details] [diff] [review]
v1

>+        <td valign="top">
>+          <a href="mailto:[% attachment.submitter.email FILTER html %]">
>+          [% attachment.submitter.name FILTER html %]
>+          </a>
>+        </td>

Maybe should we fall back to the user login if the user has no name:
[% attachment.submitter.name || attachment.submitter.login FILTER html %]

Could you fix that and carry forward my r+ please?
Status: NEW → ASSIGNED
Flags: approval?
Target Milestone: --- → Bugzilla 2.22
Attachment #186437 - Attachment is obsolete: false
Attached patch v2Splinter Review
falls back to attachment.submitter.login; carrying forward r+
Attachment #186437 - Attachment is obsolete: true
Attachment #186549 - Flags: review+
Flags: approval? → approval+
Checking in Bugzilla/Attachment.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Attachment.pm,v  <--  Attachment.pm
new revision: 1.22; previous revision: 1.21
done
Checking in template/en/default/attachment/list.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl,v
 <--  list.html.tmpl
new revision: 1.22; previous revision: 1.21
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
*** Bug 349806 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: