From bbbe40eae522e3bc2b81a45280e63572b845208a Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Wed, 11 Apr 2018 09:31:11 +0200 Subject: [PATCH] Tag with a commit detection defaults to Gitaly By default this was an OPT_IN RPC, and now graduates to OPT_OUT as the acceptance testing was successful in: gitaly#1009 This follows the conventions of our [migration process](https://gitlab.com/gitlab-org/gitaly/blob/master/doc/MIGRATION_PROCESS.md) --- changelogs/unreleased/zj-tag-containing-sha-opt-out.yml | 5 +++++ lib/gitlab/git/repository.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/zj-tag-containing-sha-opt-out.yml diff --git a/changelogs/unreleased/zj-tag-containing-sha-opt-out.yml b/changelogs/unreleased/zj-tag-containing-sha-opt-out.yml new file mode 100644 index 00000000000..4774c7811d1 --- /dev/null +++ b/changelogs/unreleased/zj-tag-containing-sha-opt-out.yml @@ -0,0 +1,5 @@ +--- +title: Detecting tags containing a commit uses Gitaly by default +merge_request: +author: +type: performance diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index f1b575bd872..82a4aaef3fc 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -1395,7 +1395,8 @@ module Gitlab end def tag_names_contains_sha(sha) - gitaly_migrate(:tag_names_contains_sha) do |is_enabled| + gitaly_migrate(:tag_names_contains_sha, + status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled| if is_enabled gitaly_ref_client.tag_names_contains_sha(sha) else -- GitLab