Protected packages: Provide CRUD operations PackageProtectionRules in GraphQL API
Context
- As part of the epic &5574 , project maintainer or owner need to have a way to define the
PackageProtectionRules
of the project - There are different ways to realize this => however, we decided to start by offering a GraphQL interface
- This GraphQL interface is minimal should allow basic manipulation of the defined package protection rules
Proposal
- Authorization:
PackageProtectionRules
can only changed by project maintainer or higher => consider implementation with declarative framework
GraphQL Operations | MR |
---|---|
Mutation: Create new package protection rule | Protected packages: GraphQL api for creating pa... (!125915 - merged) |
Mutation: Update existing package protection rule | Protected packages: GraphQL api for updating pa... (!127096 - merged) |
Query: All package protection rules | Protected packages: GraphQL api for querying pa... (!127022 - merged) |
Mutation: Delete existing package protection rule | Protected packages: GraphQL api for deleting pa... (!127659 - merged) |
Checklist
-
Work through the proposal
Edited by Gerardo Navarro