| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 4 |
| 5 """Dispatches requests to request handler classes.""" | 5 """Dispatches requests to request handler classes.""" |
| 6 | 6 |
| 7 import webapp2 | 7 import webapp2 |
| 8 | 8 |
| 9 from dashboard import add_point | 9 from dashboard import add_point |
| 10 from dashboard import add_point_queue | 10 from dashboard import add_point_queue |
| 11 from dashboard import alerts | 11 from dashboard import alerts |
| 12 from dashboard import associate_alerts | 12 from dashboard import associate_alerts |
| 13 from dashboard import auto_bisect | 13 from dashboard import auto_bisect |
| 14 from dashboard import auto_triage | 14 from dashboard import auto_triage |
| 15 from dashboard import bad_bisect | 15 from dashboard import bad_bisect |
| 16 from dashboard import benchmark_quality_report |
| 16 from dashboard import bisect_stats | 17 from dashboard import bisect_stats |
| 17 from dashboard import bisect_fyi | 18 from dashboard import bisect_fyi |
| 18 from dashboard import buildbucket_job_status | 19 from dashboard import buildbucket_job_status |
| 19 from dashboard import change_internal_only | 20 from dashboard import change_internal_only |
| 20 from dashboard import create_health_report | 21 from dashboard import create_health_report |
| 21 from dashboard import debug_alert | 22 from dashboard import debug_alert |
| 22 from dashboard import delete_test_data | 23 from dashboard import delete_test_data |
| 23 from dashboard import dump_graph_json | 24 from dashboard import dump_graph_json |
| 24 from dashboard import edit_anomalies | 25 from dashboard import edit_anomalies |
| 25 from dashboard import edit_anomaly_configs | 26 from dashboard import edit_anomaly_configs |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 60 |
| 60 | 61 |
| 61 _URL_MAPPING = [ | 62 _URL_MAPPING = [ |
| 62 ('/add_point', add_point.AddPointHandler), | 63 ('/add_point', add_point.AddPointHandler), |
| 63 ('/add_point_queue', add_point_queue.AddPointQueueHandler), | 64 ('/add_point_queue', add_point_queue.AddPointQueueHandler), |
| 64 ('/alerts', alerts.AlertsHandler), | 65 ('/alerts', alerts.AlertsHandler), |
| 65 ('/associate_alerts', associate_alerts.AssociateAlertsHandler), | 66 ('/associate_alerts', associate_alerts.AssociateAlertsHandler), |
| 66 ('/auto_bisect', auto_bisect.AutoBisectHandler), | 67 ('/auto_bisect', auto_bisect.AutoBisectHandler), |
| 67 ('/auto_triage', auto_triage.AutoTriageHandler), | 68 ('/auto_triage', auto_triage.AutoTriageHandler), |
| 68 ('/bad_bisect', bad_bisect.BadBisectHandler), | 69 ('/bad_bisect', bad_bisect.BadBisectHandler), |
| 70 ('/benchmark_quality_report', |
| 71 benchmark_quality_report.BenchmarkQualityReportHandler), |
| 69 ('/bisect_fyi', bisect_fyi.BisectFYIHandler), | 72 ('/bisect_fyi', bisect_fyi.BisectFYIHandler), |
| 70 ('/bisect_stats', bisect_stats.BisectStatsHandler), | 73 ('/bisect_stats', bisect_stats.BisectStatsHandler), |
| 71 (r'/buildbucket_job_status/(\d+)', | 74 (r'/buildbucket_job_status/(\d+)', |
| 72 buildbucket_job_status.BuildbucketJobStatusHandler), | 75 buildbucket_job_status.BuildbucketJobStatusHandler), |
| 73 ('/change_internal_only', change_internal_only.ChangeInternalOnlyHandler), | 76 ('/change_internal_only', change_internal_only.ChangeInternalOnlyHandler), |
| 74 ('/create_health_report', create_health_report.CreateHealthReportHandler), | 77 ('/create_health_report', create_health_report.CreateHealthReportHandler), |
| 75 ('/debug_alert', debug_alert.DebugAlertHandler), | 78 ('/debug_alert', debug_alert.DebugAlertHandler), |
| 76 ('/delete_expired_entities', layered_cache.DeleteExpiredEntitiesHandler), | 79 ('/delete_expired_entities', layered_cache.DeleteExpiredEntitiesHandler), |
| 77 ('/delete_test_data', delete_test_data.DeleteTestDataHandler), | 80 ('/delete_test_data', delete_test_data.DeleteTestDataHandler), |
| 78 ('/dump_graph_json', dump_graph_json.DumpGraphJsonHandler), | 81 ('/dump_graph_json', dump_graph_json.DumpGraphJsonHandler), |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 stoppage_alert_debugging_info.StoppageAlertDebuggingInfoHandler), | 115 stoppage_alert_debugging_info.StoppageAlertDebuggingInfoHandler), |
| 113 ('/test_buildbucket', test_buildbucket.TestBuildbucketHandler), | 116 ('/test_buildbucket', test_buildbucket.TestBuildbucketHandler), |
| 114 ('/update_bug_with_results', | 117 ('/update_bug_with_results', |
| 115 update_bug_with_results.UpdateBugWithResultsHandler), | 118 update_bug_with_results.UpdateBugWithResultsHandler), |
| 116 ('/update_test_suites', update_test_suites.UpdateTestSuitesHandler), | 119 ('/update_test_suites', update_test_suites.UpdateTestSuitesHandler), |
| 117 (oauth2_decorator.DECORATOR.callback_path, | 120 (oauth2_decorator.DECORATOR.callback_path, |
| 118 oauth2_decorator.DECORATOR.callback_handler()) | 121 oauth2_decorator.DECORATOR.callback_handler()) |
| 119 ] | 122 ] |
| 120 | 123 |
| 121 APP = webapp2.WSGIApplication(_URL_MAPPING, debug=False) | 124 APP = webapp2.WSGIApplication(_URL_MAPPING, debug=False) |
| OLD | NEW |