Skip to content

Add setting to toggle Suggest Pipeline feature

Eugie Limpin requested to merge add-suggest-pipeline-enabled-app-setting into master

What does this MR do and why?

As a first iteration to implement #337560 (closed) this MR adds suggest_pipeline_enabled column to application_settings table. This new setting defaults to enabled (current behavior) and will allow admins to toggle the Suggest Pipeline feature.

Suggest Pipeline MR widget

suggest_pipeline

Migration output

db:migrate

== 20210921032008 AddSuggestPipelineEnabledToApplicationSettings: migrating ===
-- add_column(:application_settings, :suggest_pipeline_enabled, :boolean, {:default=>true, :null=>false})
   -> 0.0038s
== 20210921032008 AddSuggestPipelineEnabledToApplicationSettings: migrated (0.0038s)

db:rollback

== 20210921032008 AddSuggestPipelineEnabledToApplicationSettings: reverting ===
-- remove_column(:application_settings, :suggest_pipeline_enabled, :boolean, {:default=>true, :null=>false})
   -> 0.0032s
== 20210921032008 AddSuggestPipelineEnabledToApplicationSettings: reverted (0.0075s)

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

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

MR acceptance checklist

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

Edited by Eugie Limpin

Merge request reports