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