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

Unified Diff: dashboard/dashboard/dispatcher.py

Issue 1462423002: In dashboard/dispatcher.py, create the WSGIApplication with debug=False. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/dispatcher.py
diff --git a/dashboard/dashboard/dispatcher.py b/dashboard/dashboard/dispatcher.py
index 2376cc33c631233f0cedc7c5977d817db12feb0a..f38d3623b6b28be68851b65a1b090c35c16a8f43 100644
--- a/dashboard/dashboard/dispatcher.py
+++ b/dashboard/dashboard/dispatcher.py
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-"""Dispatches requests to the correct python class."""
+"""Dispatches requests to request handler classes."""
import webapp2
@@ -55,59 +55,61 @@ from dashboard import update_bug_with_results
from dashboard import update_test_suites
-app = webapp2.WSGIApplication(
- [('/add_point', add_point.AddPointHandler),
- ('/add_point_queue', add_point_queue.AddPointQueueHandler),
- ('/alerts', alerts.AlertsHandler),
- ('/associate_alerts', associate_alerts.AssociateAlertsHandler),
- ('/auto_bisect', auto_bisect.AutoBisectHandler),
- ('/auto_triage', auto_triage.AutoTriageHandler),
- ('/bisect_stats', bisect_stats.BisectStatsHandler),
- ('/bisect_fyi', bisect_fyi.BisectFYIHandler),
- ('/bot_whitelist', bot_whitelist.BotWhitelistHandler),
- (r'/buildbucket_job_status/(\d+)',
- buildbucket_job_status.BuildbucketJobStatusHandler),
- ('/change_internal_only', change_internal_only.ChangeInternalOnlyHandler),
- ('/debug_alert', debug_alert.DebugAlertHandler),
- ('/delete_expired_entities', layered_cache.DeleteExpiredEntitiesHandler),
- ('/dump_graph_json', dump_graph_json.DumpGraphJsonHandler),
- ('/edit_anomalies', edit_anomalies.EditAnomaliesHandler),
- ('/edit_anomaly_configs', edit_anomaly_configs.EditAnomalyConfigsHandler),
- ('/edit_bug_labels', edit_bug_labels.EditBugLabelsHandler),
- ('/edit_sheriffs', edit_sheriffs.EditSheriffsHandler),
- ('/edit_site_config', edit_site_config.EditSiteConfigHandler),
- ('/edit_test_owners', edit_test_owners.EditTestOwnersHandler),
- ('/email_summary', email_summary.EmailSummaryHandler),
- ('/embed', embed.EmbedHandler),
- ('/file_bug', file_bug.FileBugHandler),
- ('/get_logs', get_logs.GetLogsHandler),
- ('/graph_csv', graph_csv.GraphCsvHandler),
- ('/graph_json', graph_json.GraphJsonHandler),
- ('/graph_revisions', graph_revisions.GraphRevisionsHandler),
- ('/group_report', group_report.GroupReportHandler),
- ('/list_monitored_tests', list_monitored_tests.ListMonitoredTestsHandler),
- ('/list_tests', list_tests.ListTestsHandler),
- ('/load_from_prod', load_from_prod.LoadFromProdHandler),
- ('/', main.MainHandler),
- ('/migrate_test_names', migrate_test_names.MigrateTestNamesHandler),
- ('/mr_deprecate_tests', mr.MRDeprecateTestsHandler),
- ('/new_points', new_points.NewPointsHandler),
- ('/put_entities_task', put_entities_task.PutEntitiesTaskHandler),
- ('/report', report.ReportHandler),
- ('/set_warning_message', set_warning_message.SetWarningMessageHandler),
- ('/short_uri', short_uri.ShortUriHandler),
- ('/send_stoppage_alert_emails',
- send_stoppage_alert_emails.SendStoppageAlertEmailsHandler),
- ('/shrink_timestamp_revisions',
- shrink_timestamp_revisions.ShrinkTimestampRevisionsHandler),
- ('/start_try_job', start_try_job.StartBisectHandler),
- ('/stats_around_revision', stats.StatsAroundRevisionHandler),
- ('/stats_for_alerts', stats.StatsForAlertsHandler),
- ('/stats', stats.StatsHandler),
- ('/test_buildbucket', test_buildbucket.TestBuildbucketHandler),
- ('/update_bug_with_results',
- update_bug_with_results.UpdateBugWithResultsHandler),
- ('/update_test_suites', update_test_suites.UpdateTestSuitesHandler),
- (oauth2_decorator.decorator.callback_path,
- oauth2_decorator.decorator.callback_handler())], debug=True)
+_URL_MAPPING = [
+ ('/add_point', add_point.AddPointHandler),
+ ('/add_point_queue', add_point_queue.AddPointQueueHandler),
+ ('/alerts', alerts.AlertsHandler),
+ ('/associate_alerts', associate_alerts.AssociateAlertsHandler),
+ ('/auto_bisect', auto_bisect.AutoBisectHandler),
+ ('/auto_triage', auto_triage.AutoTriageHandler),
+ ('/bisect_fyi', bisect_fyi.BisectFYIHandler),
+ ('/bisect_stats', bisect_stats.BisectStatsHandler),
+ ('/bot_whitelist', bot_whitelist.BotWhitelistHandler),
+ (r'/buildbucket_job_status/(\d+)',
+ buildbucket_job_status.BuildbucketJobStatusHandler),
+ ('/change_internal_only', change_internal_only.ChangeInternalOnlyHandler),
+ ('/debug_alert', debug_alert.DebugAlertHandler),
+ ('/delete_expired_entities', layered_cache.DeleteExpiredEntitiesHandler),
+ ('/dump_graph_json', dump_graph_json.DumpGraphJsonHandler),
+ ('/edit_anomalies', edit_anomalies.EditAnomaliesHandler),
+ ('/edit_anomaly_configs', edit_anomaly_configs.EditAnomalyConfigsHandler),
+ ('/edit_bug_labels', edit_bug_labels.EditBugLabelsHandler),
+ ('/edit_sheriffs', edit_sheriffs.EditSheriffsHandler),
+ ('/edit_site_config', edit_site_config.EditSiteConfigHandler),
+ ('/edit_test_owners', edit_test_owners.EditTestOwnersHandler),
+ ('/email_summary', email_summary.EmailSummaryHandler),
+ ('/embed', embed.EmbedHandler),
+ ('/file_bug', file_bug.FileBugHandler),
+ ('/get_logs', get_logs.GetLogsHandler),
+ ('/graph_csv', graph_csv.GraphCsvHandler),
+ ('/graph_json', graph_json.GraphJsonHandler),
+ ('/graph_revisions', graph_revisions.GraphRevisionsHandler),
+ ('/group_report', group_report.GroupReportHandler),
+ ('/list_monitored_tests', list_monitored_tests.ListMonitoredTestsHandler),
+ ('/list_tests', list_tests.ListTestsHandler),
+ ('/load_from_prod', load_from_prod.LoadFromProdHandler),
+ ('/', main.MainHandler),
+ ('/migrate_test_names', migrate_test_names.MigrateTestNamesHandler),
+ ('/mr_deprecate_tests', mr.MRDeprecateTestsHandler),
+ ('/new_points', new_points.NewPointsHandler),
+ ('/put_entities_task', put_entities_task.PutEntitiesTaskHandler),
+ ('/report', report.ReportHandler),
+ ('/send_stoppage_alert_emails',
+ send_stoppage_alert_emails.SendStoppageAlertEmailsHandler),
+ ('/set_warning_message', set_warning_message.SetWarningMessageHandler),
+ ('/short_uri', short_uri.ShortUriHandler),
+ ('/shrink_timestamp_revisions',
+ shrink_timestamp_revisions.ShrinkTimestampRevisionsHandler),
+ ('/start_try_job', start_try_job.StartBisectHandler),
+ ('/stats_around_revision', stats.StatsAroundRevisionHandler),
+ ('/stats_for_alerts', stats.StatsForAlertsHandler),
+ ('/stats', stats.StatsHandler),
+ ('/test_buildbucket', test_buildbucket.TestBuildbucketHandler),
+ ('/update_bug_with_results',
+ update_bug_with_results.UpdateBugWithResultsHandler),
+ ('/update_test_suites', update_test_suites.UpdateTestSuitesHandler),
+ (oauth2_decorator.decorator.callback_path,
+ oauth2_decorator.decorator.callback_handler())
+]
+app = webapp2.WSGIApplication(_URL_MAPPING, debug=False)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698