Merge branch 'zj-find-license-opt-out' into 'master'

Move FindLicense RPC to OPT OUT status

See merge request gitlab-org/gitlab-ce!18228
This commit is contained in:
Grzegorz Bizon 2018-04-09 09:32:58 +00:00
commit a2a6a5cab6
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Detect repository license on Gitaly by default
merge_request:
author:
type: performance

View file

@ -1045,7 +1045,8 @@ module Gitlab
end
def license_short_name
gitaly_migrate(:license_short_name) do |is_enabled|
gitaly_migrate(:license_short_name,
status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled
gitaly_repository_client.license_short_name
else