Commit eb8bb4ba authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'frozen-string-ee-app-policies' into 'master'

Enable some frozen string in ee/app

See merge request gitlab-org/gitlab-ee!8728
parents 8eef55cf 5888e0cc
# frozen_string_literal: true
module EE module EE
module BoardsResponses module BoardsResponses
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module BasePolicy module BasePolicy
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module GroupPolicy module GroupPolicy
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module MergeRequestPolicy module MergeRequestPolicy
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module ProjectPolicy module ProjectPolicy
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module ProtectedBranchPolicy module ProtectedBranchPolicy
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
class EpicPolicy < BasePolicy class EpicPolicy < BasePolicy
delegate { @subject.group } delegate { @subject.group }
......
# frozen_string_literal: true
class SamlProviderPolicy < BasePolicy class SamlProviderPolicy < BasePolicy
rule { ~anonymous }.enable :sign_in_with_saml_provider rule { ~anonymous }.enable :sign_in_with_saml_provider
end end
# frozen_string_literal: true
class AuditEventPresenter < Gitlab::View::Presenter::Simple class AuditEventPresenter < Gitlab::View::Presenter::Simple
presents :audit_event presents :audit_event
......
# frozen_string_literal: true
module EE module EE
module Ci module Ci
module PipelinePresenter module PipelinePresenter
......
# frozen_string_literal: true
module EE module EE
module GroupMemberPresenter module GroupMemberPresenter
def group_sso? def group_sso?
......
# frozen_string_literal: true
module EE module EE
module MemberPresenter module MemberPresenter
def can_update? def can_update?
......
# frozen_string_literal: true
module EE module EE
module MergeRequestPresenter module MergeRequestPresenter
include ::VisibleApprovable include ::VisibleApprovable
......
# frozen_string_literal: true
module EE module EE
module ProjectMemberPresenter module ProjectMemberPresenter
def group_sso? def group_sso?
......
# frozen_string_literal: true
module EE module EE
module EnvironmentEntity module EnvironmentEntity
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module IssuableSidebarEntity module IssuableSidebarEntity
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module IssueSidebarEntity module IssueSidebarEntity
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module MergeRequestWidgetEntity module MergeRequestWidgetEntity
include ::API::Helpers::RelatedResourcesHelpers include ::API::Helpers::RelatedResourcesHelpers
......
# frozen_string_literal: true
module EE module EE
module ProjectMirrorEntity module ProjectMirrorEntity
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE module EE
module VariableEntity module VariableEntity
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
class EpicBaseEntity < Grape::Entity class EpicBaseEntity < Grape::Entity
include RequestAwareEntity include RequestAwareEntity
include EntityDateHelper include EntityDateHelper
......
# frozen_string_literal: true
class EpicEntity < IssuableEntity class EpicEntity < IssuableEntity
expose :group_id expose :group_id
expose :group_name do |epic| expose :group_name do |epic|
......
# frozen_string_literal: true
class EpicNoteEntity < NoteEntity class EpicNoteEntity < NoteEntity
expose :toggle_award_path, if: -> (note, _) { note.emoji_awardable? } do |note| expose :toggle_award_path, if: -> (note, _) { note.emoji_awardable? } do |note|
toggle_award_emoji_group_epic_note_path(note.noteable.group, note.noteable, note) toggle_award_emoji_group_epic_note_path(note.noteable.group, note.noteable, note)
......
# frozen_string_literal: true
class EpicNoteSerializer < BaseSerializer class EpicNoteSerializer < BaseSerializer
entity EpicNoteEntity entity EpicNoteEntity
end end
# frozen_string_literal: true
class EpicSerializer < BaseSerializer class EpicSerializer < BaseSerializer
entity EpicEntity entity EpicEntity
end end
# frozen_string_literal: true
class FileLockEntity < Grape::Entity class FileLockEntity < Grape::Entity
expose :user, using: API::Entities::UserSafe expose :user, using: API::Entities::UserSafe
end end
# frozen_string_literal: true
class GeoNodeStatusSerializer < BaseSerializer class GeoNodeStatusSerializer < BaseSerializer
entity EE::API::Entities::GeoNodeStatus entity EE::API::Entities::GeoNodeStatus
end end
# frozen_string_literal: true
class GeoProjectRegistryEntity < Grape::Entity class GeoProjectRegistryEntity < Grape::Entity
expose :project_id expose :project_id
expose :last_repository_synced_at expose :last_repository_synced_at
......
# frozen_string_literal: true
class GeoProjectRegistrySerializer < BaseSerializer class GeoProjectRegistrySerializer < BaseSerializer
entity GeoProjectRegistryEntity entity GeoProjectRegistryEntity
end end
# frozen_string_literal: true
class GroupAnalyticsSerializer < BaseSerializer class GroupAnalyticsSerializer < BaseSerializer
entity UserAnalyticsEntity entity UserAnalyticsEntity
end end
# frozen_string_literal: true
class MilestoneSerializer < BaseSerializer class MilestoneSerializer < BaseSerializer
entity API::Entities::Milestone entity API::Entities::Milestone
end end
# frozen_string_literal: true
class NamespaceEntity < Grape::Entity class NamespaceEntity < Grape::Entity
expose :id, :name, :path, :kind, :full_path, :parent_id expose :id, :name, :path, :kind, :full_path, :parent_id
end end
# frozen_string_literal: true
class PrometheusAlertEntity < Grape::Entity class PrometheusAlertEntity < Grape::Entity
include RequestAwareEntity include RequestAwareEntity
......
# frozen_string_literal: true
class PrometheusAlertSerializer < BaseSerializer class PrometheusAlertSerializer < BaseSerializer
entity PrometheusAlertEntity entity PrometheusAlertEntity
end end
# frozen_string_literal: true
class PrometheusMetricEntity < Grape::Entity class PrometheusMetricEntity < Grape::Entity
include RequestAwareEntity include RequestAwareEntity
......
# frozen_string_literal: true
class PrometheusMetricSerializer < BaseSerializer class PrometheusMetricSerializer < BaseSerializer
entity PrometheusMetricEntity entity PrometheusMetricEntity
end end
# frozen_string_literal: true
class RolloutStatusEntity < Grape::Entity class RolloutStatusEntity < Grape::Entity
include RequestAwareEntity include RequestAwareEntity
......
# frozen_string_literal: true
class StorageShardEntity < Grape::Entity class StorageShardEntity < Grape::Entity
expose :name expose :name
end end
# frozen_string_literal: true
class StorageShardSerializer < BaseSerializer class StorageShardSerializer < BaseSerializer
entity StorageShardEntity entity StorageShardEntity
end end
# frozen_string_literal: true
class TriggeredPipelineEntity < Grape::Entity class TriggeredPipelineEntity < Grape::Entity
include RequestAwareEntity include RequestAwareEntity
......
# frozen_string_literal: true
class UserAnalyticsEntity < Grape::Entity class UserAnalyticsEntity < Grape::Entity
include RequestAwareEntity include RequestAwareEntity
......
# frozen_string_literal: true
class Vulnerabilities::OccurrenceSerializer < BaseSerializer class Vulnerabilities::OccurrenceSerializer < BaseSerializer
include WithPagination include WithPagination
......
# frozen_string_literal: true
class VulnerabilitySummarySerializer < BaseSerializer class VulnerabilitySummarySerializer < BaseSerializer
entity VulnerabilitySummaryEntity entity VulnerabilitySummaryEntity
end end
# frozen_string_literal: true
module Boards module Boards
class DestroyService < Boards::BaseService class DestroyService < Boards::BaseService
def execute(board) def execute(board)
......
# frozen_string_literal: true
module Boards module Boards
class UpdateService < Boards::BaseService class UpdateService < Boards::BaseService
def execute(board) def execute(board)
......
# frozen_string_literal: true
module CiCd module CiCd
class GithubIntegrationSetupService class GithubIntegrationSetupService
attr_reader :project attr_reader :project
......
# frozen_string_literal: true
module CiCd module CiCd
class GithubSetupService class GithubSetupService
attr_reader :project attr_reader :project
......
# frozen_string_literal: true
module CiCd module CiCd
class SetupProject < ::BaseService class SetupProject < ::BaseService
def execute def execute
......
# frozen_string_literal: true
class ClearNamespaceSharedRunnersMinutesService < BaseService class ClearNamespaceSharedRunnersMinutesService < BaseService
def initialize(namespace) def initialize(namespace)
@namespace = namespace @namespace = namespace
......
# frozen_string_literal: true
module Clusters module Clusters
module Applications module Applications
class CheckUpgradeProgressService < BaseHelmService class CheckUpgradeProgressService < BaseHelmService
......
# frozen_string_literal: true
module Clusters module Clusters
module Applications module Applications
class PrometheusUpdateService < BaseHelmService class PrometheusUpdateService < BaseHelmService
......
# frozen_string_literal: true
module Clusters module Clusters
module Applications module Applications
class ScheduleUpdateService class ScheduleUpdateService
......
# frozen_string_literal: true
# Concern that encapsulates logic to remove all # Concern that encapsulates logic to remove all
# approvers in a project that were not added during # approvers in a project that were not added during
# the current transaction # the current transaction
......
# frozen_string_literal: true
module ValidatesClassificationLabel module ValidatesClassificationLabel
def validate_classification_label(record, attribute_name) def validate_classification_label(record, attribute_name)
return unless EE::Gitlab::ExternalAuthorization.enabled? return unless EE::Gitlab::ExternalAuthorization.enabled?
......
# frozen_string_literal: true
module EE module EE
module ApplicationSettings module ApplicationSettings
module UpdateService module UpdateService
......
# frozen_string_literal: true
module EE module EE
module Applications module Applications
# rubocop:disable Gitlab/ModuleWithInstanceVariables # rubocop:disable Gitlab/ModuleWithInstanceVariables
......
# frozen_string_literal: true
module EE module EE
module AuditEventService module AuditEventService
# rubocop:disable Gitlab/ModuleWithInstanceVariables # rubocop:disable Gitlab/ModuleWithInstanceVariables
......
# frozen_string_literal: true
module EE module EE
module BaseCountService module BaseCountService
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module EE module EE
module Boards module Boards
module BaseService module BaseService
......
# frozen_string_literal: true
module EE module EE
module Boards module Boards
module CreateService module CreateService
......
# frozen_string_literal: true
module EE module EE
module Boards module Boards
module Issues module Issues
......
# frozen_string_literal: true
module EE module EE
module Boards module Boards
module Issues module Issues
......
# frozen_string_literal: true
module EE module EE
module Boards module Boards
module Issues module Issues
......
# frozen_string_literal: true
module EE module EE
module Boards module Boards
module ListService module ListService
......
# frozen_string_literal: true
module EE module EE
module Boards module Boards
module Lists module Lists
......
# frozen_string_literal: true
module EE module EE
module Boards module Boards
module Lists module Lists
......
# frozen_string_literal: true
module EE module EE
module Ci module Ci
# RegisterJobService EE mixin # RegisterJobService EE mixin
......
# frozen_string_literal: true
module EE module EE
module Clusters module Clusters
module Applications module Applications
......
# frozen_string_literal: true
module EE module EE
module Clusters module Clusters
module CreateService module CreateService
......
# frozen_string_literal: true
module EE module EE
module Commits module Commits
module CreateService module CreateService
......
# frozen_string_literal: true
module EE module EE
module Emails module Emails
module BaseService module BaseService
......
# frozen_string_literal: true
module EE module EE
module Emails module Emails
module CreateService module CreateService
......
# frozen_string_literal: true
module EE module EE
module Emails module Emails
module DestroyService module DestroyService
......
# frozen_string_literal: true
module EE module EE
module Groups module Groups
module CreateService module CreateService
......
# frozen_string_literal: true
module EE module EE
module Groups module Groups
module DestroyService module DestroyService
......
# frozen_string_literal: true
module EE module EE
module Groups module Groups
module UpdateService module UpdateService
......
# frozen_string_literal: true
module EE module EE
module Issuable module Issuable
module CommonSystemNotesService module CommonSystemNotesService
......
# frozen_string_literal: true
module EE module EE
module IssuableBaseService module IssuableBaseService
private private
......
# frozen_string_literal: true
module EE module EE
module Issues module Issues
module BuildService module BuildService
......
# frozen_string_literal: true
module EE module EE
module Issues module Issues
module MoveService module MoveService
......
# frozen_string_literal: true
module EE module EE
module Keys module Keys
module CreateService module CreateService
......
# frozen_string_literal: true
module EE module EE
module Keys module Keys
module DestroyService module DestroyService
......
# frozen_string_literal: true
module EE module EE
module Lfs module Lfs
module LockFileService module LockFileService
......
# frozen_string_literal: true
module EE module EE
module Lfs module Lfs
module UnlockFileService module UnlockFileService
......
# frozen_string_literal: true
module EE module EE
module Members module Members
module ApproveAccessRequestService module ApproveAccessRequestService
......
# frozen_string_literal: true
module EE module EE
module Members module Members
module CreateService module CreateService
......
# frozen_string_literal: true
module EE module EE
module Members module Members
module DestroyService module DestroyService
......
# frozen_string_literal: true
module EE module EE
module Members module Members
module UpdateService module UpdateService
......
# frozen_string_literal: true
module EE module EE
module MergeRequests module MergeRequests
module BaseService module BaseService
......
# frozen_string_literal: true
module EE module EE
module MergeRequests module MergeRequests
module BuildService module BuildService
......
# frozen_string_literal: true
module EE module EE
module MergeRequests module MergeRequests
module MergeService module MergeService
......
# frozen_string_literal: true
module EE module EE
module MergeRequests module MergeRequests
module RefreshService module RefreshService
......
# frozen_string_literal: true
module EE module EE
module MergeRequests module MergeRequests
module UpdateService module UpdateService
......
# frozen_string_literal: true
module EE module EE
module Milestones module Milestones
module PromoteService module PromoteService
......
# frozen_string_literal: true
module EE module EE
module Notes module Notes
module BuildService module BuildService
......
# frozen_string_literal: true
require 'ee/gitlab/service_desk' require 'ee/gitlab/service_desk'
module EE module EE
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module CreateFromTemplateService module CreateFromTemplateService
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module CreateService module CreateService
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module DestroyService module DestroyService
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module GitlabProjectsImportService module GitlabProjectsImportService
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module GroupLinks module GroupLinks
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module GroupLinks module GroupLinks
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module HashedStorage module HashedStorage
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module HashedStorage module HashedStorage
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module TransferService module TransferService
......
# frozen_string_literal: true
module EE module EE
module Projects module Projects
module UpdateService module UpdateService
......
# frozen_string_literal: true
module EE module EE
module ProtectedBranches module ProtectedBranches
module AccessLevelParams module AccessLevelParams
......
# frozen_string_literal: true
module EE module EE
module ProtectedBranches module ProtectedBranches
module ApiService module ApiService
......
# frozen_string_literal: true
module EE module EE
module QuickActions module QuickActions
module InterpretService module InterpretService
......
# frozen_string_literal: true
module EE module EE
module SystemHooksService module SystemHooksService
# override # override
......
# frozen_string_literal: true
# SystemNoteService # SystemNoteService
# #
# Used for creating system notes (e.g., when a user references a merge request # Used for creating system notes (e.g., when a user references a merge request
......
# frozen_string_literal: true
module EE module EE
module TodoService module TodoService
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module EE module EE
module UserProjectAccessChangedService module UserProjectAccessChangedService
def execute(blocking: true) def execute(blocking: true)
......
# frozen_string_literal: true
module EE module EE
module Users module Users
module BuildService module BuildService
......
# frozen_string_literal: true
module EE module EE
module Users module Users
module DestroyService module DestroyService
......
# frozen_string_literal: true
module EE module EE
module Users module Users
module MigrateToGhostUserService module MigrateToGhostUserService
......
# frozen_string_literal: true
module EE module EE
module Users module Users
module UpdateService module UpdateService
......
# frozen_string_literal: true
module EE module EE
module WikiPages module WikiPages
# BaseService EE mixin # BaseService EE mixin
......
# frozen_string_literal: true
module EpicIssues module EpicIssues
class CreateService < IssuableLinks::CreateService class CreateService < IssuableLinks::CreateService
private private
......
# frozen_string_literal: true
module EpicIssues module EpicIssues
class DestroyService < IssuableLinks::DestroyService class DestroyService < IssuableLinks::DestroyService
def execute def execute
......
# frozen_string_literal: true
module EpicIssues module EpicIssues
class ListService < IssuableLinks::ListService class ListService < IssuableLinks::ListService
private private
......
# frozen_string_literal: true
module EpicIssues module EpicIssues
class UpdateService < BaseService class UpdateService < BaseService
attr_reader :epic_issue, :current_user, :params attr_reader :epic_issue, :current_user, :params
......
# frozen_string_literal: true
module Epics module Epics
class BaseService < IssuableBaseService class BaseService < IssuableBaseService
attr_reader :group attr_reader :group
......
# frozen_string_literal: true
module Epics module Epics
class CreateService < Epics::BaseService class CreateService < Epics::BaseService
def execute def execute
......
# frozen_string_literal: true
module Epics module Epics
class UpdateService < Epics::BaseService class UpdateService < Epics::BaseService
EPIC_DATE_FIELDS = %I[ EPIC_DATE_FIELDS = %I[
......
# frozen_string_literal: true
class FetchSubscriptionPlansService class FetchSubscriptionPlansService
URL = 'https://customers.gitlab.com/gitlab_plans'.freeze URL = 'https://customers.gitlab.com/gitlab_plans'.freeze
......
# frozen_string_literal: true
module Geo module Geo
class BaseNotify class BaseNotify
def notify(notify_url, content) def notify(notify_url, content)
......
# frozen_string_literal: true
require 'securerandom' require 'securerandom'
module Geo module Geo
......
# frozen_string_literal: true
module Geo module Geo
# Base class for event store classes. # Base class for event store classes.
# #
......
# frozen_string_literal: true
module Geo module Geo
# This class is responsible for: # This class is responsible for:
# * Handling file requests from the secondary over the API # * Handling file requests from the secondary over the API
......
# frozen_string_literal: true
module Geo module Geo
class FilesExpireService class FilesExpireService
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
# frozen_string_literal: true
module Geo module Geo
class HashedStorageAttachmentsEventStore < EventStore class HashedStorageAttachmentsEventStore < EventStore
self.event_type = :hashed_storage_attachments_event self.event_type = :hashed_storage_attachments_event
......
# frozen_string_literal: true
module Geo module Geo
AttachmentMigrationError = Class.new(StandardError) AttachmentMigrationError = Class.new(StandardError)
......
# frozen_string_literal: true
module Geo module Geo
class HashedStorageMigratedEventStore < EventStore class HashedStorageMigratedEventStore < EventStore
self.event_type = :hashed_storage_migrated_event self.event_type = :hashed_storage_migrated_event
......
# frozen_string_literal: true
module Geo module Geo
class HashedStorageMigrationService class HashedStorageMigrationService
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
# frozen_string_literal: true
module Geo module Geo
class JobArtifactDeletedEventStore < EventStore class JobArtifactDeletedEventStore < EventStore
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module Geo module Geo
class LfsObjectDeletedEventStore < EventStore class LfsObjectDeletedEventStore < EventStore
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module Geo module Geo
class MetricsUpdateService class MetricsUpdateService
METRIC_PREFIX = 'geo_'.freeze METRIC_PREFIX = 'geo_'.freeze
......
# frozen_string_literal: true
module Geo module Geo
RepositoryCannotBeRenamed = Class.new(StandardError) RepositoryCannotBeRenamed = Class.new(StandardError)
......
# frozen_string_literal: true
module Geo module Geo
class NodeCreateService class NodeCreateService
attr_reader :params attr_reader :params
......
# frozen_string_literal: true
module Geo module Geo
class NodeStatusPostService class NodeStatusPostService
include Gitlab::Geo::LogHelpers include Gitlab::Geo::LogHelpers
......
# frozen_string_literal: true
module Geo module Geo
class NodeUpdateService class NodeUpdateService
attr_reader :geo_node, :old_namespace_ids, :old_shards, :params attr_reader :geo_node, :old_namespace_ids, :old_shards, :params
......
# frozen_string_literal: true
# Geo::ProjectHousekeepingService class # Geo::ProjectHousekeepingService class
# #
# Used for git housekeeping in Geo Secondary node # Used for git housekeeping in Geo Secondary node
......
# frozen_string_literal: true
module Geo module Geo
class RenameRepositoryService class RenameRepositoryService
attr_reader :project_id, :old_disk_path, :new_disk_path attr_reader :project_id, :old_disk_path, :new_disk_path
......
# frozen_string_literal: true
module Geo module Geo
class RepositoriesChangedEventStore < EventStore class RepositoriesChangedEventStore < EventStore
self.event_type = :repositories_changed_event self.event_type = :repositories_changed_event
......
# frozen_string_literal: true
module Geo module Geo
class RepositoryCreatedEventStore < EventStore class RepositoryCreatedEventStore < EventStore
self.event_type = :repository_created_event self.event_type = :repository_created_event
......
# frozen_string_literal: true
module Geo module Geo
class RepositoryDeletedEventStore < EventStore class RepositoryDeletedEventStore < EventStore
self.event_type = :repository_deleted_event self.event_type = :repository_deleted_event
......
# frozen_string_literal: true
module Geo module Geo
class RepositoryDestroyService class RepositoryDestroyService
include ::Gitlab::Geo::LogHelpers include ::Gitlab::Geo::LogHelpers
......
# frozen_string_literal: true
module Geo module Geo
class RepositoryRenamedEventStore < EventStore class RepositoryRenamedEventStore < EventStore
self.event_type = :repository_renamed_event self.event_type = :repository_renamed_event
......
# frozen_string_literal: true
module Geo module Geo
class RepositorySyncService < BaseSyncService class RepositorySyncService < BaseSyncService
self.type = :repository self.type = :repository
......
# frozen_string_literal: true
module Geo module Geo
class RepositoryUpdatedEventStore < EventStore class RepositoryUpdatedEventStore < EventStore
self.event_type = :repository_updated_event self.event_type = :repository_updated_event
......
# frozen_string_literal: true
module Geo module Geo
class RepositoryUpdatedService class RepositoryUpdatedService
include ::Gitlab::Geo::ProjectLogHelpers include ::Gitlab::Geo::ProjectLogHelpers
......
# frozen_string_literal: true
module Geo module Geo
class UploadDeletedEventStore < EventStore class UploadDeletedEventStore < EventStore
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module Geo module Geo
class WikiSyncService < BaseSyncService class WikiSyncService < BaseSyncService
self.type = :wiki self.type = :wiki
......
# frozen_string_literal: true
module Groups module Groups
class AutocompleteService < Groups::BaseService class AutocompleteService < Groups::BaseService
include LabelsAsHash include LabelsAsHash
......
# frozen_string_literal: true
module Groups module Groups
class ParticipantsService < Groups::BaseService class ParticipantsService < Groups::BaseService
include Users::ParticipableService include Users::ParticipableService
......
# frozen_string_literal: true
module IssuableLinks module IssuableLinks
class CreateService < BaseService class CreateService < BaseService
attr_reader :issuable, :current_user, :params attr_reader :issuable, :current_user, :params
......
# frozen_string_literal: true
module IssuableLinks module IssuableLinks
class DestroyService < BaseService class DestroyService < BaseService
attr_reader :link, :current_user attr_reader :link, :current_user
......
# frozen_string_literal: true
module IssuableLinks module IssuableLinks
class ListService class ListService
include Gitlab::Routing include Gitlab::Routing
......
# frozen_string_literal: true
module IssueLinks module IssueLinks
class CreateService < IssuableLinks::CreateService class CreateService < IssuableLinks::CreateService
def relate_issuables(referenced_issue) def relate_issuables(referenced_issue)
......
# frozen_string_literal: true
module IssueLinks module IssueLinks
class DestroyService < IssuableLinks::DestroyService class DestroyService < IssuableLinks::DestroyService
private private
......
# frozen_string_literal: true
module IssueLinks module IssueLinks
class ListService < IssuableLinks::ListService class ListService < IssuableLinks::ListService
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
......
# frozen_string_literal: true
module Issues module Issues
class CreateFromVulnerabilityDataService < ::BaseService class CreateFromVulnerabilityDataService < ::BaseService
def execute def execute
......
# frozen_string_literal: true
module Issues module Issues
class ExportCsvService class ExportCsvService
include Gitlab::Routing.url_helpers include Gitlab::Routing.url_helpers
......
# frozen_string_literal: true
class LdapGroupResetService class LdapGroupResetService
def execute(group, current_user) def execute(group, current_user)
# Only for ldap connected users # Only for ldap connected users
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class ApprovalService < MergeRequests::BaseService class ApprovalService < MergeRequests::BaseService
def execute(merge_request) def execute(merge_request)
......
# frozen_string_literal: true
module MergeRequests module MergeRequests
class RemoveApprovalService < MergeRequests::BaseService class RemoveApprovalService < MergeRequests::BaseService
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
# frozen_string_literal: true
module PathLocks module PathLocks
class LockService < BaseService class LockService < BaseService
AccessDenied = Class.new(StandardError) AccessDenied = Class.new(StandardError)
......
# frozen_string_literal: true
module PathLocks module PathLocks
class UnlockService < BaseService class UnlockService < BaseService
AccessDenied = Class.new(StandardError) AccessDenied = Class.new(StandardError)
......
# frozen_string_literal: true
module Projects module Projects
module Prometheus module Prometheus
module Metrics module Metrics
......
# frozen_string_literal: true
module Projects module Projects
module Prometheus module Prometheus
module Metrics module Metrics
......
# frozen_string_literal: true
module Projects module Projects
module Prometheus module Prometheus
module Metrics module Metrics
......
# frozen_string_literal: true
module Projects module Projects
class SetupCiCd < BaseService class SetupCiCd < BaseService
def execute def execute
......
# frozen_string_literal: true
module Projects module Projects
class SlackApplicationInstallService < BaseService class SlackApplicationInstallService < BaseService
include Gitlab::Routing include Gitlab::Routing
......
# frozen_string_literal: true
module Projects module Projects
class UpdateMirrorService < BaseService class UpdateMirrorService < BaseService
Error = Class.new(StandardError) Error = Class.new(StandardError)
......
# frozen_string_literal: true
module Projects module Projects
class UpdateRepositoryStorageService < BaseService class UpdateRepositoryStorageService < BaseService
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
......
# frozen_string_literal: true
module SlashCommands module SlashCommands
class GlobalSlackHandler class GlobalSlackHandler
attr_reader :project_alias, :params attr_reader :project_alias, :params
......
# frozen_string_literal: true
class UpdateBuildMinutesService < BaseService class UpdateBuildMinutesService < BaseService
def execute(build) def execute(build)
return unless build.shared_runners_minutes_limit_enabled? return unless build.shared_runners_minutes_limit_enabled?
......
# frozen_string_literal: true
module VulnerabilityFeedbackModule module VulnerabilityFeedbackModule
class CreateService < ::BaseService class CreateService < ::BaseService
def execute def execute
......
# frozen_string_literal: true
module VulnerabilityFeedbackModule module VulnerabilityFeedbackModule
class DestroyService < ::BaseService class DestroyService < ::BaseService
def initialize(vulnerability_feedback) def initialize(vulnerability_feedback)
......
# frozen_string_literal: true
module EE module EE
module ObjectStorage module ObjectStorage
module Concern module Concern
......
# frozen_string_literal: true
# HostnameValidator # HostnameValidator
# #
# Custom validator for Hosts. # Custom validator for Hosts.
......
# frozen_string_literal: true
# LdapFilteralidator # LdapFilteralidator
# #
# Custom validator for LDAP filters # Custom validator for LDAP filters
......
# frozen_string_literal: true
class UntrustedRegexpValidator < ActiveModel::EachValidator class UntrustedRegexpValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value) def validate_each(record, attribute, value)
return unless value return unless value
......
# frozen_string_literal: true
# X509CertificateCredentialsValidator # X509CertificateCredentialsValidator
# #
# Custom validator to check if certificate-attribute was signed using the # Custom validator to check if certificate-attribute was signed using the
......
# frozen_string_literal: true
class AdminEmailsWorker class AdminEmailsWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
class ClearSharedRunnersMinutesWorker class ClearSharedRunnersMinutesWorker
LEASE_TIMEOUT = 3600 LEASE_TIMEOUT = 3600
......
# frozen_string_literal: true
class ClusterUpdateAppWorker class ClusterUpdateAppWorker
UpdateAlreadyInProgressError = Class.new(StandardError) UpdateAlreadyInProgressError = Class.new(StandardError)
......
# frozen_string_literal: true
class ClusterWaitForAppUpdateWorker class ClusterWaitForAppUpdateWorker
include ApplicationWorker include ApplicationWorker
include ClusterQueue include ClusterQueue
......
# frozen_string_literal: true
# Concern for setting Sidekiq settings for the various GitLab GEO workers. # Concern for setting Sidekiq settings for the various GitLab GEO workers.
module GeoQueue module GeoQueue
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
class CreateGithubWebhookWorker class CreateGithubWebhookWorker
include ApplicationWorker include ApplicationWorker
include GrapePathHelpers::NamedRouteMatcher include GrapePathHelpers::NamedRouteMatcher
......
# frozen_string_literal: true
module EE module EE
module BuildFinishedWorker module BuildFinishedWorker
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
# frozen_string_literal: true
module EE module EE
# PostReceive EE mixin # PostReceive EE mixin
# #
......
# frozen_string_literal: true
module EE module EE
module RepositoryCheck module RepositoryCheck
module BatchWorker module BatchWorker
......
# frozen_string_literal: true
module EE module EE
module RepositoryCheck module RepositoryCheck
module SingleRepositoryWorker module SingleRepositoryWorker
......
# frozen_string_literal: true
module EE module EE
module RepositoryImportWorker module RepositoryImportWorker
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
class ElasticBatchProjectIndexerWorker class ElasticBatchProjectIndexerWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
class ElasticCommitIndexerWorker class ElasticCommitIndexerWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
class ExportCsvWorker class ExportCsvWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class FileDownloadDispatchWorker < Geo::Scheduler::Secondary::SchedulerWorker class FileDownloadDispatchWorker < Geo::Scheduler::Secondary::SchedulerWorker
include CronjobQueue include CronjobQueue
......
# frozen_string_literal: true
module Geo module Geo
class FileDownloadDispatchWorker class FileDownloadDispatchWorker
class AttachmentJobFinder < JobFinder class AttachmentJobFinder < JobFinder
......
# frozen_string_literal: true
module Geo module Geo
class FileDownloadDispatchWorker class FileDownloadDispatchWorker
class JobArtifactJobFinder < JobFinder class JobArtifactJobFinder < JobFinder
......
# frozen_string_literal: true
module Geo module Geo
class FileDownloadDispatchWorker class FileDownloadDispatchWorker
# This class is meant to be inherited, and is responsible for generating # This class is meant to be inherited, and is responsible for generating
......
# frozen_string_literal: true
module Geo module Geo
class FileDownloadDispatchWorker class FileDownloadDispatchWorker
class LfsObjectJobFinder < JobFinder class LfsObjectJobFinder < JobFinder
......
# frozen_string_literal: true
module Geo module Geo
class FileDownloadWorker class FileDownloadWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class FileRegistryRemovalWorker class FileRegistryRemovalWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class FileRemovalWorker class FileRemovalWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class HashedStorageAttachmentsMigrationWorker class HashedStorageAttachmentsMigrationWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class HashedStorageMigrationWorker class HashedStorageMigrationWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class MetricsUpdateWorker class MetricsUpdateWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class MigratedLocalFilesCleanUpWorker < ::Geo::Scheduler::Secondary::SchedulerWorker class MigratedLocalFilesCleanUpWorker < ::Geo::Scheduler::Secondary::SchedulerWorker
include ::CronjobQueue include ::CronjobQueue
......
# frozen_string_literal: true
module Geo module Geo
class ProjectSyncWorker class ProjectSyncWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class RenameRepositoryWorker class RenameRepositoryWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class RepositoriesCleanUpWorker class RepositoriesCleanUpWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
module Geo module Geo
class RepositoryShardSyncWorker < Geo::Scheduler::Secondary::SchedulerWorker class RepositoryShardSyncWorker < Geo::Scheduler::Secondary::SchedulerWorker
sidekiq_options retry: false sidekiq_options retry: false
......
# frozen_string_literal: true
module Geo module Geo
class RepositorySyncWorker < Geo::Scheduler::Secondary::PerShardSchedulerWorker class RepositorySyncWorker < Geo::Scheduler::Secondary::PerShardSchedulerWorker
def schedule_job(shard_name) def schedule_job(shard_name)
......
# frozen_string_literal: true
module Geo module Geo
module RepositoryVerification module RepositoryVerification
module Primary module Primary
......
# frozen_string_literal: true
module Geo module Geo
module RepositoryVerification module RepositoryVerification
module Primary module Primary
......
# frozen_string_literal: true
module Geo module Geo
module RepositoryVerification module RepositoryVerification
module Primary module Primary
......
# frozen_string_literal: true
module Geo module Geo
module RepositoryVerification module RepositoryVerification
module Secondary module Secondary
......
# frozen_string_literal: true
module Geo module Geo
module RepositoryVerification module RepositoryVerification
module Secondary module Secondary
......
# frozen_string_literal: true
module Geo module Geo
module RepositoryVerification module RepositoryVerification
module Secondary module Secondary
......
# frozen_string_literal: true
module Geo module Geo
module Scheduler module Scheduler
class PerShardSchedulerWorker class PerShardSchedulerWorker
......
# frozen_string_literal: true
module Geo module Geo
module Scheduler module Scheduler
module Primary module Primary
......
# frozen_string_literal: true
module Geo module Geo
module Scheduler module Scheduler
module Primary module Primary
......
# frozen_string_literal: true
module Geo module Geo
module Scheduler module Scheduler
class SchedulerWorker class SchedulerWorker
......
# frozen_string_literal: true
module Geo module Geo
module Scheduler module Scheduler
module Secondary module Secondary
......
# frozen_string_literal: true
module Geo module Geo
module Scheduler module Scheduler
module Secondary module Secondary
......
# frozen_string_literal: true
module Geo module Geo
class SidekiqCronConfigWorker class SidekiqCronConfigWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
class GeoRepositoryDestroyWorker class GeoRepositoryDestroyWorker
include ApplicationWorker include ApplicationWorker
include GeoQueue include GeoQueue
......
# frozen_string_literal: true
class HistoricalDataWorker class HistoricalDataWorker
include ApplicationWorker include ApplicationWorker
include CronjobQueue include CronjobQueue
......
# frozen_string_literal: true
class LdapAllGroupsSyncWorker class LdapAllGroupsSyncWorker
include ApplicationWorker include ApplicationWorker
include CronjobQueue include CronjobQueue
......
# frozen_string_literal: true
class LdapGroupSyncWorker class LdapGroupSyncWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
class LdapSyncWorker class LdapSyncWorker
include ApplicationWorker include ApplicationWorker
include CronjobQueue include CronjobQueue
......
# frozen_string_literal: true
class ProjectImportScheduleWorker class ProjectImportScheduleWorker
ImportStateNotFound = Class.new(StandardError) ImportStateNotFound = Class.new(StandardError)
......
# frozen_string_literal: true
class ProjectUpdateRepositoryStorageWorker class ProjectUpdateRepositoryStorageWorker
include ApplicationWorker include ApplicationWorker
......
# frozen_string_literal: true
class PseudonymizerWorker class PseudonymizerWorker
include ApplicationWorker include ApplicationWorker
include CronjobQueue include CronjobQueue
......
# frozen_string_literal: true
class RepositoryUpdateMirrorWorker class RepositoryUpdateMirrorWorker
UpdateError = Class.new(StandardError) UpdateError = Class.new(StandardError)
......
# frozen_string_literal: true
class UpdateAllMirrorsWorker class UpdateAllMirrorsWorker
include ApplicationWorker include ApplicationWorker
include CronjobQueue include CronjobQueue
......
---
title: Enable some frozen string in ee/app
merge_request:
author: gfyoung
type: performance
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