Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2020-04-12 21:09:39 +00:00
parent 13150a38e7
commit cdf9ef52fe
10 changed files with 29 additions and 13 deletions

View file

@ -26,8 +26,6 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
presents :build
prepend_if_ee('::EE::CommitStatusPresenter') # rubocop: disable Cop/InjectEnterpriseEditionModule
def self.callout_failure_messages
CALLOUT_FAILURE_MESSAGES
end
@ -44,3 +42,5 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
script_failure? || missing_dependency_failure? || archived_failure? || scheduler_failure? || data_integrity_failure?
end
end
CommitStatusPresenter.prepend_if_ee('::EE::CommitStatusPresenter')

View file

@ -1,8 +1,6 @@
# frozen_string_literal: true
class BuildDetailsEntity < JobEntity
prepend_if_ee('::EE::BuildDetailEntity') # rubocop: disable Cop/InjectEnterpriseEditionModule
expose :coverage, :erased_at, :duration
expose :tag_list, as: :tags
expose :has_trace?, as: :has_trace
@ -152,3 +150,5 @@ class BuildDetailsEntity < JobEntity
_("Please refer to <a href=\"%{docs_url}\">%{docs_url}</a>") % { docs_url: docs_url }
end
end
BuildDetailsEntity.prepend_if_ee('::EE::BuildDetailEntity')

View file

@ -2,7 +2,6 @@
class IssueEntity < IssuableEntity
include TimeTrackableEntity
prepend_if_ee('::EE::IssueEntity') # rubocop: disable Cop/InjectEnterpriseEditionModule
expose :state
expose :milestone_id
@ -73,3 +72,5 @@ class IssueEntity < IssuableEntity
help_page_path('user/project/settings/index.md', anchor: 'archiving-a-project')
end
end
IssueEntity.prepend_if_ee('::EE::IssueEntity')

View file

@ -1,11 +1,11 @@
# frozen_string_literal: true
class ProjectMirrorEntity < Grape::Entity
prepend_if_ee('::EE::ProjectMirrorEntity') # rubocop: disable Cop/InjectEnterpriseEditionModule
expose :id
expose :remote_mirrors_attributes, using: RemoteMirrorEntity do |project|
project.remote_mirrors
end
end
ProjectMirrorEntity.prepend_if_ee('::EE::ProjectMirrorEntity')

View file

@ -137,8 +137,6 @@ module ObjectStorage
included do |base|
base.include(ObjectStorage)
include_if_ee('::EE::ObjectStorage::Concern') # rubocop: disable Cop/InjectEnterpriseEditionModule
after :migrate, :delete_migrated_file
end
@ -463,3 +461,5 @@ module ObjectStorage
end
end
end
ObjectStorage::Concern.include_if_ee('::EE::ObjectStorage::Concern')

View file

@ -2,8 +2,6 @@
module RepositoryCheck
class BatchWorker # rubocop:disable Scalability/IdempotentWorker
prepend_if_ee('::EE::RepositoryCheck::BatchWorker') # rubocop: disable Cop/InjectEnterpriseEditionModule
include ApplicationWorker
include RepositoryCheckQueue
include ExclusiveLeaseGuard
@ -94,3 +92,5 @@ module RepositoryCheck
end
end
end
RepositoryCheck::BatchWorker.prepend_if_ee('::EE::RepositoryCheck::BatchWorker')

View file

@ -5,8 +5,6 @@ module RepositoryCheck
include ApplicationWorker
include RepositoryCheckQueue
prepend_if_ee('::EE::RepositoryCheck::SingleRepositoryWorker') # rubocop: disable Cop/InjectEnterpriseEditionModule
def perform(project_id)
project = Project.find(project_id)
healthy = project_healthy?(project)
@ -68,3 +66,5 @@ module RepositoryCheck
end
end
end
RepositoryCheck::SingleRepositoryWorker.prepend_if_ee('::EE::RepositoryCheck::SingleRepositoryWorker')

View file

@ -0,0 +1,5 @@
---
title: Move prepend to last line in app serializers
merge_request: 29332
author: Rajendra Kadam
type: fixed

View file

@ -0,0 +1,5 @@
---
title: Move prepend to last line in app workers and uploaders
merge_request: 29379
author: Rajendra Kadam
type: fixed

View file

@ -0,0 +1,5 @@
---
title: Move prepend to last line in commit status presenter
merge_request: 29328
author: Rajendra Kadam
type: fixed