blob: 8427d26dc865cff6ed2a5447aab23e00d01dce2c [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001# 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.
Copybara854996b2021-09-07 19:36:02 +00004
5"""Some constants used in Monorail hotlist pages."""
6from __future__ import print_function
7from __future__ import division
8from __future__ import absolute_import
9
10from tracker import tracker_constants
11from project import project_constants
12
13DEFAULT_COL_SPEC = 'Rank Project Status Type ID Stars Owner Summary Modified'
14DEFAULT_RESULTS_PER_PAGE = 100
15OTHER_BUILT_IN_COLS = (
16 tracker_constants.OTHER_BUILT_IN_COLS + ['Adder', 'Added', 'Note'])
17# pylint: disable=line-too-long
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010018ISSUE_INPUT_REGEX = r'%s:\d+(([,]|\s)+%s:\d+)*' % (
Copybara854996b2021-09-07 19:36:02 +000019 project_constants.PROJECT_NAME_PATTERN,
20 project_constants.PROJECT_NAME_PATTERN)
21FIELD_DEF_NAME_PATTERN = '[a-zA-Z]([_-]?[a-zA-Z0-9])*'
22
23QUEUE_NOTIFICATIONS = 'notifications'
24QUEUE_OUTBOUND_EMAIL = 'outboundemail'
25QUEUE_PUBSUB = 'pubsub-issueupdates'
26QUEUE_RECOMPUTE_DERIVED_FIELDS = 'recomputederivedfields'
27
28KNOWN_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)