blob: d7e5e3a8c3bac02c2fce9fd59f8868d6d6d62819 [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'
57SPAM_DATA_EXPORT_TASK = '/_task/spamDataExport'
58BAN_SPAMMER_TASK = '/_task/banSpammer'
59ISSUE_DATE_ACTION_TASK = '/_task/issueDateAction'
60COMPONENT_DATA_EXPORT_TASK = '/_task/componentDataExportTask'
61SEND_WIPEOUT_USER_LISTS_TASK = '/_task/sendWipeoutUserListsTask'
62DELETE_WIPEOUT_USERS_TASK = '/_task/deleteWipeoutUsersTask'
63DELETE_USERS_TASK = '/_task/deleteUsersTask'
64
65# URL for publishing issue changes to a pubsub topic.
66PUBLISH_PUBSUB_ISSUE_CHANGE_TASK = '/_task/publishPubsubIssueChange'
67
68# URL for manually triggered FLT launch issue conversion job.
69FLT_ISSUE_CONVERSION_TASK = '/_task/fltConversionTask'
70
71# URLs of cron job request handlers. Called from GAE via cron.yaml.
72REINDEX_QUEUE_CRON = '/_cron/reindexQueue'
73RAMCACHE_CONSOLIDATE_CRON = '/_cron/ramCacheConsolidate'
74REAP_CRON = '/_cron/reap'
75SPAM_DATA_EXPORT_CRON = '/_cron/spamDataExport'
76LOAD_API_CLIENT_CONFIGS_CRON = '/_cron/loadApiClientConfigs'
77TRIM_VISITED_PAGES_CRON = '/_cron/trimVisitedPages'
78DATE_ACTION_CRON = '/_cron/dateAction'
79SPAM_TRAINING_CRON = '/_cron/spamTraining'
80COMPONENT_DATA_EXPORT_CRON = '/_cron/componentDataExport'
81WIPEOUT_SYNC_CRON = '/_cron/wipeoutSync'
82
83# URLs of handlers needed for GAE instance management.
84WARMUP = '/_ah/warmup'
85START = '/_ah/start'
86STOP = '/_ah/stop'
87
88# URLs of User pages
89SAVED_QUERIES = '/queries'
90DASHBOARD = '/dashboard'
91HOTLISTS = '/hotlists'
92
93# URLS of User hotlist pages
94HOTLIST_ISSUES = ''
95HOTLIST_ISSUES_CSV = '/csv'
96HOTLIST_PEOPLE = '/people'
97HOTLIST_DETAIL = '/details'
98HOTLIST_RERANK_JSON = '/rerank'
99
100# URLs of issue tracker project pages
101ISSUE_APPROVAL = '/issues/approval'
102ISSUE_LIST = '/issues/list'
103ISSUE_LIST_NEW_TEMP = '/issues/list_new'
104ISSUE_DETAIL = '/issues/detail'
105ISSUE_DETAIL_LEGACY = '/issues/detail_ezt'
106ISSUE_DETAIL_FLIPPER_NEXT = '/issues/detail/next'
107ISSUE_DETAIL_FLIPPER_PREV = '/issues/detail/previous'
108ISSUE_DETAIL_FLIPPER_LIST = '/issues/detail/list'
109ISSUE_DETAIL_FLIPPER_INDEX = '/issues/detail/flipper'
110ISSUE_WIZARD = '/issues/wizard'
111ISSUE_ENTRY = '/issues/entry'
112ISSUE_ENTRY_NEW = '/issues/entry_new'
113ISSUE_ENTRY_AFTER_LOGIN = '/issues/entryafterlogin'
114ISSUE_BULK_EDIT = '/issues/bulkedit'
115ISSUE_ADVSEARCH = '/issues/advsearch'
116ISSUE_TIPS = '/issues/searchtips'
117ISSUE_ATTACHMENT = '/issues/attachment'
118ISSUE_ATTACHMENT_TEXT = '/issues/attachmentText'
119ISSUE_LIST_CSV = '/issues/csv'
120COMPONENT_CREATE = '/components/create'
121COMPONENT_DETAIL = '/components/detail'
122FIELD_CREATE = '/fields/create'
123FIELD_DETAIL = '/fields/detail'
124TEMPLATE_CREATE ='/templates/create'
125TEMPLATE_DETAIL = '/templates/detail'
126WIKI_LIST = '/w/list' # Wiki urls are just redirects to project.docs_url
127WIKI_PAGE = '/wiki/<wiki_page:.*>'
128SOURCE_PAGE = '/source/<source_page:.*>'
129ADMIN_INTRO = '/adminIntro'
130# TODO(jrobbins): move some editing from /admin to /adminIntro.
131ADMIN_COMPONENTS = '/adminComponents'
132ADMIN_LABELS = '/adminLabels'
133ADMIN_RULES = '/adminRules'
134ADMIN_TEMPLATES = '/adminTemplates'
135ADMIN_STATUSES = '/adminStatuses'
136ADMIN_VIEWS = '/adminViews'
137ADMIN_EXPORT = '/projectExport'
138ADMIN_EXPORT_JSON = '/projectExport/json'
139ISSUE_ORIGINAL = '/issues/original'
140ISSUE_REINDEX = '/issues/reindex'
141ISSUE_EXPORT = '/issues/export'
142ISSUE_EXPORT_JSON = '/issues/export/json'
143ISSUE_IMPORT = '/issues/import'
144
145# URLs for hotlist features
146HOTLIST_CREATE = '/hosting/createHotlist'
147
148# URLs of site-wide pages referenced from the framework directory.
149CAPTCHA_QUESTION = '/hosting/captcha'
150EXCESSIVE_ACTIVITY = '/hosting/excessiveActivity'
151BANNED = '/hosting/noAccess'
152CLIENT_MON = '/_/clientmon'
153TS_MON_JS = '/_/jstsmon'
154
155CSP_REPORT = '/csp'
156
157SPAM_MODERATION_QUEUE = '/spamqueue'