Commit d88aa4fc authored by Stan Hu's avatar Stan Hu

Merge branch 'rf-fix-sast-mutation' into 'master'

Fix SAST Config GraphQL mutation

See merge request gitlab-org/gitlab!42003
parents 433a839a 2949fb32
......@@ -49,9 +49,9 @@ module Mutations
# Will be removed during the implementation of
# https://gitlab.com/gitlab-org/gitlab/-/issues/246737
def format_for_service(configuration)
global_defaults = configuration["global"]&.collect {|k| [k["field"], k["defaultValue"]]}.to_h
pipeline_defaults = configuration["pipeline"]&.collect {|k| [k["field"], k["defaultValue"]]}.to_h
global_defaults.merge!(pipeline_defaults)
global_values = configuration["global"]&.collect {|k| [k["field"], k["value"]]}.to_h
pipeline_values = configuration["pipeline"]&.collect {|k| [k["field"], k["value"]]}.to_h
global_values.merge!(pipeline_values)
end
def prepare_response(result)
......
---
title: Fix SAST Config GraphQL mutation
merge_request: 42003
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment