Closed Bug 181023 Opened 22 years ago Closed 19 years ago

Make flag descriptions visible to bugzilla users

Categories

(Bugzilla :: Attachments & Requests, enhancement)

2.17.1
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: asa, Assigned: robzilla)

References

Details

Attachments

(1 file, 4 obsolete files)

We currently have descriptions in the management interface for flags. It would
be really good if this was made visible in the bug. Several mechanisms for
making this visible are:
1. mouse over the flag in show_bug and see a description in a tooltip (title
attribute). 
2. like activestate's bugzilla, put a little information "i" icon next to the
flag which when clicked makes a popup window with a description of that flag. 
3. create something like describekeywords but for flags. 

1 & 2 appeal a lot more to me than 3 but 3 might be easiest. The reason I like 1
and 2 is that flags can be product and component specific and there may be
similarly named flags with different description so attaching a description to
the speficif flag the users is looking at is more appealing than a big flat list
with all flags.
Attached patch draft (obsolete) — Splinter Review
Attachment #178600 - Flags: review?(justdave)
Attached patch draft 2 (obsolete) — Splinter Review
Draft 2 - fixes a minor issue with Timely's patch
Just a quick note, I do not want this enabled at b.m.o. until I've had a chance
to clean up the descriptions. 
Attached patch Patch v1 (obsolete) — Splinter Review
Patch v1

This merges all the draft comments, and fixes a couple of minor bugs in them.
Attachment #178600 - Attachment is obsolete: true
Attachment #178623 - Attachment is obsolete: true
Attachment #178682 - Flags: review?(LpSolit)
Attachment #178600 - Flags: review?(justdave)
Comment on attachment 178682 [details] [diff] [review]
Patch v1

>     # Get a list of request type names to use in the filter form.
>-    my @types = ("all");
>-    SendSQL("SELECT DISTINCT(name) FROM flagtypes ORDER BY name");
>-    push(@types, FetchOneColumn()) while MoreSQLData();
>+    my %types;
>+    $types{'all'} = { description => '' };
>+    SendSQL("SELECT DISTINCT(name), description FROM flagtypes ORDER BY name");
>+    while (MoreSQLData()) {
>+        my ($name, $description) = FetchSQLData();
>+        $types{$name} = { description => $description};
>+    }

flag type names are not unique. Doing so, all flag types with the same name
will have the same description. Of course, this is wrong. Moreover, please use
the new DBI stuff instead of the old SendSQL/MoreSQLData one.
Attachment #178682 - Flags: review?(LpSolit) → review-
Target Milestone: --- → Bugzilla 2.22
Attached patch robzilla_v1 (obsolete) — Splinter Review
This shows the flag description in a tooltip.
Assignee: myk → robzilla
Attachment #178682 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #184939 - Flags: review?
*** Bug 296072 has been marked as a duplicate of this bug. ***
Comment on attachment 184939 [details] [diff] [review]
robzilla_v1

>         <td>
>-          [% type.name FILTER html FILTER no_break %]
>+          <label title="[% type.description FILTER html %]">
>+            [%- type.name FILTER html FILTER no_break %]</label>
>         </td>

Nice patch. But it would be fine to have tooltips even when hovering the
dropdown menu. It seems possible to do it by adding a title="" to the select
element. Moreover, you missed the multiplicable flags around line 180.
Attachment #184939 - Flags: review? → review-
Attached patch robzilla_v2Splinter Review
Attachment #184939 - Attachment is obsolete: true
Attachment #185010 - Flags: review?(LpSolit)
Comment on attachment 185010 [details] [diff] [review]
robzilla_v2

nice patch. r=LpSolit
Attachment #185010 - Flags: review?(LpSolit) → review+
Flags: approval?
Flags: approval? → approval+
QA Contact: mattyt-bugzilla → default-qa
Checking in template/en/default/flag/list.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/flag/list.html.tmpl,v 
<--  list.html.tmpl
new revision: 1.18; previous revision: 1.17
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Keywords: relnote
*** Bug 304592 has been marked as a duplicate of this bug. ***
*** Bug 325266 has been marked as a duplicate of this bug. ***
Added to the Bugzilla 2.22 Release Notes in bug 322960.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: