Skip to content

Investigate code_owner global mapping #539

Description

@ormsbee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions