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 | """Some constants used in Monorail hotlist pages.""" |
| 7 | from __future__ import print_function |
| 8 | from __future__ import division |
| 9 | from __future__ import absolute_import |
| 10 | |
| 11 | from tracker import tracker_constants |
| 12 | from project import project_constants |
| 13 | |
| 14 | DEFAULT_COL_SPEC = 'Rank Project Status Type ID Stars Owner Summary Modified' |
| 15 | DEFAULT_RESULTS_PER_PAGE = 100 |
| 16 | OTHER_BUILT_IN_COLS = ( |
| 17 | tracker_constants.OTHER_BUILT_IN_COLS + ['Adder', 'Added', 'Note']) |
| 18 | # pylint: disable=line-too-long |
| 19 | ISSUE_INPUT_REGEX = '%s:\d+(([,]|\s)+%s:\d+)*' % ( |
| 20 | project_constants.PROJECT_NAME_PATTERN, |
| 21 | project_constants.PROJECT_NAME_PATTERN) |
| 22 | FIELD_DEF_NAME_PATTERN = '[a-zA-Z]([_-]?[a-zA-Z0-9])*' |
| 23 | |
| 24 | QUEUE_NOTIFICATIONS = 'notifications' |
| 25 | QUEUE_OUTBOUND_EMAIL = 'outboundemail' |
| 26 | QUEUE_PUBSUB = 'pubsub-issueupdates' |
| 27 | QUEUE_RECOMPUTE_DERIVED_FIELDS = 'recomputederivedfields' |
| 28 | |
| 29 | KNOWN_CUES = ( |
| 30 | 'privacy_click_through', |
| 31 | 'code_of_conduct', |
| 32 | 'how_to_join_project', |
| 33 | 'search_for_numbers', |
| 34 | 'dit_keystrokes', |
| 35 | 'italics_mean_derived', |
| 36 | 'availability_msgs', |
| 37 | 'stale_fulltext', |
| 38 | 'document_team_duties', |
| 39 | 'showing_ids_instead_of_tiles', |
| 40 | 'issue_timestamps', |
| 41 | 'you_are_on_vacation', |
| 42 | 'your_email_bounced', |
| 43 | 'explain_hotlist_starring', |
| 44 | ) |