Last modified: 2013-08-28 08:24:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48413, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46413 - Quick "Show other bug reports in this component" query link in bug report
Quick "Show other bug reports in this component" query link in bug report
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Bugzilla (Other open bugs)
wmf-deployment
All All
: High enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-21 11:39 UTC by Andre Klapper
Modified: 2013-08-28 08:24 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andre Klapper 2013-03-21 11:39:21 UTC
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.
Comment 1 Andre Klapper 2013-05-31 13:02:55 UTC
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>
[...]
Comment 2 Gerrit Notification Bot 2013-08-27 11:26:51 UTC
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
Comment 3 Gerrit Notification Bot 2013-08-27 22:06:28 UTC
Change 81212 merged by Dzahn:
Display link to show list of other bug reports in same component

https://gerrit.wikimedia.org/r/81212
Comment 4 Andre Klapper 2013-08-28 08:24:18 UTC
Merged. Thanks Daniel!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links