Commit f13deafb authored by Leigh B Stoller's avatar Leigh B Stoller

Some fixes for the All Errors admin page.

parent 31745897
......@@ -213,7 +213,7 @@ function Do_ExperimentErrors()
"left join apt_profiles as p on ".
" p.profileid=f.profile_id ".
$clause . " " .
"order by f.started desc limit 25");
"order by f.started desc limit 100");
while ($row = mysql_fetch_array($query_result)) {
$name = $row["name"];
......@@ -268,18 +268,18 @@ function Do_ExperimentErrors()
$url = null;
}
}
$results[$uuid] = array("name" => $name,
"uuid" => $uuid,
"exitcode" => $exitcode,
"active" => $active,
"started" => $started,
"creator" => $creator,
"reason" => $reason,
"message" => $message,
"url" => $url,
"cluster" => $cluster,
"profile_uuid" => $profile_uuid,
"profile_name" => $profile_name);
$results[] = array("name" => $name,
"uuid" => $uuid,
"exitcode" => $exitcode,
"active" => $active,
"started" => $started,
"creator" => $creator,
"reason" => $reason,
"message" => $message,
"url" => $url,
"cluster" => $cluster,
"profile_uuid" => $profile_uuid,
"profile_name" => $profile_name);
}
SPITAJAX_RESPONSE($results);
}
......
......@@ -83,9 +83,8 @@ $(function ()
}
});
// Remember the last date in the range.
var keys = Object.keys(errors);
var uuid = keys[keys.length - 1];
earliest = moment(errors[uuid].created).valueOf() / 1000;
var last = errors[errors.length - 1];
earliest = moment(last.started).valueOf() / 1000;
// Enable previous button after page 0.
if (page > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment