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

Side by Side Diff: appengine/findit/handlers/crash/fracas_dashboard.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: rebase-update Created 4 years, 3 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from datetime import datetime 4 from datetime import datetime
5 from datetime import time 5 from datetime import time
6 from datetime import timedelta 6 from datetime import timedelta
7 import json 7 import json
8 8
9 from common import time_util 9 from common import time_util
10 from common.base_handler import BaseHandler 10 from common.base_handler import BaseHandler, Permission
11 from common.base_handler import Permission
12 from model.crash.fracas_crash_analysis import FracasCrashAnalysis 11 from model.crash.fracas_crash_analysis import FracasCrashAnalysis
13 12
14 13
15 _EQUAL_FILTER_TO_CONVERTER = { 14 _EQUAL_FILTER_TO_CONVERTER = {
16 'found_suspects': lambda x: x == 'yes', 15 'found_suspects': lambda x: x == 'yes',
17 'has_regression_range': lambda x: x == 'yes', 16 'has_regression_range': lambda x: x == 'yes',
18 'suspected_cls_triage_status': int, 17 'suspected_cls_triage_status': int,
19 'regression_range_triage_status': int, 18 'regression_range_triage_status': int,
20 } 19 }
21 20
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 'suspected_cls_triage_status', '-1'), 95 'suspected_cls_triage_status', '-1'),
97 'regression_range_triage_status': self.request.get( 96 'regression_range_triage_status': self.request.get(
98 'regression_range_triage_status', '-1'), 97 'regression_range_triage_status', '-1'),
99 'fracas_crashes': fracas_crashes 98 'fracas_crashes': fracas_crashes
100 } 99 }
101 100
102 return { 101 return {
103 'template': 'crash/fracas_dashboard.html', 102 'template': 'crash/fracas_dashboard.html',
104 'data': data 103 'data': data
105 } 104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698