OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is govered 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 |
| 8 # URLs of site-wide Monorail pages |
| 9 HOSTING_HOME = '/hosting/' # the big search box w/ popular labels |
| 10 PROJECT_CREATE = '/hosting/createProject' |
| 11 USER_SETTINGS = '/hosting/settings' |
| 12 PROJECT_MOVED = '/hosting/moved' |
| 13 CHECK_PROJECT_NAME_JSON = '/hosting/createProject/checkProjectName' |
| 14 GROUP_LIST = '/g/' |
| 15 GROUP_CREATE = '/hosting/createGroup' |
| 16 GROUP_DELETE = '/hosting/deleteGroup' |
| 17 |
| 18 # URLs of project pages |
| 19 SUMMARY = '/' # Now just a redirect to /issues/list |
| 20 UPDATES_LIST = '/updates/list' |
| 21 PEOPLE_LIST = '/people/list' |
| 22 PEOPLE_DETAIL = '/people/detail' |
| 23 PEOPLE_DETAIL_PREFS_JSON = '/people/detailPrefs' |
| 24 ADMIN_META = '/admin' |
| 25 ADMIN_ADVANCED = '/adminAdvanced' |
| 26 |
| 27 # URLs for stars |
| 28 STARS_JSON = '/hosting/stars' |
| 29 |
| 30 # URLs for cue cards (dismissible on-page help) |
| 31 CUES_JSON = '/hosting/cues' |
| 32 |
| 33 # URLs of user pages, relative to either /u/userid or /u/username |
| 34 # TODO(jrobbins): Add /u/userid as the canonical URL in metadata. |
| 35 USER_PROFILE = '/' |
| 36 |
| 37 # URLs for User Updates pages |
| 38 USER_UPDATES_PROJECTS = '/updates/projects' |
| 39 USER_UPDATES_DEVELOPERS = '/updates/developers' |
| 40 USER_UPDATES_MINE = '/updates' |
| 41 |
| 42 # URLs of user group pages, relative to /g/groupname. |
| 43 GROUP_DETAIL = '/' |
| 44 GROUP_ADMIN = '/groupadmin' |
| 45 |
| 46 # URL of JSON feed for the "My projects" menu |
| 47 USER_PROJECTS_JSON = '/hosting/projects' |
| 48 |
| 49 # URLs of issue tracker backend request handlers. Called from the frontends. |
| 50 BACKEND_SEARCH = '/_backend/search' |
| 51 BACKEND_NONVIEWABLE = '/_backend/nonviewable' |
| 52 |
| 53 # URLs of task queue request handlers. Called asynchronously from frontends. |
| 54 RECOMPUTE_DERIVED_FIELDS_TASK = '/_task/recomputeDerivedFields' |
| 55 NOTIFY_ISSUE_CHANGE_TASK = '/_task/notifyIssueChange' |
| 56 NOTIFY_BLOCKING_CHANGE_TASK = '/_task/notifyBlockingChange' |
| 57 NOTIFY_BULK_CHANGE_TASK = '/_task/notifyBulkEdit' |
| 58 OUTBOUND_EMAIL_TASK = '/_task/outboundEmail' |
| 59 SPAM_DATA_EXPORT_TASK = '/_task/spamDataExport' |
| 60 |
| 61 # URLs of cron job request handlers. Called from GAE via cron.yaml. |
| 62 REINDEX_QUEUE_CRON = '/_cron/reindexQueue' |
| 63 RAMCACHE_CONSOLIDATE_CRON = '/_cron/ramCacheConsolidate' |
| 64 REAP_CRON = '/_cron/reap' |
| 65 SPAM_DATA_EXPORT_CRON = '/_cron/spamDataExport' |
| 66 |
| 67 # URLs of User pages |
| 68 SAVED_QUERIES = '/queries' |
| 69 DASHBOARD = '/dashboard' |
| 70 |
| 71 # URLs of issue tracker project pages |
| 72 ISSUE_LIST = '/issues/list' |
| 73 ISSUE_DETAIL = '/issues/detail' |
| 74 ISSUE_PEEK = '/issues/peek' # not served, only used in issuepeek.py |
| 75 ISSUE_COMMENT_DELETION_JSON = '/issues/delComment' |
| 76 ISSUE_ATTACHMENT_DELETION_JSON = '/issues/delAttachment' |
| 77 ISSUE_FLAGSPAM_JSON = '/issues/flagspam' |
| 78 ISSUE_SETSTAR_JSON = '/issues/setstar' |
| 79 ISSUE_DELETE_JSON = '/issues/delete' |
| 80 ISSUE_ENTRY = '/issues/entry' |
| 81 ISSUE_OPTIONS_JSON = '/feeds/issueOptions' |
| 82 ISSUE_BULK_EDIT = '/issues/bulkedit' |
| 83 ISSUE_ADVSEARCH = '/issues/advsearch' |
| 84 ISSUE_TIPS = '/issues/searchtips' |
| 85 ISSUE_ATTACHMENT = '/issues/attachment' |
| 86 ISSUE_ATTACHMENT_TEXT = '/issues/attachmentText' |
| 87 ISSUE_LIST_CSV = '/issues/csv' |
| 88 COMPONENT_CHECKNAME_JSON = '/components/checkName' |
| 89 COMPONENT_CREATE = '/components/create' |
| 90 COMPONENT_DETAIL = '/components/detail' |
| 91 FIELD_CHECKNAME_JSON = '/fields/checkName' |
| 92 FIELD_CREATE = '/fields/create' |
| 93 FIELD_DETAIL = '/fields/detail' |
| 94 WIKI_LIST = '/w/list' # Wiki urls are just redirects to project.docs_url |
| 95 WIKI_PAGE = '/wiki/<wiki_page:.*>' |
| 96 ADMIN_INTRO = '/adminIntro' |
| 97 # TODO(jrbbins): move some editing from /admin to /adminIntro. |
| 98 ADMIN_COMPONENTS = '/adminComponents' |
| 99 ADMIN_LABELS = '/adminLabels' |
| 100 ADMIN_RULES = '/adminRules' |
| 101 ADMIN_TEMPLATES = '/adminTemplates' |
| 102 ADMIN_STATUSES = '/adminStatuses' |
| 103 ADMIN_VIEWS = '/adminViews' |
| 104 ADMIN_EXPORT = '/projectExport' |
| 105 ADMIN_EXPORT_JSON = '/projectExport/json' |
| 106 ISSUE_ORIGINAL = '/issues/original' |
| 107 ISSUE_REINDEX = '/issues/reindex' |
| 108 ISSUE_EXPORT = '/issues/export' |
| 109 ISSUE_EXPORT_JSON = '/issues/export/json' |
| 110 ISSUE_IMPORT = '/issues/import' |
| 111 |
| 112 # URLs of site-wide pages referenced from the framework directory. |
| 113 CAPTCHA_QUESTION = '/hosting/captcha' |
| 114 EXCESSIVE_ACTIVITY = '/hosting/excessiveActivity' |
| 115 BANNED = '/hosting/noAccess' |
| 116 NONPROJECT_COLLISION = '/hosting/collision' |
| 117 # This is for collisions that happen within a project, based at /p/projectname |
| 118 ARTIFACT_COLLISION = '/collision' |
| 119 |
| 120 CSP_REPORT = '/csp' |
| 121 TOKEN_REFRESH = '/hosting/tokenRefresh' |
| 122 |
| 123 SPAM_MODERATION_QUEUE = '/spamqueue' |
OLD | NEW |