Page MenuHomePhabricator

Quick "Show other bug reports in this component" query link in bug report
Closed, ResolvedPublic

Description

Quoting S Page:

What's the quickest way to go from seeing a bug for a particular component
to viewing all bugs for that component? That's my biggest frustration with
Bugzilla. The advanced search is so big and complicated, and having to
re-choose Mediawiki extensions & choose extension each time gets old.

RedHat Bugzilla shows a "(Show other bugs)" link next to the component dropdown. Simon (its maintainer) was kind enough to point me to https://bugzilla.redhat.com/show_bug.cgi?id=458436 which has that four-liner patch attached.
Has not been upstreamed unfortunately.


Version: wmf-deployment
Severity: enhancement

Details

Reference
bz46413

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:36 AM
bzimport set Reference to bz46413.
bzimport added a subscriber: Unknown Object (MLST).

Tried the Red Hat patch locally and of course code has changed in the meantime.

In edit.html.tmpl, the <td> for the component dropdown (in which I wanted to insert that new link) is now created by including field.html.tmpl which is generic for all these meta fields. Hence passing no_tds=1 and constructing the <td>s and the "Component:" label manually seems to work.

As our Bugzilla/Gerrit/Puppet setup is still far from perfect (and I'm too lazy right now to copy the file from "default" to "custom" and then create a patch on top of it), quick & dirty paste of the changes in template/en/default/bug/edit.html.tmpl:

[...]

[%###############%]    
[%#  Component  #%]
[%###############%]
<tr>
  <td class="field_label">
    <label for="component"><b><a href="describecomponents.cgi?product=[% bug.product FILTER uri %]">Component</a></b></label>:
  </td>
  <td>
  [% INCLUDE bug/field.html.tmpl
      bug = bug, field = bug_fields.component, 
      no_tds = 1, value = bug.component
      override_legal_values = bug.choices.component
      desc_url = "describecomponents.cgi?product=$bug.product"
      editable = bug.check_can_change_field('component', 0, 1)
  %]
[%# WIKIMEDIA EXTENSION START 46413 %]
(<a href="buglist.cgi?component=[% bug.component FILTER uri %]&product=[% bug.product FILTER uri %]" target="new_window">Show other [% terms.bugs %]</a>)
[%# WIKIMEDIA EXTENSION END 46413 %]
</td>
</tr>
<tr>
  <td class="field_label">
    <label for="version"><b>Version</b></label>:
  </td>

[...]

Change 81212 had a related patch set uploaded by Aklapper:
Display link to show list of other bug reports in same component

https://gerrit.wikimedia.org/r/81212

Change 81212 merged by Dzahn:
Display link to show list of other bug reports in same component

https://gerrit.wikimedia.org/r/81212