Mailinglist Archive: opensuse-boosters (69 mails)

< Previous Next >
Re: [opensuse-boosters] factory.o.o
  • From: Vincent Untz <vuntz@xxxxxxxxxxxx>
  • Date: Fri, 11 Dec 2009 18:53:48 +0100
  • Message-id: <20091211175348.GD21435@xxxxxxxxx>
Le vendredi 11 décembre 2009, à 15:50 +0100, Andreas Jaeger a écrit :
On Friday 11 December 2009 14:58:14 Stephan Kulow wrote:
Hi,

https://build.opensuse.org/stage/project/status?project=openSUSE:Factory
has basically the current state of my perl scriptery as part of the
build service.

I would appreciate a counter saying how much packages are displayed. Would
this be possible to add?

The attached patch should help. I'm just wondering whether it'd make
more sense to compute the numbers in the controller -- depends on how
slow the select methods are...

Vincent

--
Les gens heureux ne sont pas pressés.
diff --git a/src/webui/app/views/project/status.rhtml
b/src/webui/app/views/project/status.rhtml
index 7457e08..9ef6663 100644
--- a/src/webui/app/views/project/status.rhtml
+++ b/src/webui/app/views/project/status.rhtml
@@ -26,6 +26,13 @@

<% comments_to_clear = [] %>

+<p>There are <%= @packages.length %> packages needing handling, including:
+ <ul>
+ <li><%= @packages.select {|p| p['firstfail'] and p['firstfail'] >
0}.length %> packages not building.</li>
+ <li><%= @packages.select {|p| !p['request'].empty?}.length %> packages
with a diff in the devel project.</li>
+ </ul>
+</p>
+
<div>
<p><a href="#" class="hide_rqF">Hide</a><a href="#" class="show_rqF">Show</a>
factory rq</a>
<a href="#" class="show_failed">Show failed</a><a href="#"
class="show_all">Show all</a>
< Previous Next >
Follow Ups