-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconstants.py
30 lines (25 loc) · 1.15 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""
BBSync constants
"""
from osidb.helpers import get_env
DATE_FMT = "%Y-%m-%d"
DATETIME_FMT = "%Y-%m-%dT%H:%M:%SZ"
# Bugzilla summary constants
MAX_SUMMARY_LENGTH = 255
MULTIPLE_DESCRIPTIONS_SUBSTITUTION = "various flaws"
# RHSCL Bugzilla project key
RHSCL_BTS_KEY = "Red Hat Software Collections"
# switches to enable or disable BBSync
SYNC_TO_BZ = get_env("BBSYNC_SYNC_TO_BZ", default="False", is_bool=True)
SYNC_FLAWS_TO_BZ = get_env("BBSYNC_SYNC_FLAWS_TO_BZ", default="False", is_bool=True)
SYNC_FLAWS_TO_BZ_ASYNCHRONOUSLY = get_env(
"BBSYNC_SYNC_FLAWS_TO_BZ_ASYNCHRONOUSLY", default="False", is_bool=True
)
SYNC_TRACKERS_TO_BZ = get_env(
"BBSYNC_SYNC_TRACKERS_TO_BZ", default="False", is_bool=True
)
# in SFM2 there are Bugzilla bot accounts and invalid users being filtered out from the CC lists
# however the list of the corresponding emails is being pulled from VDB by the old vdbqb library
# and we definitelly do not want such a dependence in OSIDB so I am adding the list statically
# here as the best we can do now and a motivation to leave Bugzilla as soon as possible
USER_BLACKLIST: list = get_env("BZ_USER_BLACKLIST", default="[]", is_json=True)