Commit 08a8207a authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Fix constant lookup issue for `Vulnerabilities::BaseService`

parent d8af8dd1
# 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