Closed Bug 984505 Opened 10 years ago Closed 10 years ago

Link component and product to browse for other bugs in this category

Categories

(Bugzilla :: User Interface, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
Bugzilla 5.0

People

(Reporter: sjw+bugzilla, Assigned: dkl)

Details

Attachments

(1 file, 2 obsolete files)

If you click on Component or Product now, you got just an overview of all components / products. There should be a way to browse for other bugs in this category / other categories in this product. That's what I expected.

If you wishes an overview of all Products and Component, you have still the 'Browse' link on the top.
Please provide links to what you refer to so we talk about the same. Also, what are "categories"?
Flags: needinfo?(sjw)
(In reply to sjw from comment #0)
> If you click on Component or Product now, you got just an overview of all
> components / products. There should be a way to browse for other bugs in
> this category / other categories in this product. That's what I expected.

I don't see why clicking the Product or Component labels should display bugs in this product or component, while clicking any other label doesn't. This would be a weird behavior.


> If you wishes an overview of all Products and Component, you have still the
> 'Browse' link on the top.

Or said differently, if you wish to see bugs in the same product or component, you have still the "Search" link on the top.
Severity: normal → enhancement
Flags: needinfo?(sjw)
If I reported / viewed a bug in a specific component, I want a way to go back to the bug list of this component. It's not very comfortable to search for it every time.

My idea was to change the existing link on 'Component', because there is no other existing place for it. The current location of this link would be accessible on 'Product' and the current link behind 'Product' is already accessible on 'Browse'

Any better places for these links?


(In reply to Andre Klapper from comment #1)
> Please provide links to what you refer to so we talk about the same. Also,
> what are "categories"?
categories means components and I mean the two links above (field_label_product and field_label_component)
We did something just like this on the Red Hat Bugzilla when I worked there. Here is the original bug:

https://bugzilla.redhat.com/show_bug.cgi?id=458436

We can add something similar to upstream which could be useful.

dkl
Attached patch 984505_1.patch (obsolete) — Splinter Review
Assignee: ui → dkl
Status: NEW → ASSIGNED
Attachment #8394833 - Flags: review?(LpSolit)
Comment on attachment 8394833 [details] [diff] [review]
984505_1.patch

>+        [% IF bug.id && field.name == 'component' %]

It should be "IF bug", because if the bug object doesn't exist, you cannot call its "id" attribute (though I think TT is lenient enough to not die).


>+          (<a href="buglist.cgi?component=[% bug.component FILTER uri %]&product=[% bug.product FILTER uri %]"

& -> &amp; Also, I think this link should only return open bugs. Else the list is huge and pretty useless (especially with the 500 bugs limit by default).
Attachment #8394833 - Flags: review?(LpSolit) → review-
Attached patch 984505_2.patch (obsolete) — Splinter Review
Attachment #8394833 - Attachment is obsolete: true
Attachment #8395060 - Flags: review?(LpSolit)
Comment on attachment 8395060 [details] [diff] [review]
984505_2.patch

I never needed this feature personally, so...
Attachment #8395060 - Flags: review?(LpSolit) → review?(glob)
Comment on attachment 8395060 [details] [diff] [review]
984505_2.patch

Review of attachment 8395060 [details] [diff] [review]:
-----------------------------------------------------------------

::: template/en/default/bug/field.html.tmpl
@@ +137,5 @@
>  
> +        [% IF bug && field.name == 'component' %]
> +          (<a href="buglist.cgi?component=[% bug.component FILTER uri %]&amp;product=[% bug.product FILTER uri %]&amp;bug_status=__open__"
> +              target="_blank">Show other [% terms.bugs %]</a>)
> +        [% END %]

the "S" in "Show" should be lowercase to match other links.

it also should be visible to all users, not just those logged in.
Attachment #8395060 - Flags: review?(glob) → review-
Attached patch 984505_3.patchSplinter Review
Attachment #8395060 - Attachment is obsolete: true
Attachment #8400002 - Flags: review?(glob)
Comment on attachment 8400002 [details] [diff] [review]
984505_3.patch

Review of attachment 8400002 [details] [diff] [review]:
-----------------------------------------------------------------

r=glob
Attachment #8400002 - Flags: review?(glob) → review+
Flags: approval?
Target Milestone: --- → Bugzilla 5.0
Flags: approval? → approval+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   4538109..dc9486b  master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Looks good :)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: