summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2022-11-11 18:52:18 +0000
committerPascal Terjan <pterjan@mageia.org>2022-11-11 18:52:18 +0000
commit8e7a01ce454296b57e54b21432b6225fbddd3788 (patch)
treeda4d64b3fc276c3aacffc0e2f5a3d0d8c80199d5
parent273e7a3670cd2a54b12339dbb3f3a52bf65cdb0d (diff)
downloadpkgsubmit-8e7a01ce454296b57e54b21432b6225fbddd3788.tar
pkgsubmit-8e7a01ce454296b57e54b21432b6225fbddd3788.tar.gz
pkgsubmit-8e7a01ce454296b57e54b21432b6225fbddd3788.tar.bz2
pkgsubmit-8e7a01ce454296b57e54b21432b6225fbddd3788.tar.xz
pkgsubmit-8e7a01ce454296b57e54b21432b6225fbddd3788.zip
Allow filtering on package status
-rw-r--r--autobuild/results.php45
1 files changed, 32 insertions, 13 deletions
diff --git a/autobuild/results.php b/autobuild/results.php
index 5292812..fe1d479 100644
--- a/autobuild/results.php
+++ b/autobuild/results.php
@@ -313,11 +313,10 @@ if ($all_attrs) {
echo "<b>$attr_type: </b>";
$filters[$attr_type] = Array();
foreach ($attrs as $attr) {
+ $checked = "";
if ($_GET["attr_$attr_type_$attr"]) {
$checked = "checked";
array_push($filters[$attr_type], $attr);
- } else {
- $checked="";
}
echo "<input type=\"checkbox\" $checked name=\"attr_$attr_type_$attr\" value=\"1\">$attr</input>\n";
}
@@ -337,6 +336,20 @@ if ($all_attrs) {
echo "<option $selected value=\"$m\">$m ($c)</option>\n";
}
echo "</select><br/>\n";
+ $filters["history"] = Array();
+ $checked = "";
+ if ($_GET["history_new"]) {
+ $checked = "checked";
+ array_push($filters["history"], "new");
+ }
+ echo "<input type=\"checkbox\" $checked name=\"history_new\" value=\"1\">Only show newly broken packages</input><br/>\n";
+ $filters["status"] = Array();
+ $checked = "";
+ if ($_GET["status_broken"]) {
+ $checked = "checked";
+ array_push($filters["status"], "broken");
+ }
+ echo "<input type=\"checkbox\" $checked name=\"status_broken\" value=\"1\">Hide fixed packages</input><br/>\n";
echo "<input type=\"submit\" value=\"Apply\" />\n";
echo "</form>";
}
@@ -345,14 +358,27 @@ echo "<table class=\"failureTable\" >\n";
echo "<tr><th></th><th>Maintainer</th><th>Status</th><th>Failure type</th><th>Build step</th><th></th><th>Languages</th><th>Detected errors</th></tr>\n";
foreach ($failure as $rpm => $error) {
$parsed = parse_package($rpm);
+ $attributes = get_package_attributes($packageid);
+ if (isset($pkg_maintainers[$parsed['package']])) {
+ $maintainer = $pkg_maintainers[$parsed['package']];
+ } else {
+ $maintainer = "nobody";
+ }
+ $attributes .= " maintainer_$maintainer";
$history_link = '<a href="history.php?package='.$parsed['package'].'">History</a>';
$status_html = "";
if (array_key_exists($rpm, $fixed)) {
- $status_html = " <img src='icons/state-fixed.png' title='Fixed!' /> Fixed";
+ $status_html .= " <img src='icons/state-fixed.png' title='Fixed!' /> Fixed";
+ $attributes .= " status_fixed";
} elseif (array_key_exists($rpm, $removed)) {
- $status_html = " <img src='icons/state-removed.png' title='Removed' /> Removed";
- } elseif (array_key_exists($rpm, $broken)) {
- $status_html = " <img src='icons/state-new.png' title='New!' /> New";
+ $status_html .= " <img src='icons/state-removed.png' title='Removed' /> Removed";
+ $attributes .= " status_removed";
+ } else {
+ $attributes .= " status_broken";
+ }
+ if (array_key_exists($rpm, $broken)) {
+ $status_html .= " <img src='icons/state-new.png' title='New!' /> New";
+ $attributes .= " history_new";
}
$error_html = $error;
if (file_exists("icons/error-$error.png")) {
@@ -366,13 +392,6 @@ foreach ($failure as $rpm => $error) {
$langs = "";
$errors = "";
$stage = "";
- $attributes = get_package_attributes($packageid);
- if (isset($pkg_maintainers[$parsed['package']])) {
- $maintainer = $pkg_maintainers[$parsed['package']];
- } else {
- $maintainer = "nobody";
- }
- $attributes .= " maintainer_$maintainer";
if ($attributes) {
# Attributes are space separated words of the form "TYPE_SPECIFIER", e.g., "lang_php"
# Types are currently build (use of a particular build system),