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