Backend: Add GraphQL mutations CI variables (create/update/delete) at instance level
Summary
The frontend for grouppipeline security is migrating to use the GraphQL API for all requests. A large part of the remaining work includes migrating the CI variables pages for projects, groups, and GitLab instances. CI variables
can already be fetched through the GraphQL API
, so we now need to make it possible to create, update, and delete them.
Proposal
-
Create GraphQL mutations for instance-level CI variables similar to existing mutations
The creation and update actions need to accept the following arguments:
key
value
variable_type
environment_scope
protected
masked
raw
Additional details
Some relevant technical details, if applicable, such as:
- Does this need a feature flag? No
- Does there need to be an associated instrumentation issue created related to this work? No
- Is there an example response showing the data structure that should be returned (new endpoints only)?
- What permissions should be used?
- Is this EE or CE?
-
EE -
CE
-
- Additional comments:
Implementation Table
Group | Issue Link |
---|---|
backend |
|
frontend | #381361 |
Edited by Max Orefice