Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
IntegrityError
when giving overlapping team permissions (#401)
We hit another version of #281 from out in the wild. The report of this is ansible/awx#15185, and although it is short on specific of what went on, with some speculation I was able to mostly logically brute-force out the probable cause. The imagined reproducer: - In the "old" AWX UI, go to give a team permission to 2 different roles to the same thing, like inventory update and adhoc roles. - It is assumed that this team has members already. - Submit the requests to assign those permissions concurrently. This fixes that issue by ignoring conflicts on bulk creation of role evaluations.
- Loading branch information