Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-27 19:58:56 +0300
committerRémy Coutable <remy@rymai.me>2017-06-27 19:59:51 +0300
commit5fa9d6a17dac86e9976946ded7857e1392403136 (patch)
tree842b40fb6948b5ba444d9b526554393cede3ba2a /lib/api/features.rb
parentb4d325c80c63ee9ee2676a57a42fac472b5b20d5 (diff)
Rename FLippable to FeatureGate and make `flipper_group` and `user` mutually exclusive
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api/features.rb')
-rw-r--r--lib/api/features.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/features.rb b/lib/api/features.rb
index 4e10e36fce9..e426bc050eb 100644
--- a/lib/api/features.rb
+++ b/lib/api/features.rb
@@ -42,6 +42,7 @@ module API
requires :value, type: String, desc: '`true` or `false` to enable/disable, an integer for percentage of time'
optional :flipper_group, type: String, desc: 'A Flipper group name'
optional :user, type: String, desc: 'A GitLab username'
+ mutually_exclusive :flipper_group, :user
end
post ':name' do
feature = Feature.get(params[:name])