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