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