Skip to content

Commit 4186309

Browse files
committed
Change branch_routing setting to group_enabled
Change the value of the feature setting for branch_routing to be enabled_by_group instead. This will allow the flag to be set per group in environments which have not overridden it.
1 parent e155521 commit 4186309

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config/settings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Used to add feature flags in the app to control access to certain features.
22
features:
33
groups: true # Do not switch off!
4-
branch_routing: false
4+
branch_routing:
5+
enabled_by_group: true
56

67
forms_api:
78
# Authentication key to authenticate with forms-api

spec/config/settings_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
features = settings[:features]
2424

2525
include_examples expected_value_test, :groups, features, true
26-
include_examples expected_value_test, :branch_routing, features, false
26+
include_examples expected_value_test, :branch_routing, features, { "enabled_by_group" => true }
2727
end
2828

2929
describe "forms_api" do

0 commit comments

Comments
 (0)