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