Commit 5d238ae8 authored by Andrew Newdigate's avatar Andrew Newdigate

Add option to specify migration status on at the migration site

parent 55b98134
...@@ -86,8 +86,8 @@ module Gitlab ...@@ -86,8 +86,8 @@ module Gitlab
feature.enabled? feature.enabled?
end end
def self.migrate(feature) def self.migrate(feature, status: MigrationStatus::OPT_IN)
is_enabled = feature_enabled?(feature) is_enabled = feature_enabled?(feature, status: status)
metric_name = feature.to_s metric_name = feature.to_s
metric_name += "_gitaly" if is_enabled metric_name += "_gitaly" if is_enabled
......
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