Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 9adeca0

Browse files
author
Jamie Snape
committed
BUG: Minor fixes to tracker dashboard
1 parent e05afd9 commit 9adeca0

File tree

5 files changed

+14
-24
lines changed

5 files changed

+14
-24
lines changed

modules/tracker/configs/module.ini

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[global]
22
; version of the module
3-
version = 1.0.0
4-
; full name
5-
fullname= Tracker Dashboard
6-
; description
7-
description= Track scalar results over time
8-
;Category
9-
category= Visualization
10-
;Dependencies
11-
dependencies= api,scheduler
3+
version = 1.1.0
4+
; full name of the module (displayed on admin page)
5+
fullname = Tracker Dashboard
6+
; description (displayed on admin page)
7+
description = "Tracks scalar results over time"
8+
; category
9+
category = Visualization
10+
; dependencies (comma separated list of other module dependencies)
11+
dependencies = api,scheduler

modules/tracker/database/mysql/1.0.0.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CREATE TABLE IF NOT EXISTS `tracker_trend` (
2525
CREATE TABLE IF NOT EXISTS `tracker_scalar` (
2626
`scalar_id` bigint(20) NOT NULL AUTO_INCREMENT,
2727
`trend_id` bigint(20) NOT NULL,
28-
`value` double precision,
28+
`value` double,
2929
`producer_revision` varchar(255),
3030
`submit_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
3131
PRIMARY KEY (`scalar_id`),
@@ -43,7 +43,7 @@ CREATE TABLE IF NOT EXISTS `tracker_scalar2item` (
4343
CREATE TABLE IF NOT EXISTS `tracker_threshold_notification` (
4444
`threshold_id` bigint(20) NOT NULL AUTO_INCREMENT,
4545
`trend_id` bigint(20) NOT NULL,
46-
`value` double precision,
46+
`value` double,
4747
`comparison` varchar(2),
4848
`action` varchar(80) NOT NULL,
4949
`recipient_id` bigint(20) NOT NULL,

modules/tracker/database/upgrade/1.0.1.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* 1. Adds a user_id value to a scalar record indicating which user uploaded the scalar
55
* 2. Adds a binary "official" flag to a scalar record indicating if it is an official or experimental submission
6-
* 3. Adds submit_time and user_id indices to the tracker_scalar table
6+
* 3. Adds a user_id index to the tracker_scalar table
77
*/
88
class Tracker_Upgrade_1_0_1 extends MIDASUpgrade
99
{
@@ -16,16 +16,14 @@ public function mysql()
1616
$this->db->query("ALTER TABLE `tracker_scalar` ADD COLUMN `user_id` bigint(20) NOT NULL DEFAULT -1");
1717
$this->db->query("ALTER TABLE `tracker_scalar` ADD COLUMN `official` tinyint(4) NOT NULL DEFAULT 1");
1818

19-
$this->db->query("ALTER TABLE `tracker_scalar` ADD INDEX (`submit_time`)");
20-
$this->db->query("ALTER TABLE `tracker_scalar` ADD INDEX (`user_id`)");
19+
$this->db->query("ALTER TABLE `tracker_scalar` ADD KEY (`user_id`)");
2120
}
2221

2322
public function pgsql()
2423
{
2524
$this->db->query("ALTER TABLE tracker_scalar ADD COLUMN user_id bigint NOT NULL DEFAULT -1");
2625
$this->db->query("ALTER TABLE tracker_scalar ADD COLUMN official smallint NOT NULL DEFAULT 1");
2726

28-
$this->db->query("CREATE INDEX tracker_scalar_idx_submit_time ON tracker_scalar (submit_time)");
2927
$this->db->query("CREATE INDEX tracker_scalar_idx_user_id ON tracker_scalar (user_id)");
3028
}
3129

modules/tracker/public/css/producer/producer.edit.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ div.submitButtonContainer {
55

66
textarea.description {
77
resize: none;
8-
}
8+
}

modules/tracker/views/config/index.phtml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ $this->headScript()->appendFile($this->moduleWebroot.'/public/js/config/config.i
1414
?>
1515

1616
<div class="viewMain">
17-
<div class="explanation">
18-
<p>Optionally set the Repository Browser URL to point to your repository browser. If set, users will be able
19-
to click revision links for uploaded scalar values and go to the corresponding repository browser page for
20-
that revision. In the field below, use the special placeholder string <b>%revision</b> where the revision
21-
should go in the URL.</p>
22-
<p><b>Example:</b> https://github.com/myuser/myproject/commit/%revision</p>
23-
<p>Leave this field blank if you do not want the revision numbers to link to anything.</p>
24-
</div>
2517
<form id="configForm" class="genericForm" method="POST" action="<?php echo $this->webroot;?>/tracker/config/submit">
2618
<div class="explanation">
2719
<p>Set this field to the number of hours that unofficial submissions should be kept before being deleted automatically

0 commit comments

Comments
 (0)