Sync build infro from the alpha site
This commit is contained in:
@@ -380,4 +380,27 @@ class CrashReport
|
||||
$this->raw_stacktrace = $stacktrace;
|
||||
$this->parseStackTrace($this->raw_stacktrace);
|
||||
}
|
||||
|
||||
static function getBuildsMap()
|
||||
{
|
||||
$ret = array();
|
||||
$q = "select * from builds order by chan asc, build_nr desc";
|
||||
if (false !== $cached = Memc::getq($q)) return $cached;
|
||||
|
||||
if (!$res = DBH::$db->query($q)) return;
|
||||
|
||||
while ($row = DBH::$db->fetchRow($res))
|
||||
{
|
||||
$build = new stdClass;
|
||||
DBH::$db->loadFromDbRow($build, $res, $row);
|
||||
if (!$ret[$build->chan])
|
||||
{
|
||||
$ret[$build->chan] = array();
|
||||
}
|
||||
$ret[$build->chan][$build->version] = $build->hash;
|
||||
}
|
||||
|
||||
Memc::setq($q, $ret);
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
@@ -132,8 +132,8 @@ class Layout
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php print URL_ROOT ?>/css/singularity/jquery-ui-1.10.3.custom.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?php print URL_ROOT ?>/css/singularity/singularity.css"/>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<link rel="shortcut icon" href="<?php print IMG_ROOT ?>/favicon.ico" type="image/x-icon" />
|
||||
<title>Singularity Viewer - Automated Crash Report Processing System</title>
|
||||
</head>
|
||||
|
||||
@@ -69,4 +69,13 @@ create table comment(
|
||||
user_id integer,
|
||||
commented timestamp not null default current_timestamp,
|
||||
comment text
|
||||
);
|
||||
|
||||
create table builds(
|
||||
build_nr integer,
|
||||
chan varchar(64),
|
||||
version varchar(64),
|
||||
hash varchar(64),
|
||||
modified timestamp,
|
||||
primary key(chan, build_nr)
|
||||
);
|
||||
Reference in New Issue
Block a user