blob: b21a7f597efc49500b992fe8515bc03288c5af94 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# 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."""
7from __future__ import print_function
8from __future__ import division
9from __future__ import absolute_import
10
11from tracker import tracker_constants
12from project import project_constants
13
14DEFAULT_COL_SPEC = 'Rank Project Status Type ID Stars Owner Summary Modified'
15DEFAULT_RESULTS_PER_PAGE = 100
16OTHER_BUILT_IN_COLS = (
17 tracker_constants.OTHER_BUILT_IN_COLS + ['Adder', 'Added', 'Note'])
18# pylint: disable=line-too-long
19ISSUE_INPUT_REGEX = '%s:\d+(([,]|\s)+%s:\d+)*' % (
20 project_constants.PROJECT_NAME_PATTERN,
21 project_constants.PROJECT_NAME_PATTERN)
22FIELD_DEF_NAME_PATTERN = '[a-zA-Z]([_-]?[a-zA-Z0-9])*'
23
24QUEUE_NOTIFICATIONS = 'notifications'
25QUEUE_OUTBOUND_EMAIL = 'outboundemail'
26QUEUE_PUBSUB = 'pubsub-issueupdates'
27QUEUE_RECOMPUTE_DERIVED_FIELDS = 'recomputederivedfields'
28
29KNOWN_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)