blob: f8a4a4de0f1b60951f9348f7461bbb2527f84c97 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style
3# license that can be found in the LICENSE file or at
4# https://developers.google.com/open-source/licenses/bsd
5
6"""Constants that define the Monorail URL space."""
7from __future__ import print_function
8from __future__ import division
9from __future__ import absolute_import
10
11# URLs of site-wide Monorail pages
12HOSTING_HOME = '/hosting_old/'
13PROJECT_CREATE = '/hosting/createProject'
14USER_SETTINGS = '/hosting/settings'
15PROJECT_MOVED = '/hosting/moved'
16GROUP_LIST = '/g/'
17GROUP_CREATE = '/hosting/createGroup'
18GROUP_DELETE = '/hosting/deleteGroup'
19
20# URLs of project pages
21SUMMARY = '/' # Now just a redirect to /issues/list
22UPDATES_LIST = '/updates/list'
23PEOPLE_LIST = '/people/list'
24PEOPLE_DETAIL = '/people/detail'
25ADMIN_META = '/admin'
26ADMIN_ADVANCED = '/adminAdvanced'
27
28# URLs of user pages, relative to either /u/userid or /u/username
29# TODO(jrobbins): Add /u/userid as the canonical URL in metadata.
30USER_PROFILE = '/'
31USER_PROFILE_POLYMER = '/polymer'
32USER_CLEAR_BOUNCING = '/clearBouncing'
33BAN_USER = '/ban'
34BAN_SPAMMER = '/banSpammer'
35
36# URLs for User Updates pages
37USER_UPDATES_PROJECTS = '/updates/projects'
38USER_UPDATES_DEVELOPERS = '/updates/developers'
39USER_UPDATES_MINE = '/updates'
40
41# URLs of user group pages, relative to /g/groupname.
42GROUP_DETAIL = '/'
43GROUP_ADMIN = '/groupadmin'
44
45# URLs of issue tracker backend request handlers. Called from the frontends.
46BACKEND_SEARCH = '/_backend/search'
47BACKEND_NONVIEWABLE = '/_backend/nonviewable'
48
49# URLs of task queue request handlers. Called asynchronously from frontends.
50RECOMPUTE_DERIVED_FIELDS_TASK = '/_task/recomputeDerivedFields'
51NOTIFY_ISSUE_CHANGE_TASK = '/_task/notifyIssueChange'
52NOTIFY_BLOCKING_CHANGE_TASK = '/_task/notifyBlockingChange'
53NOTIFY_BULK_CHANGE_TASK = '/_task/notifyBulkEdit'
54NOTIFY_APPROVAL_CHANGE_TASK = '/_task/notifyApprovalChange'
55NOTIFY_RULES_DELETED_TASK = '/_task/notifyRulesDeleted'
56OUTBOUND_EMAIL_TASK = '/_task/outboundEmail'
Copybara854996b2021-09-07 19:36:02 +000057BAN_SPAMMER_TASK = '/_task/banSpammer'
58ISSUE_DATE_ACTION_TASK = '/_task/issueDateAction'
Copybara854996b2021-09-07 19:36:02 +000059SEND_WIPEOUT_USER_LISTS_TASK = '/_task/sendWipeoutUserListsTask'
60DELETE_WIPEOUT_USERS_TASK = '/_task/deleteWipeoutUsersTask'
61DELETE_USERS_TASK = '/_task/deleteUsersTask'
62
63# URL for publishing issue changes to a pubsub topic.
64PUBLISH_PUBSUB_ISSUE_CHANGE_TASK = '/_task/publishPubsubIssueChange'
65
66# URL for manually triggered FLT launch issue conversion job.
67FLT_ISSUE_CONVERSION_TASK = '/_task/fltConversionTask'
68
69# URLs of cron job request handlers. Called from GAE via cron.yaml.
70REINDEX_QUEUE_CRON = '/_cron/reindexQueue'
71RAMCACHE_CONSOLIDATE_CRON = '/_cron/ramCacheConsolidate'
72REAP_CRON = '/_cron/reap'
Copybara854996b2021-09-07 19:36:02 +000073LOAD_API_CLIENT_CONFIGS_CRON = '/_cron/loadApiClientConfigs'
74TRIM_VISITED_PAGES_CRON = '/_cron/trimVisitedPages'
75DATE_ACTION_CRON = '/_cron/dateAction'
Copybara854996b2021-09-07 19:36:02 +000076WIPEOUT_SYNC_CRON = '/_cron/wipeoutSync'
77
78# URLs of handlers needed for GAE instance management.
79WARMUP = '/_ah/warmup'
80START = '/_ah/start'
81STOP = '/_ah/stop'
82
83# URLs of User pages
84SAVED_QUERIES = '/queries'
85DASHBOARD = '/dashboard'
86HOTLISTS = '/hotlists'
87
88# URLS of User hotlist pages
89HOTLIST_ISSUES = ''
90HOTLIST_ISSUES_CSV = '/csv'
91HOTLIST_PEOPLE = '/people'
92HOTLIST_DETAIL = '/details'
93HOTLIST_RERANK_JSON = '/rerank'
94
95# URLs of issue tracker project pages
96ISSUE_APPROVAL = '/issues/approval'
97ISSUE_LIST = '/issues/list'
98ISSUE_LIST_NEW_TEMP = '/issues/list_new'
99ISSUE_DETAIL = '/issues/detail'
100ISSUE_DETAIL_LEGACY = '/issues/detail_ezt'
101ISSUE_DETAIL_FLIPPER_NEXT = '/issues/detail/next'
102ISSUE_DETAIL_FLIPPER_PREV = '/issues/detail/previous'
103ISSUE_DETAIL_FLIPPER_LIST = '/issues/detail/list'
104ISSUE_DETAIL_FLIPPER_INDEX = '/issues/detail/flipper'
105ISSUE_WIZARD = '/issues/wizard'
106ISSUE_ENTRY = '/issues/entry'
107ISSUE_ENTRY_NEW = '/issues/entry_new'
108ISSUE_ENTRY_AFTER_LOGIN = '/issues/entryafterlogin'
109ISSUE_BULK_EDIT = '/issues/bulkedit'
110ISSUE_ADVSEARCH = '/issues/advsearch'
111ISSUE_TIPS = '/issues/searchtips'
112ISSUE_ATTACHMENT = '/issues/attachment'
113ISSUE_ATTACHMENT_TEXT = '/issues/attachmentText'
114ISSUE_LIST_CSV = '/issues/csv'
115COMPONENT_CREATE = '/components/create'
116COMPONENT_DETAIL = '/components/detail'
117FIELD_CREATE = '/fields/create'
118FIELD_DETAIL = '/fields/detail'
119TEMPLATE_CREATE ='/templates/create'
120TEMPLATE_DETAIL = '/templates/detail'
121WIKI_LIST = '/w/list' # Wiki urls are just redirects to project.docs_url
122WIKI_PAGE = '/wiki/<wiki_page:.*>'
123SOURCE_PAGE = '/source/<source_page:.*>'
124ADMIN_INTRO = '/adminIntro'
125# TODO(jrobbins): move some editing from /admin to /adminIntro.
126ADMIN_COMPONENTS = '/adminComponents'
127ADMIN_LABELS = '/adminLabels'
128ADMIN_RULES = '/adminRules'
129ADMIN_TEMPLATES = '/adminTemplates'
130ADMIN_STATUSES = '/adminStatuses'
131ADMIN_VIEWS = '/adminViews'
132ADMIN_EXPORT = '/projectExport'
133ADMIN_EXPORT_JSON = '/projectExport/json'
134ISSUE_ORIGINAL = '/issues/original'
135ISSUE_REINDEX = '/issues/reindex'
136ISSUE_EXPORT = '/issues/export'
137ISSUE_EXPORT_JSON = '/issues/export/json'
138ISSUE_IMPORT = '/issues/import'
139
140# URLs for hotlist features
141HOTLIST_CREATE = '/hosting/createHotlist'
142
143# URLs of site-wide pages referenced from the framework directory.
144CAPTCHA_QUESTION = '/hosting/captcha'
145EXCESSIVE_ACTIVITY = '/hosting/excessiveActivity'
146BANNED = '/hosting/noAccess'
147CLIENT_MON = '/_/clientmon'
148TS_MON_JS = '/_/jstsmon'
149
150CSP_REPORT = '/csp'