#4966 Introduce the collaborator_project_groups mapping
Merged by pingou. Opened by pingou.
fix_collaborator_groups  into  master

Download 4966.patch

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

rebased onto b126ebb1cdbc6b26f72a7391e8b43322d0e73e35

rebased onto f48c7d65079531cc88c48b4ee33ba4d1f9ec063f

:thumbsup:

Pull-Request has been merged by pingou

Metadata