Commit 0d877f74 authored by GitLab Bot's avatar GitLab Bot

Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-07-18

# Conflicts:
#	app/assets/javascripts/vue_shared/components/reports/issues_list.vue
#	app/assets/javascripts/vue_shared/components/reports/report_issues.vue
#	locale/gitlab.pot
#	spec/javascripts/vue_shared/components/reports/report_section_spec.js

[ci skip]
parents 583c2ccc 29477fc2
<script> <script>
<<<<<<< HEAD
import IssuesBlock from '~/vue_shared/components/reports/report_issues.vue'; import IssuesBlock from '~/vue_shared/components/reports/report_issues.vue';
import SastContainerInfo from 'ee/vue_shared/security_reports/components/sast_container_info.vue'; import SastContainerInfo from 'ee/vue_shared/security_reports/components/sast_container_info.vue';
import { SAST_CONTAINER } from 'ee/vue_shared/security_reports//store/constants'; import { SAST_CONTAINER } from 'ee/vue_shared/security_reports//store/constants';
=======
import IssuesBlock from './report_issues.vue';
>>>>>>> upstream/master
/** /**
* Renders block of issues * Renders block of issues
...@@ -11,9 +15,13 @@ import { SAST_CONTAINER } from 'ee/vue_shared/security_reports//store/constants' ...@@ -11,9 +15,13 @@ import { SAST_CONTAINER } from 'ee/vue_shared/security_reports//store/constants'
export default { export default {
components: { components: {
IssuesBlock, IssuesBlock,
<<<<<<< HEAD
SastContainerInfo, SastContainerInfo,
}, },
sastContainer: SAST_CONTAINER, sastContainer: SAST_CONTAINER,
=======
},
>>>>>>> upstream/master
props: { props: {
unresolvedIssues: { unresolvedIssues: {
type: Array, type: Array,
...@@ -59,7 +67,10 @@ export default { ...@@ -59,7 +67,10 @@ export default {
</script> </script>
<template> <template>
<div class="report-block-container"> <div class="report-block-container">
<<<<<<< HEAD
<sast-container-info v-if="type === $options.sastContainer" /> <sast-container-info v-if="type === $options.sastContainer" />
=======
>>>>>>> upstream/master
<issues-block <issues-block
v-if="unresolvedIssues.length" v-if="unresolvedIssues.length"
......
<script> <script>
import Icon from '~/vue_shared/components/icon.vue'; import Icon from '~/vue_shared/components/icon.vue';
<<<<<<< HEAD
import PerformanceIssue from 'ee/vue_merge_request_widget/components/performance_issue_body.vue'; import PerformanceIssue from 'ee/vue_merge_request_widget/components/performance_issue_body.vue';
import CodequalityIssue from 'ee/vue_merge_request_widget/components/codequality_issue_body.vue'; import CodequalityIssue from 'ee/vue_merge_request_widget/components/codequality_issue_body.vue';
import LicenseIssue from 'ee/vue_merge_request_widget/components/license_issue_body.vue'; import LicenseIssue from 'ee/vue_merge_request_widget/components/license_issue_body.vue';
...@@ -9,23 +10,31 @@ import SastContainerIssue from 'ee/vue_shared/security_reports/components/sast_c ...@@ -9,23 +10,31 @@ import SastContainerIssue from 'ee/vue_shared/security_reports/components/sast_c
import DastIssue from 'ee/vue_shared/security_reports/components/dast_issue_body.vue'; import DastIssue from 'ee/vue_shared/security_reports/components/dast_issue_body.vue';
import { SAST, DAST, SAST_CONTAINER } from 'ee/vue_shared/security_reports/store/constants'; import { SAST, DAST, SAST_CONTAINER } from 'ee/vue_shared/security_reports/store/constants';
=======
>>>>>>> upstream/master
export default { export default {
name: 'ReportIssues', name: 'ReportIssues',
components: { components: {
Icon, Icon,
<<<<<<< HEAD
SastIssue, SastIssue,
SastContainerIssue, SastContainerIssue,
DastIssue, DastIssue,
PerformanceIssue, PerformanceIssue,
CodequalityIssue, CodequalityIssue,
LicenseIssue, LicenseIssue,
=======
>>>>>>> upstream/master
}, },
props: { props: {
issues: { issues: {
type: Array, type: Array,
required: true, required: true,
}, },
<<<<<<< HEAD
// security || codequality || performance || docker || dast || license // security || codequality || performance || docker || dast || license
=======
>>>>>>> upstream/master
type: { type: {
type: String, type: String,
required: true, required: true,
...@@ -55,6 +64,7 @@ export default { ...@@ -55,6 +64,7 @@ export default {
isStatusNeutral() { isStatusNeutral() {
return this.status === 'neutral'; return this.status === 'neutral';
}, },
<<<<<<< HEAD
isTypeCodequality() { isTypeCodequality() {
return this.type === 'codequality'; return this.type === 'codequality';
}, },
...@@ -73,6 +83,8 @@ export default { ...@@ -73,6 +83,8 @@ export default {
isTypeDast() { isTypeDast() {
return this.type === DAST; return this.type === DAST;
}, },
=======
>>>>>>> upstream/master
}, },
}; };
</script> </script>
...@@ -94,6 +106,7 @@ export default { ...@@ -94,6 +106,7 @@ export default {
class="report-block-list-icon append-right-5" class="report-block-list-icon append-right-5"
> >
<icon <icon
<<<<<<< HEAD
v-if="isTypeLicense" v-if="isTypeLicense"
:size="24" :size="24"
name="status_created_borderless" name="status_created_borderless"
...@@ -101,11 +114,14 @@ export default { ...@@ -101,11 +114,14 @@ export default {
/> />
<icon <icon
v-else v-else
=======
>>>>>>> upstream/master
:name="iconName" :name="iconName"
:size="32" :size="32"
/> />
</div> </div>
<<<<<<< HEAD
<sast-issue <sast-issue
v-if="isTypeSast" v-if="isTypeSast"
:issue="issue" :issue="issue"
...@@ -140,6 +156,8 @@ export default { ...@@ -140,6 +156,8 @@ export default {
v-else-if="isTypeLicense" v-else-if="isTypeLicense"
:issue="issue" :issue="issue"
/> />
=======
>>>>>>> upstream/master
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -107,7 +107,8 @@ module SearchHelper ...@@ -107,7 +107,8 @@ module SearchHelper
category: "Groups", category: "Groups",
id: group.id, id: group.id,
label: "#{search_result_sanitize(group.full_name)}", label: "#{search_result_sanitize(group.full_name)}",
url: group_path(group) url: group_path(group),
avatar_url: group.avatar_url || ''
} }
end end
end end
...@@ -121,7 +122,8 @@ module SearchHelper ...@@ -121,7 +122,8 @@ module SearchHelper
id: p.id, id: p.id,
value: "#{search_result_sanitize(p.name)}", value: "#{search_result_sanitize(p.name)}",
label: "#{search_result_sanitize(p.full_name)}", label: "#{search_result_sanitize(p.full_name)}",
url: project_path(p) url: project_path(p),
avatar_url: p.avatar_url || ''
} }
end end
end end
......
...@@ -182,7 +182,7 @@ class MergeRequestDiff < ActiveRecord::Base ...@@ -182,7 +182,7 @@ class MergeRequestDiff < ActiveRecord::Base
end end
def diffs(diff_options = nil) def diffs(diff_options = nil)
if without_files? && comparison = diff_refs.compare_in(project) if without_files? && comparison = diff_refs&.compare_in(project)
# It should fetch the repository when diffs are cleaned by the system. # It should fetch the repository when diffs are cleaned by the system.
# We don't keep these for storage overload purposes. # We don't keep these for storage overload purposes.
# See https://gitlab.com/gitlab-org/gitlab-ce/issues/37639 # See https://gitlab.com/gitlab-org/gitlab-ce/issues/37639
......
# frozen_string_literal: true
module Lfs module Lfs
# Usage: Calling `new_file` check to see if a file should be in LFS and # Usage: Calling `new_file` check to see if a file should be in LFS and
# return a transformed result with `content` and `encoding` to commit. # return a transformed result with `content` and `encoding` to commit.
......
# frozen_string_literal: true
module Lfs module Lfs
class LockFileService < BaseService class LockFileService < BaseService
prepend EE::Lfs::LockFileService prepend EE::Lfs::LockFileService
......
# frozen_string_literal: true
module Lfs module Lfs
class LocksFinderService < BaseService class LocksFinderService < BaseService
def execute def execute
......
# frozen_string_literal: true
module Lfs module Lfs
class UnlockFileService < BaseService class UnlockFileService < BaseService
prepend EE::Lfs::UnlockFileService prepend EE::Lfs::UnlockFileService
......
# frozen_string_literal: true
module Mattermost module Mattermost
class CreateTeamService < ::BaseService class CreateTeamService < ::BaseService
def initialize(group, current_user) def initialize(group, current_user)
......
# frozen_string_literal: true
module Members module Members
class ApproveAccessRequestService < Members::BaseService class ApproveAccessRequestService < Members::BaseService
prepend EE::Members::ApproveAccessRequestService prepend EE::Members::ApproveAccessRequestService
......
# frozen_string_literal: true
module Members module Members
class BaseService < ::BaseService class BaseService < ::BaseService
# current_user - The user that performs the action # current_user - The user that performs the action
......
# frozen_string_literal: true
module Members module Members
class CreateService < Members::BaseService class CreateService < Members::BaseService
prepend EE::Members::CreateService prepend EE::Members::CreateService
......
# frozen_string_literal: true
module Members module Members
class DestroyService < Members::BaseService class DestroyService < Members::BaseService
prepend EE::Members::DestroyService prepend EE::Members::DestroyService
......
# frozen_string_literal: true
module Members module Members
class RequestAccessService < Members::BaseService class RequestAccessService < Members::BaseService
def execute(source) def execute(source)
......
# frozen_string_literal: true
module Members module Members
class UpdateService < Members::BaseService class UpdateService < Members::BaseService
prepend EE::Members::UpdateService prepend EE::Members::UpdateService
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class AddTodoWhenBuildFailsService < MergeRequests::BaseService class AddTodoWhenBuildFailsService < MergeRequests::BaseService
# Adds a todo to the parent merge_request when a CI build fails # Adds a todo to the parent merge_request when a CI build fails
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class AssignIssuesService < BaseService class AssignIssuesService < BaseService
def assignable_issues def assignable_issues
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class BaseService < ::IssuableBaseService class BaseService < ::IssuableBaseService
prepend EE::MergeRequests::BaseService prepend EE::MergeRequests::BaseService
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class BuildService < MergeRequests::BaseService class BuildService < MergeRequests::BaseService
prepend EE::MergeRequests::BuildService prepend EE::MergeRequests::BuildService
...@@ -141,7 +143,8 @@ module MergeRequests ...@@ -141,7 +143,8 @@ module MergeRequests
closes_issue = "Closes #{issue.to_reference}" closes_issue = "Closes #{issue.to_reference}"
if description.present? if description.present?
merge_request.description += closes_issue.prepend("\n\n") descr_parts = [merge_request.description, closes_issue]
merge_request.description = descr_parts.join("\n\n")
else else
merge_request.description = closes_issue merge_request.description = closes_issue
end end
...@@ -165,9 +168,11 @@ module MergeRequests ...@@ -165,9 +168,11 @@ module MergeRequests
return if merge_request.title.present? return if merge_request.title.present?
if issue_iid.present? if issue_iid.present?
merge_request.title = "Resolve #{issue.to_reference}" title_parts = ["Resolve #{issue.to_reference}"]
branch_title = source_branch.downcase.remove(issue_iid.downcase).titleize.humanize branch_title = source_branch.downcase.remove(issue_iid.downcase).titleize.humanize
merge_request.title += " \"#{branch_title}\"" if branch_title.present?
title_parts << "\"#{branch_title}\"" if branch_title.present?
merge_request.title = title_parts.join(' ')
end end
end end
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class CloseService < MergeRequests::BaseService class CloseService < MergeRequests::BaseService
def execute(merge_request, commit = nil) def execute(merge_request, commit = nil)
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
module Conflicts module Conflicts
class BaseService class BaseService
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
module Conflicts module Conflicts
class ListService < MergeRequests::Conflicts::BaseService class ListService < MergeRequests::Conflicts::BaseService
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
module Conflicts module Conflicts
class ResolveService < MergeRequests::Conflicts::BaseService class ResolveService < MergeRequests::Conflicts::BaseService
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class CreateFromIssueService < MergeRequests::CreateService class CreateFromIssueService < MergeRequests::CreateService
def initialize(project, user, params) def initialize(project, user, params)
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class CreateService < MergeRequests::BaseService class CreateService < MergeRequests::BaseService
def execute def execute
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class DeleteNonLatestDiffsService class DeleteNonLatestDiffsService
BATCH_SIZE = 10 BATCH_SIZE = 10
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
# MergeService class # MergeService class
# #
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class GetUrlsService < BaseService class GetUrlsService < BaseService
attr_reader :project attr_reader :project
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
# MergeService class # MergeService class
# #
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class MergeWhenPipelineSucceedsService < MergeRequests::BaseService class MergeWhenPipelineSucceedsService < MergeRequests::BaseService
# Marks the passed `merge_request` to be merged when the pipeline succeeds or # Marks the passed `merge_request` to be merged when the pipeline succeeds or
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
# PostMergeService class # PostMergeService class
# #
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class RebaseService < MergeRequests::WorkingCopyBaseService class RebaseService < MergeRequests::WorkingCopyBaseService
REBASE_ERROR = 'Rebase failed. Please rebase locally'.freeze REBASE_ERROR = 'Rebase failed. Please rebase locally'.freeze
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class RefreshService < MergeRequests::BaseService class RefreshService < MergeRequests::BaseService
prepend EE::MergeRequests::RefreshService prepend EE::MergeRequests::RefreshService
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class ReloadDiffsService class ReloadDiffsService
def initialize(merge_request, current_user) def initialize(merge_request, current_user)
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class ReopenService < MergeRequests::BaseService class ReopenService < MergeRequests::BaseService
def execute(merge_request) def execute(merge_request)
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class ResolvedDiscussionNotificationService < MergeRequests::BaseService class ResolvedDiscussionNotificationService < MergeRequests::BaseService
def execute(merge_request) def execute(merge_request)
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class SquashService < MergeRequests::WorkingCopyBaseService class SquashService < MergeRequests::WorkingCopyBaseService
def execute(merge_request) def execute(merge_request)
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class UpdateService < MergeRequests::BaseService class UpdateService < MergeRequests::BaseService
prepend ::EE::MergeRequests::UpdateService prepend ::EE::MergeRequests::UpdateService
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class WorkingCopyBaseService < MergeRequests::BaseService class WorkingCopyBaseService < MergeRequests::BaseService
attr_reader :merge_request attr_reader :merge_request
......
# frozen_string_literal: true
module Milestones module Milestones
class BaseService < ::BaseService class BaseService < ::BaseService
# Parent can either a group or a project # Parent can either a group or a project
......
# frozen_string_literal: true
module Milestones module Milestones
class CloseService < Milestones::BaseService class CloseService < Milestones::BaseService
def execute(milestone) def execute(milestone)
......
# frozen_string_literal: true
module Milestones module Milestones
class CreateService < Milestones::BaseService class CreateService < Milestones::BaseService
def execute def execute
......
# frozen_string_literal: true
module Milestones module Milestones
class DestroyService < Milestones::BaseService class DestroyService < Milestones::BaseService
def execute(milestone) def execute(milestone)
......
# frozen_string_literal: true
module Milestones module Milestones
class PromoteService < Milestones::BaseService class PromoteService < Milestones::BaseService
prepend EE::Milestones::PromoteService prepend EE::Milestones::PromoteService
......
# frozen_string_literal: true
module Milestones module Milestones
class ReopenService < Milestones::BaseService class ReopenService < Milestones::BaseService
def execute(milestone) def execute(milestone)
......
# frozen_string_literal: true
module Milestones module Milestones
class UpdateService < Milestones::BaseService class UpdateService < Milestones::BaseService
def execute(milestone) def execute(milestone)
......
# frozen_string_literal: true
module Notes module Notes
class BuildService < ::BaseService class BuildService < ::BaseService
prepend ::EE::Notes::BuildService prepend ::EE::Notes::BuildService
......
# frozen_string_literal: true
module Notes module Notes
class CreateService < ::BaseService class CreateService < ::BaseService
def execute def execute
......
# frozen_string_literal: true
module Notes module Notes
class DestroyService < BaseService class DestroyService < BaseService
def execute(note) def execute(note)
......
# frozen_string_literal: true
module Notes module Notes
class PostProcessService class PostProcessService
attr_accessor :note attr_accessor :note
......
# frozen_string_literal: true
module Notes module Notes
class QuickActionsService < BaseService class QuickActionsService < BaseService
UPDATE_SERVICES = { UPDATE_SERVICES = {
......
# frozen_string_literal: true
module Notes module Notes
class RenderService < BaseRenderer class RenderService < BaseRenderer
# Renders a collection of Note instances. # Renders a collection of Note instances.
......
# frozen_string_literal: true
module Notes module Notes
class ResolveService < ::BaseService class ResolveService < ::BaseService
def execute(note) def execute(note)
......
# frozen_string_literal: true
module Notes module Notes
class UpdateService < BaseService class UpdateService < BaseService
def execute(note) def execute(note)
......
# frozen_string_literal: true
module Projects module Projects
class AfterImportService class AfterImportService
RESERVED_REF_PREFIXES = Repository::RESERVED_REFS_NAMES.map { |n| File.join('refs', n, '/') } RESERVED_REF_PREFIXES = Repository::RESERVED_REFS_NAMES.map { |n| File.join('refs', n, '/') }
......
# frozen_string_literal: true
module Projects module Projects
class AutocompleteService < BaseService class AutocompleteService < BaseService
def issues def issues
......
# frozen_string_literal: true
module Projects module Projects
class BaseMoveRelationsService < BaseService class BaseMoveRelationsService < BaseService
attr_reader :source_project attr_reader :source_project
......
# frozen_string_literal: true
# Service class for getting and caching the number of elements of several projects # Service class for getting and caching the number of elements of several projects
# Warning: do not user this service with a really large set of projects # Warning: do not user this service with a really large set of projects
# because the service use maps to retrieve the project ids. # because the service use maps to retrieve the project ids.
......
# frozen_string_literal: true
# Service class for getting and caching the number of forks of several projects # Service class for getting and caching the number of forks of several projects
# Warning: do not user this service with a really large set of projects # Warning: do not user this service with a really large set of projects
# because the service use maps to retrieve the project ids # because the service use maps to retrieve the project ids
......
# frozen_string_literal: true
# Service class for getting and caching the number of issues of several projects # Service class for getting and caching the number of issues of several projects
# Warning: do not user this service with a really large set of projects # Warning: do not user this service with a really large set of projects
# because the service use maps to retrieve the project ids # because the service use maps to retrieve the project ids
......
# frozen_string_literal: true
module Projects module Projects
# Base class for the various service classes that count project data (e.g. # Base class for the various service classes that count project data (e.g.
# issues or forks). # issues or forks).
......
# frozen_string_literal: true
module Projects module Projects
class CreateFromTemplateService < BaseService class CreateFromTemplateService < BaseService
def initialize(user, params) def initialize(user, params)
......
# frozen_string_literal: true
module Projects module Projects
class CreateService < BaseService class CreateService < BaseService
prepend ::EE::Projects::CreateService prepend ::EE::Projects::CreateService
......
# frozen_string_literal: true
module Projects module Projects
class DestroyService < BaseService class DestroyService < BaseService
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
......
# frozen_string_literal: true
module Projects module Projects
class DownloadService < BaseService class DownloadService < BaseService
WHITELIST = [ WHITELIST = [
......
# frozen_string_literal: true
module Projects module Projects
class EnableDeployKeyService < BaseService class EnableDeployKeyService < BaseService
def execute def execute
......
# frozen_string_literal: true
module Projects module Projects
class ForkService < BaseService class ForkService < BaseService
def execute(fork_to_project = nil) def execute(fork_to_project = nil)
......
# frozen_string_literal: true
module Projects module Projects
# Service class for getting and caching the number of forks of a project. # Service class for getting and caching the number of forks of a project.
class ForksCountService < Projects::CountService class ForksCountService < Projects::CountService
......
# frozen_string_literal: true
# This service is an adapter used to for the GitLab Import feature, and # This service is an adapter used to for the GitLab Import feature, and
# creating a project from a template. # creating a project from a template.
# The latter will under the hood just import an archive supplied by GitLab. # The latter will under the hood just import an archive supplied by GitLab.
......
# frozen_string_literal: true
module Projects module Projects
module GroupLinks module GroupLinks
class CreateService < BaseService class CreateService < BaseService
......
# frozen_string_literal: true
module Projects module Projects
module GroupLinks module GroupLinks
class DestroyService < BaseService class DestroyService < BaseService
......
# frozen_string_literal: true
module Projects module Projects
module HashedStorage module HashedStorage
AttachmentMigrationError = Class.new(StandardError) AttachmentMigrationError = Class.new(StandardError)
......
# frozen_string_literal: true
module Projects module Projects
module HashedStorage module HashedStorage
class MigrateRepositoryService < BaseService class MigrateRepositoryService < BaseService
......
# frozen_string_literal: true
module Projects module Projects
class HashedStorageMigrationService < BaseService class HashedStorageMigrationService < BaseService
attr_reader :logger attr_reader :logger
......
# frozen_string_literal: true
# Projects::HousekeepingService class # Projects::HousekeepingService class
# #
# Used for git housekeeping # Used for git housekeeping
......
# frozen_string_literal: true
module Projects module Projects
module ImportExport module ImportExport
class ExportService < BaseService class ExportService < BaseService
......
# frozen_string_literal: true
module Projects module Projects
class ImportService < BaseService class ImportService < BaseService
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
......
# frozen_string_literal: true
# This service lists the download link from a remote source based on the # This service lists the download link from a remote source based on the
# oids provided # oids provided
module Projects module Projects
......
# frozen_string_literal: true
# This service downloads and links lfs objects from a remote URL # This service downloads and links lfs objects from a remote URL
module Projects module Projects
module LfsPointers module LfsPointers
......
# frozen_string_literal: true
# This service manages the whole worflow of discovering the Lfs files in a # This service manages the whole worflow of discovering the Lfs files in a
# repository, linking them to the project and downloading (and linking) the non # repository, linking them to the project and downloading (and linking) the non
# existent ones. # existent ones.
......
# frozen_string_literal: true
# Given a list of oids, this services links the existent Lfs Objects to the project # Given a list of oids, this services links the existent Lfs Objects to the project
module Projects module Projects
module LfsPointers module LfsPointers
......
# frozen_string_literal: true
# This service list all existent Lfs objects in a repository # This service list all existent Lfs objects in a repository
module Projects module Projects
module LfsPointers module LfsPointers
......
# frozen_string_literal: true
module Projects module Projects
class MoveAccessService < BaseMoveRelationsService class MoveAccessService < BaseMoveRelationsService
def execute(source_project, remove_remaining_elements: true) def execute(source_project, remove_remaining_elements: true)
......
# frozen_string_literal: true
module Projects module Projects
class MoveDeployKeysProjectsService < BaseMoveRelationsService class MoveDeployKeysProjectsService < BaseMoveRelationsService
def execute(source_project, remove_remaining_elements: true) def execute(source_project, remove_remaining_elements: true)
......
# frozen_string_literal: true
module Projects module Projects
class MoveForksService < BaseMoveRelationsService class MoveForksService < BaseMoveRelationsService
def execute(source_project, remove_remaining_elements: true) def execute(source_project, remove_remaining_elements: true)
......
# frozen_string_literal: true
module Projects module Projects
class MoveLfsObjectsProjectsService < BaseMoveRelationsService class MoveLfsObjectsProjectsService < BaseMoveRelationsService
def execute(source_project, remove_remaining_elements: true) def execute(source_project, remove_remaining_elements: true)
......
# frozen_string_literal: true
module Projects module Projects
class MoveNotificationSettingsService < BaseMoveRelationsService class MoveNotificationSettingsService < BaseMoveRelationsService
def execute(source_project, remove_remaining_elements: true) def execute(source_project, remove_remaining_elements: true)
......
# frozen_string_literal: true
# NOTE: This service cannot be used directly because it is part of a # NOTE: This service cannot be used directly because it is part of a
# a bigger process. Instead, use the service MoveAccessService which moves # a bigger process. Instead, use the service MoveAccessService which moves
# project memberships, project group links, authorizations and refreshes # project memberships, project group links, authorizations and refreshes
......
# frozen_string_literal: true
# NOTE: This service cannot be used directly because it is part of a # NOTE: This service cannot be used directly because it is part of a
# a bigger process. Instead, use the service MoveAccessService which moves # a bigger process. Instead, use the service MoveAccessService which moves
# project memberships, project group links, authorizations and refreshes # project memberships, project group links, authorizations and refreshes
......
# frozen_string_literal: true
# NOTE: This service cannot be used directly because it is part of a # NOTE: This service cannot be used directly because it is part of a
# a bigger process. Instead, use the service MoveAccessService which moves # a bigger process. Instead, use the service MoveAccessService which moves
# project memberships, project group links, authorizations and refreshes # project memberships, project group links, authorizations and refreshes
......
# frozen_string_literal: true
module Projects module Projects
class MoveUsersStarProjectsService < BaseMoveRelationsService class MoveUsersStarProjectsService < BaseMoveRelationsService
def execute(source_project, remove_remaining_elements: true) def execute(source_project, remove_remaining_elements: true)
......
# frozen_string_literal: true
module Projects module Projects
# Service class for counting and caching the number of open issues of a # Service class for counting and caching the number of open issues of a
# project. # project.
......
# frozen_string_literal: true
module Projects module Projects
# Service class for counting and caching the number of open merge requests of # Service class for counting and caching the number of open merge requests of
# a project. # a project.
......
# frozen_string_literal: true
module Projects module Projects
class OverwriteProjectService < BaseService class OverwriteProjectService < BaseService
def execute(source_project) def execute(source_project)
......
# frozen_string_literal: true
module Projects module Projects
class ParticipantsService < BaseService class ParticipantsService < BaseService
include Users::ParticipableService include Users::ParticipableService
......
# frozen_string_literal: true
module Projects module Projects
class PropagateServiceTemplate class PropagateServiceTemplate
BATCH_SIZE = 100 BATCH_SIZE = 100
......
# frozen_string_literal: true
# Projects::TransferService class # Projects::TransferService class
# #
# Used for transfer project to another namespace # Used for transfer project to another namespace
......
# frozen_string_literal: true
module Projects module Projects
class UnlinkForkService < BaseService class UnlinkForkService < BaseService
def execute def execute
......
# frozen_string_literal: true
module Projects module Projects
class UpdatePagesConfigurationService < BaseService class UpdatePagesConfigurationService < BaseService
attr_reader :project attr_reader :project
......
# frozen_string_literal: true
module Projects module Projects
class UpdatePagesService < BaseService class UpdatePagesService < BaseService
InvalidStateError = Class.new(StandardError) InvalidStateError = Class.new(StandardError)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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