graphqlbackend: add mutation for repository permissions
Created by: unknwon
Part of #7298, added GQL mutation setRepositoryPermissionsForUsers
, which sets repository permissions in our PostgreSQL database.
Manually tested with some unit tests, regression tests will be added as the last PR of #7298.
It's safe to merge this PR (after review) alone because the site configuration option is not documented anywhere outside the source code.
Side notes: according to RFC 40, we should also have add*
and remove*
mutations, I tried but found it not worth the time effort implementing at this point (we also only have "set" semantic in the "authz/store" layer). Will implement in followup PRs if prospective customer explicitly asks for them.