Commit b55e78ed authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'fix_constant_lookup_for_vulnerabilities_services' into 'master'

Fix constant lookup issue for `Vulnerabilities::BaseService`

See merge request gitlab-org/gitlab!43946
parents 93758584 08a8207a
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'vulnerabilities/base_service'
module Vulnerabilities module Vulnerabilities
class ConfirmService < BaseService class ConfirmService < BaseService
include Gitlab::Allowable
def execute def execute
raise Gitlab::Access::AccessDeniedError unless authorized? raise Gitlab::Access::AccessDeniedError unless authorized?
......
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'vulnerabilities/base_service'
module Vulnerabilities module Vulnerabilities
class DismissService < BaseService class DismissService < BaseService
include Gitlab::Allowable
FindingsDismissResult = Struct.new(:ok?, :finding, :message) FindingsDismissResult = Struct.new(:ok?, :finding, :message)
def initialize(current_user, vulnerability, comment = nil) def initialize(current_user, vulnerability, comment = nil)
......
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'vulnerabilities/base_service'
module Vulnerabilities module Vulnerabilities
class ResolveService < BaseService class ResolveService < BaseService
def execute def execute
......
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'vulnerabilities/base_service'
module Vulnerabilities module Vulnerabilities
class RevertToDetectedService < BaseService class RevertToDetectedService < BaseService
include Gitlab::Allowable
REVERT_PARAMS = { resolved_by: nil, resolved_at: nil, dismissed_by: nil, dismissed_at: nil, confirmed_by: nil, confirmed_at: nil }.freeze REVERT_PARAMS = { resolved_by: nil, resolved_at: nil, dismissed_by: nil, dismissed_at: nil, confirmed_by: nil, confirmed_at: nil }.freeze
def execute def execute
......
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