Skip to content

Adding operations setting

Francisco Javier López requested to merge 224698-fj-add-operations-setting into master

What does this MR do?

In this MR we add the BE logic for a new option within the project settings, the 'Operations' settings. Based on the content of this field, we will show the 'Options' menu item or not.

This MR does not implement the visual changes in the project settings. That will come in a different MR.

Query

=> rake db:migrate
== 20201123081307 AddOperationsProjectFeatureToMetrics: migrating =============
-- add_column(:project_features, :operations_access_level, :integer, {:default=>20, :null=>false})
   -> 0.0018s
== 20201123081307 AddOperationsProjectFeatureToMetrics: migrated (0.0061s) ====
# ALTER TABLE "project_features" ADD "operations_access_level" integer DEFAULT 20 NOT NULL
=> rake db:rollback
== 20201123081307 AddOperationsProjectFeatureToMetrics: reverting =============
-- remove_column(:project_features, :operations_access_level)
   -> 0.0014s
== 20201123081307 AddOperationsProjectFeatureToMetrics: reverted (0.0058s) ====
#  ALTER TABLE "project_features" DROP COLUMN "operations_access_level"

Does this MR meet the acceptance criteria?

Conformity

Related to #224698 (closed)

Edited by Francisco Javier López

Merge request reports

Loading