Commit 42a4a6f8 authored by Stan Hu's avatar Stan Hu

Merge branch '33408-upgrade-flipper' into 'master'

Upgrade flipper gem to support Rails 6

See merge request gitlab-org/gitlab!18903
parents bdbb7df6 3efa30b6
...@@ -455,9 +455,9 @@ gem 'google-protobuf', '~> 3.8.0' ...@@ -455,9 +455,9 @@ gem 'google-protobuf', '~> 3.8.0'
gem 'toml-rb', '~> 1.0.0', require: false gem 'toml-rb', '~> 1.0.0', require: false
# Feature toggles # Feature toggles
gem 'flipper', '~> 0.13.0' gem 'flipper', '~> 0.17.1'
gem 'flipper-active_record', '~> 0.13.0' gem 'flipper-active_record', '~> 0.17.1'
gem 'flipper-active_support_cache_store', '~> 0.13.0' gem 'flipper-active_support_cache_store', '~> 0.17.1'
gem 'unleash', '~> 0.1.5' gem 'unleash', '~> 0.1.5'
# Structured logging # Structured logging
......
...@@ -285,13 +285,13 @@ GEM ...@@ -285,13 +285,13 @@ GEM
fast_gettext (1.6.0) fast_gettext (1.6.0)
ffaker (2.10.0) ffaker (2.10.0)
ffi (1.11.1) ffi (1.11.1)
flipper (0.13.0) flipper (0.17.1)
flipper-active_record (0.13.0) flipper-active_record (0.17.1)
activerecord (>= 3.2, < 6) activerecord (>= 4.2, < 7)
flipper (~> 0.13.0) flipper (~> 0.17.1)
flipper-active_support_cache_store (0.13.0) flipper-active_support_cache_store (0.17.1)
activesupport (>= 3.2, < 6) activesupport (>= 4.2, < 7)
flipper (~> 0.13.0) flipper (~> 0.17.1)
flowdock (0.7.1) flowdock (0.7.1)
httparty (~> 0.7) httparty (~> 0.7)
multi_json multi_json
...@@ -1149,9 +1149,9 @@ DEPENDENCIES ...@@ -1149,9 +1149,9 @@ DEPENDENCIES
faraday_middleware-aws-signers-v4 faraday_middleware-aws-signers-v4
fast_blank fast_blank
ffaker (~> 2.10) ffaker (~> 2.10)
flipper (~> 0.13.0) flipper (~> 0.17.1)
flipper-active_record (~> 0.13.0) flipper-active_record (~> 0.17.1)
flipper-active_support_cache_store (~> 0.13.0) flipper-active_support_cache_store (~> 0.17.1)
flowdock (~> 0.7) flowdock (~> 0.7)
fog-aliyun (~> 0.3) fog-aliyun (~> 0.3)
fog-aws (~> 3.5) fog-aws (~> 3.5)
......
...@@ -118,14 +118,13 @@ describe API::Features do ...@@ -118,14 +118,13 @@ describe API::Features do
post api("/features/#{feature_name}", admin), params: { value: 'true', user: user.username, feature_group: 'perf_team' } post api("/features/#{feature_name}", admin), params: { value: 'true', user: user.username, feature_group: 'perf_team' }
expect(response).to have_gitlab_http_status(201) expect(response).to have_gitlab_http_status(201)
expect(json_response).to eq( expect(json_response['name']).to eq('my_feature')
'name' => 'my_feature', expect(json_response['state']).to eq('conditional')
'state' => 'conditional', expect(json_response['gates']).to contain_exactly(
'gates' => [ { 'key' => 'boolean', 'value' => false },
{ 'key' => 'boolean', 'value' => false }, { 'key' => 'groups', 'value' => ['perf_team'] },
{ 'key' => 'groups', 'value' => ['perf_team'] }, { 'key' => 'actors', 'value' => ["User:#{user.id}"] }
{ 'key' => 'actors', 'value' => ["User:#{user.id}"] } )
])
end end
end end
......
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