Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: appengine/findit/templates/crash/fracas_dashboard.html

Issue 2043973002: [Findit] Fracas crash triage dashboard (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix nits. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/findit/model/triage_status.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <title>Fracas Dashboard</title>
4 <meta charset="utf-8">
5 <link rel="stylesheet" href="/common.css">
6 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "></script>
7 <script>
8 function createUrl(parameters) {
9 var params = [];
10 for (var key in parameters) {
11 if (parameters[key] != undefined) {
12 params.push(key + '=' + parameters[key])
13 }
14 }
15
16 if (params.length == 0) {
17 return 'fracas-dashboard';
18 } else {
19 return 'fracas-dashboard?' + params.join('&');
20 }
21 };
22
23 function getFiltersUrl() {
24 var parameters = {}
25 parameters['start_date'] = $('#start_date').val() == 'mm/dd/yyyy' ? undefi ned : $('#start_date').val();
26 parameters['end_date'] = $('#end_date').val() == 'mm/dd/yyyy' ? undefined : $('#end_date').val();
27 parameters['found_suspects'] = $('#found_suspects').val() == 'default' ? u ndefined : $('#found_suspects').val();
28 parameters['has_regression_range'] = $('#has_regression_range').val() == ' default' ? undefined : $('#has_regression_range').val();
29 parameters['suspected_cls_triage_status'] = $('#suspected_cls_triage_statu s').val() == 'default' ? undefined : $('#suspected_cls_triage_status').val();
30 parameters['regression_range_triage_status'] = $('#regression_range_triage _status').val() == 'default' ? undefined : $('#regression_range_triage_status'). val();
31 return createUrl(parameters);
32 };
33
34 $(document).ready(function() {
35 $('#submit').click(function(e) {
36 e.preventDefault();
37 var new_url = getFiltersUrl();
38 $('#dashboard-table').load(new_url + ' #dashboard-table');
39 history.pushState({}, null, new_url);
stgao 2016/06/24 00:49:07 If the purpose of this is to preserve the filter s
Sharu Jiang 2016/06/28 00:11:46 The 'GET' will refresh the page, right? I think th
stgao 2016/06/28 16:40:21 Line #38 above does a http get too. I don't think
40 });
41 if ('{{found_suspects}}' != '-1') {
42 $('#found_suspects').val('{{found_suspects}}');
43 }
44 if ('{{has_regression_range}}' != '-1') {
45 $('#has_regression_range').val('{{has_regression_range}}');
46 }
47 if ('{{suspected_cls_triage_status}}' != '-1') {
48 $('#suspected_cls_triage_status').val('{{suspected_cls_triage_status}}') ;
49 }
50 if ('{{regression_range_triage_status}}' != '-1') {
51 $('#regression_range_triage_status').val('{{regression_range_triage_stat us}}');
52 }
53 });
54 </script>
55 </head>
56 <body>
57 <form>
58 Start Date
59 <input type="date" id="start_date" value={{ start_date }}></input>
60 End Date
61 <input type="date" id="end_date" value={{ end_date }}></input>
62
63 Found suspects
64 <select id="found_suspects">
65 <option value="default"></option>
66 <option value="1">True</option>
stgao 2016/06/24 00:49:07 Yes/No instead? Same below.
Sharu Jiang 2016/06/28 00:11:46 Done.
67 <option value="0">False</option>
68 </select>
69
70 Has regression range
71 <select id="has_regression_range">
72 <option value="default"></option>
73 <option value="1">True</option>
74 <option value="0">False</option>
75 </select>
76
77 Suspects triaged?
78 <select id="suspected_cls_triage_status">
79 <option value="default"></option>
80 <option value="0">Untriaged</option>
81 <option value="1">Triaged-Incorrect</option>
82 <option value="2">Triaged-Correct</option>
83 <option value="3">Triaged-Unsure</option>
84 </select>
85
86 Regressoin range triaged?
87 <select id="regression_range_triage_status">
88 <option value="default"></option>
89 <option value="0">Untriaged</option>
90 <option value="1">Triaged-Incorrect</option>
91 <option value="2">Triaged-Correct</option>
92 <option value="3">Triaged-Unsure</option>
93 </select>
94
95 <input type="submit" id="submit" value="Submit Filters"></input>
stgao 2016/06/24 00:49:07 Just "Filter" or "Refresh"?
Sharu Jiang 2016/06/28 00:11:46 Done.
96 </form>
97
98 <br>
99 <div id="dashboard-table">
100 <table>
101 <tr>
102 <th>Signature</th>
103 <th>Version</th>
104 <th>Channel</th>
105 <th>Platform</th>
106 <th>Regression range</th>
107 <th>Suspected cls</th>
108 <th>Suspected project</th>
109 <th>Suspected components</th>
110 </tr>
111 <tbody>
112 {% for fracas_crash in fracas_crashes %}
113 <tr>
114 <td>
115 <a href="./fracas-result-feedback?key={{fracas_crash.key}}" target ="_blank">{{fracas_crash.signature}}</a>
116 </td>
117 <td>
118 <a href="https://chromium.googlesource.com/chromium/src.git/+/{{fr acas_crash.version}}" target="_blank">{{fracas_crash.version}}</a>
119 </td>
120 <td>{{ fracas_crash.channel }}</td>
121 <td>{{ fracas_crash.platform }}</td>
122 {% if fracas_crash.regression_range %}
123 <td><a href="https://chromium.googlesource.com/chromium/src/+log/{ {fracas_crash.regression_range[0]}}..{{fracas_crash.regression_range[1]}}?pretty =fuller">{{ fracas_crash.regression_range[0] }} : {{ fracas_crash.regression_ran ge[1] }}</td>
124 {% else %}
125 <td></td>
126 {% endif %}
127 <td>
128 {% if fracas_crash.suspected_cls %}
129 {% for suspected_cl in fracas_crash.suspected_cls %}
130 <li>
131 <a href="{{suspected_cl.url}}">{{suspected_cl.revision}}</a>
132 </li>
133 {% endfor %}
134 {% endif %}
135 </td>
136 <td>{{ fracas_crash.suspected_project }}</td>
137 <td>
138 {% if fracas_crash.suspected_components %}
139 {% for component in fracas_crash.suspected_components %}
140 <li>{{component}}</li>
141 {% endfor %}
142 {% endif %}
143 </td>
144 </tr>
145 {% endfor %}
146 </tbody>
147 </table>
148 </div>
149 </body>
OLDNEW
« no previous file with comments | « appengine/findit/model/triage_status.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698