Commit 1219e841 authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Allow 'source' as an index param for pipelines if FF is enabled

This was missed during a conflict-resolve for
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67964.
Without this, pipeines can not be filtered by source from the UI.
Signed-off-by: default avatarBalasankar "Balu" C <balasankar@gitlab.com>
parent 78684055
...@@ -297,7 +297,10 @@ class Projects::PipelinesController < Projects::ApplicationController ...@@ -297,7 +297,10 @@ class Projects::PipelinesController < Projects::ApplicationController
end end
def index_params def index_params
params.permit(:scope, :username, :ref, :status) permitted_params = [:scope, :username, :ref, :status]
permitted_params << :source if Feature.enabled?(:pipeline_source_filter, project, default_enabled: :yaml)
params.permit(*permitted_params)
end end
def enable_code_quality_walkthrough_experiment def enable_code_quality_walkthrough_experiment
......
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