f48c7d6 Introduce the collaborator_project_groups mapping

Authored and Committed by pingou 3 years ago
    Introduce the collaborator_project_groups mapping
    
    We need two mappings on a regular basis. One linking a project to its
    group of collaborator and pointing to the PagureGroup objects directly.
    This is used for example to retrieve the list of collaborator groups.
    The one mapping is between a project and the corresponding ProjectGroup
    for collaborators which is where the "branches" that the group is
    restricted to is stored.
    
    So we now have both mappings available and we need to be careful to use
    the proper one, but pagure will quickly indicate (ie: crash) if one
    uses the wrong one and tries to access either the group name or the
    branches attribute.
    
    Fixes https://pagure.io/fedora-infrastructure/issue/9247
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
    
        
file modified
+10 -0
file modified
+1 -1