This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +14
-24
lines changed Expand file tree Collapse file tree 5 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 1
1
[global]
2
2
; 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
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ CREATE TABLE IF NOT EXISTS `tracker_trend` (
25
25
CREATE TABLE IF NOT EXISTS ` tracker_scalar` (
26
26
` scalar_id` bigint (20 ) NOT NULL AUTO_INCREMENT,
27
27
` trend_id` bigint (20 ) NOT NULL ,
28
- ` value` double precision ,
28
+ ` value` double,
29
29
` producer_revision` varchar (255 ),
30
30
` submit_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
31
31
PRIMARY KEY (` scalar_id` ),
@@ -43,7 +43,7 @@ CREATE TABLE IF NOT EXISTS `tracker_scalar2item` (
43
43
CREATE TABLE IF NOT EXISTS ` tracker_threshold_notification` (
44
44
` threshold_id` bigint (20 ) NOT NULL AUTO_INCREMENT,
45
45
` trend_id` bigint (20 ) NOT NULL ,
46
- ` value` double precision ,
46
+ ` value` double,
47
47
` comparison` varchar (2 ),
48
48
` action` varchar (80 ) NOT NULL ,
49
49
` recipient_id` bigint (20 ) NOT NULL ,
Original file line number Diff line number Diff line change 3
3
/**
4
4
* 1. Adds a user_id value to a scalar record indicating which user uploaded the scalar
5
5
* 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
7
7
*/
8
8
class Tracker_Upgrade_1_0_1 extends MIDASUpgrade
9
9
{
@@ -16,16 +16,14 @@ public function mysql()
16
16
$ this ->db ->query ("ALTER TABLE `tracker_scalar` ADD COLUMN `user_id` bigint(20) NOT NULL DEFAULT -1 " );
17
17
$ this ->db ->query ("ALTER TABLE `tracker_scalar` ADD COLUMN `official` tinyint(4) NOT NULL DEFAULT 1 " );
18
18
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`) " );
21
20
}
22
21
23
22
public function pgsql ()
24
23
{
25
24
$ this ->db ->query ("ALTER TABLE tracker_scalar ADD COLUMN user_id bigint NOT NULL DEFAULT -1 " );
26
25
$ this ->db ->query ("ALTER TABLE tracker_scalar ADD COLUMN official smallint NOT NULL DEFAULT 1 " );
27
26
28
- $ this ->db ->query ("CREATE INDEX tracker_scalar_idx_submit_time ON tracker_scalar (submit_time) " );
29
27
$ this ->db ->query ("CREATE INDEX tracker_scalar_idx_user_id ON tracker_scalar (user_id) " );
30
28
}
31
29
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ div.submitButtonContainer {
5
5
6
6
textarea .description {
7
7
resize : none;
8
- }
8
+ }
Original file line number Diff line number Diff line change @@ -14,14 +14,6 @@ $this->headScript()->appendFile($this->moduleWebroot.'/public/js/config/config.i
14
14
?>
15
15
16
16
<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>
25
17
<form id="configForm" class="genericForm" method="POST" action="<?php echo $ this ->webroot ;?> /tracker/config/submit">
26
18
<div class="explanation">
27
19
<p>Set this field to the number of hours that unofficial submissions should be kept before being deleted automatically
You can’t perform that action at this time.
0 commit comments