Commit 2c2e7081 authored by Stan Hu's avatar Stan Hu

Merge branch 'pipelines-filter-by-source-index-params-fix' into 'master'

Allow 'source' as an index parameter for pipelines if feature flag is enabled

See merge request gitlab-org/gitlab!68822
parents bff27f46 1219e841
......@@ -297,7 +297,10 @@ class Projects::PipelinesController < Projects::ApplicationController
end
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
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