Commit f515c25f authored by Robert Speicher's avatar Robert Speicher

Merge branch 'reduce-service-params-diff-with-ce' into 'master'

Use the EE version of ServiceParams

See merge request gitlab-org/gitlab-ce!23881
parents eee92281 9a562d94
...@@ -70,7 +70,7 @@ module ServiceParams ...@@ -70,7 +70,7 @@ module ServiceParams
def service_params def service_params
dynamic_params = @service.event_channel_names + @service.event_names # rubocop:disable Gitlab/ModuleWithInstanceVariables dynamic_params = @service.event_channel_names + @service.event_names # rubocop:disable Gitlab/ModuleWithInstanceVariables
service_params = params.permit(:id, service: ALLOWED_PARAMS_CE + dynamic_params) service_params = params.permit(:id, service: allowed_service_params + dynamic_params)
if service_params[:service].is_a?(Hash) if service_params[:service].is_a?(Hash)
FILTER_BLANK_PARAMS.each do |param| FILTER_BLANK_PARAMS.each do |param|
...@@ -80,4 +80,8 @@ module ServiceParams ...@@ -80,4 +80,8 @@ module ServiceParams
service_params service_params
end end
def allowed_service_params
ALLOWED_PARAMS_CE
end
end end
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