Ensure this is async-safe:
|
_PATH_TO_CODE_OWNER_MAPPINGS = None |
|
|
|
|
|
def get_code_owner_mappings(): |
|
""" |
|
Returns the contents of the CODE_OWNER_MAPPINGS Django Setting, processed |
|
for efficient lookup by path. |
|
|
|
Returns: |
|
(dict): dict mapping modules to code owners, or None if there are no |
|
configured mappings, or an empty dict if there is an error processing |
|
the setting. |
|
|
|
Example return value:: |
|
|
|
{ |
|
'xblock_django': 'team-red', |
|
'openedx.core.djangoapps.xblock': 'team-red', |
|
'badges': 'team-blue', |
|
} |
|
|
|
""" |
|
global _PATH_TO_CODE_OWNER_MAPPINGS |
|
|
Alternatively, push forward the DEPR that gets rid of it entirely: #469
Ensure this is async-safe:
edx-django-utils/edx_django_utils/monitoring/internal/code_owner/utils.py
Lines 54 to 77 in fe75e97
Alternatively, push forward the DEPR that gets rid of it entirely: #469