Skip to content

Add edit path to policies graphql API

Alexander Turinske requested to merge 421339-update-graphql-endpoint into master

What does this MR do and why?

Add edit path to policies graphql API

  • add edit path to policies graphql API
  • update tests

Changelog: added

EE: true

Screenshots

Request Screenshot
Project-level Scan Execution Policy project_sep
Project-level Scan Result Policy project_srp
Group-level Scan Execution Policy group_sep
Group-level Scan Result Policy group_srp

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Navigate to a project/group => Security => Policies => New policy
  2. Create a policy
  3. Navigate to the project/group => Security => Policies => Select the new policy => Edit policy
  4. Verify the user is navigated to the policy editor
  5. Verify this works for escaped policies
  6. Navigate to the project/group => settings => merge requests => select the new policy => View details => Edit policy
  7. Verify the user is navigated to the policy editor
  8. Verify this works for escaped policies

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #421339 (closed)

Edited by Alexander Turinske

Merge request reports