Uncommitted stuff
Eelco Dolstra committed
Dec 30, 2019 at 23:19 UTC
a6fe817d238f9ea5590788493a84fa8fd08a870f
1 file changed
+4
-2
delft/eris/status-page/status.js
+4
-2
@@ -32,6 +32,7 @@ const revisionData = fetchData('query', {
32
channel: metric.channel,
33
value: {
34
revision: metric.revision,
35
+ short_revision: metric.revision.substring(0, 12),
36
github_url: `https://github.com/NixOS/nixpkgs/commit/${metric.revision}`,
37
},
38
}))
@@ -122,6 +123,7 @@ Promise.all([revisionData, updateTimeData, jobsetData])
123
jobset['channel'] = channel;
124
if (revisions[channel] != undefined) {
125
jobset['revision'] = revisions[channel]['revision'];
126
+ jobset['short_revision'] = revisions[channel]['short_revision'];
127
jobset['github_url'] = revisions[channel]['github_url'];
128
} else {
129
continue
@@ -163,7 +165,7 @@ Promise.all([revisionData, updateTimeData, jobsetData])
165
row.getElementsByClassName("age")[0].innerText = record['update_time_relative'];
166
row.getElementsByClassName("age")[0].title = record['update_time_local'];
167
row.getElementsByClassName("age")[0].classList.add("label-" + record['update_age']);
166
- row.getElementsByClassName("revision")[0].innerText = record['revision'];
168
+ row.getElementsByClassName("revision")[0].innerText = record['short_revision'];
169
row.getElementsByClassName("revision")[0].href = record['github_url'];
170
171
row.getElementsByClassName("hydra-link")[0].href = record['hydra_url'];
@@ -173,7 +175,7 @@ Promise.all([revisionData, updateTimeData, jobsetData])
175
")";
176
177
if (record['job_history'][record['job_history'].length - 1] == 0) {
176
- row.getElementsByClassName("status")[0].innerHTML += '<span class="label label-important">Failing</span>';
178
+ row.getElementsByClassName("status")[0].innerHTML += '<span class="label label-important">Build problem</span>';
179
180
}
181
return row;