Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 598969 - [RFE] button for expand/collapse all results for job
Summary: [RFE] button for expand/collapse all results for job
Status: NEW
Alias: None
Product: Beaker
Classification: Community
Component: web UI
Version: 0.5
Hardware: All
OS: Linux
medium vote
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact:
Whiteboard: UX
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-02 13:01 UTC by Martin Kudlej
Modified: 2018-11-09 23:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)
Screenshot of legacy job list with expander highlighted (deleted)
2010-06-22 15:57 UTC, Kevin Baker
no flags Details
Screenshot of legacy job list with expanded job (deleted)
2010-06-22 15:57 UTC, Kevin Baker
no flags Details

Description Martin Kudlej 2010-06-02 13:01:46 UTC
Expected results:
There is button/link to expand/collapse all results on job page.

Additional info:
Please inspire in this script:
window.my_array = [];
for (var i in window) {
  if (i.indexOf("showall_") != -1){
$("#toggle_job_history").after("&nbsp;&nbsp;&nbsp;&nbsp;<a href=\'#\' id=\'expan
    for (var i = 0; i < window.my_array.length; i++) {
      if($.cookie("recipe_" + window.my_array[i])) {
        window["shownone_" + window.my_array[i]].call()
      } else { 
        window["showall_" + window.my_array[i]].call()

or GreaseMonkey script:
// ==UserScript==
// @name           beaker
// @namespace      *
// @include        *
// ==/UserScript==

function contentEval(source) {
  if ('function' == typeof source) {
    source = '(' + source + ')();'
  var script = document.createElement('script');
  script.setAttribute("type", "application/javascript");
  script.textContent = source;
var s = 'window.my_array = [];for (var i in window) {if (i.indexOf("showall_") != -1){window.my_array.push(i.split("_")[1])}};$("#toggle_job_history").after("&nbsp;&nbsp;&nbsp;&nbsp;<a href=\'#\' id=\'expand_recipes\'>Expand/collapse recipes</a>");$("#expand_recipes").click(function(){for (var i = 0; i < window.my_array.length; i++){if($.cookie("recipe_" + window.my_array[i])){window["shownone_" + window.my_array[i]].call()}else{window["showall_" + window.my_array[i]].call()}}});';

Comment 1 Petr Šplíchal 2010-06-02 13:03:31 UTC
That would be useful, +1.

Comment 2 Kevin Baker 2010-06-22 15:56:24 UTC
Is this the same feature that you see on the legacy rhts server on the job list? Attaching some screenshots to confirm

Comment 3 Kevin Baker 2010-06-22 15:57:31 UTC
Created attachment 425988 [details]
Screenshot of legacy job list with expander highlighted

Comment 4 Kevin Baker 2010-06-22 15:57:58 UTC
Created attachment 425989 [details]
Screenshot of legacy job list with expanded job

Comment 5 Petr Šplíchal 2010-06-25 14:48:52 UTC
Actually, there was no such button in the RHTS and one had to
click on say seven little triangles to open all seven recipes with
detailed results for individual architectures.

The suggested button should manage this in a single click on a
button called "Expand All Recipes" or similar.

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