Patch details:
- Mark any host that hasn't checked in the last 5 minutes as red
- Mark all other hosts as green
- Place all hosts on one page so one does not have to scroll thru and find any possibly downed hosts
--- ./koji-1.6.0/www/kojiweb/index.py*** 2010-12-16 16:13:17.000000000 -0500
+++ ./index.py.0*** 2011-12-01 13:53:54.169121521 -0500
@@ -1419,8 +1419,27 @@
******** host['last_update'] = lastUpdate
*
**** # Paginate after retrieving last update info so we can sort on it
-*** kojiweb.util.paginateList(values, hosts, start, 'hosts', 'host', order)
-
+*** #kojiweb.util.paginateList(values, hosts, start, 'hosts', 'host', order)
+**
+*** if (order != None):
+******* hosts.sort(kojiweb.util.sortByKeyFunc(order, False))
+*** for host in hosts:
+******* flag = 0
+******* try:
+*********** utct = time.localtime()
+*********** utcs = int(time.strftime("%s", utct))
+*********** chkt = time.strptime(host['last_update'][0:19], "%Y-%m-%d %H:%M:%S")
+*********** chks = int(time.strftime("%s", chkt))
+*********** if ((utcs - (5 * 60)) >= chks):
+*************** flag = 1
+******* except:
+*********** flag = 1
+******* if (flag == 1):
+*********** host['name'] = ("<font color='#C00'>" + host['name'] + "</font>")
+******* else:
+*********** host['name'] = ("<font color='#0C0'>" + host['name'] + "</font>")
+*** kojiweb.util._populateValues(values, 'hosts', 'host', hosts, len(hosts), 0, len(hosts), len(hosts) + 5, order)
+**
**** return _genHTML(req, 'hosts.chtml')
*
*def hostinfo(req, hostID=None, userID=None):
Patch details:
- Produce a list of the latest buildArch attempts made by a host on the "hostinfo" page (up to max 50)
Patch details:
- Grab the last 5 buildArch statuses from Koji for each builder using ajax
- It will place that short build history beside each builder (sort of like a little "life-line")