Overview
Comment: | Basic working display of runs data |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.64 |
Files: | files | file ages | folders |
SHA1: |
58256fbbe748a89bc09d4bed037e53c5 |
User & Date: | matt on 2017-03-01 23:33:38 |
Other Links: | branch diff | manifest | tags |
Context
2017-03-03
| ||
06:10 | Merged from v1.63 check-in: 64f440e2e1 user: matt tags: v1.64 | |
2017-03-01
| ||
23:33 | Basic working display of runs data check-in: 58256fbbe7 user: matt tags: v1.64 | |
2017-02-28
| ||
23:44 | Re-org'd some files and provided a skeleton cgi with some examples check-in: 6c5ce13b65 user: matt tags: v1.64 | |
Changes
Modified cgisetup/models/pgdb.scm from [0256fd6a9b] to [4312bc0643].
︙ | |||
165 166 167 168 169 170 171 | 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | - + - - + + + + + + + + + | (dbi:get-rows dbh "SELECT t.id,t.run_id,t.test_name,t.item_path,t.state,t.status,t.host,t.cpuload,t.diskfree,t.uname,t.rundir,t.final_logf,t.run_duration,t.comment,t.event_time,t.archived, r.id,r.target,r.ttype_id,r.run_name,r.state,r.status,r.owner,r.event_time,r.comment FROM tests AS t INNER JOIN runs AS r ON t.run_id=r.id WHERE r.target LIKE ?;" target-patt)) |
︙ | |||
201 202 203 204 205 206 207 | 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | + + - + - + | ;; probably want to move these to a different model file ;; create a hash of hashes with keys extracted from all-parts ;; using row-or-col to choose row or column ;; ht{row key}=>ht{col key}=>data ;; ;; fnum is the field number in the tuples to be split ;; |
Modified cgisetup/pages/index_view.scm from [8e73b032f8] to [d888a50158].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - + + - + - + | (vector-ref (car curr-trec) 1) #f)) (all-parts (if curr-ttype (append (string-split curr-ttype "/") '("runname" "testname")) '())) (tfilter (or (s:session-var-get "target-filter") "%")) (targets (pgdb:get-targets-of-type dbh selected tfilter)) ;; (target (s:session-var-get "target")) ;; (target-patt (or target "%")) (row-or-col (string-split (or (s:session-var-get "row-or-col") "") ",")) |
︙ | |||
55 56 57 58 59 60 61 | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | - - - - - - - - - - - - - + + + + + + + + + + + + + + - + + + + + + + + + + - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | (list ttype tt-id ttype #f)))) ttypes) 'name 'target-type) (s:input-preserve 'name "tfilter" 'placeholder "Filter targets") (s:input 'type "submit" 'name "set-filter-vals" 'value "Submit" 'class "col_3")) ;; use radio buttons to select whether to put this identifier in row or column. ;; this seems clumsly and takes up a lot of screen realestate |
︙ |