#3215 Show total builds and add two more date options
Merged 2 years ago by tkopecek. Opened 2 years ago by alexi.
alexi/koji total_builds  into  master

@@ -7,6 +7,8 @@ 

  <option value="$value"#if $value == $days then ' selected="selected"' else ''#>$label</option>

  #end def

  

+ #set $numTotal = $numSucceeded + $numFailed + $numCanceled

+ 

  #include "includes/header.chtml"

  

    <h4>Succeeded/Failed/Canceled Builds#if $days != -1 then ' in the last %i days' % $days else ''#</h4>
@@ -25,6 +27,8 @@ 

              $printOption(60)

              $printOption(90)

              $printOption(120)

+             $printOption(180)

+             $printOption(365)

              $printOption(-1, 'all')

            </select> days

          </form>
@@ -50,6 +54,11 @@ 

        <td width="#echo $graphWidth + 5#"><img src="$util.themePath('images/1px.gif')" width="#echo $increment * $numCanceled#" height="15" class="graphrow" alt="graph row"/></td>

        <td>$numCanceled</td>

      </tr>

+     <tr class="row-even">

+       <td>Total</td>

+       <td></td>

+       <td>$numTotal</td>

+     </tr>

    </table>

  

  #include "includes/footer.chtml"

I wanted to easily see how many builds my Koji instance has done in the last year, so I added an extra row to this report to save me from having to do math, plus two new date options.

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @ksulayma:
- Pull-request tagged with: testing-done

2 years ago

Commit e292fd8 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago