Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
08a8207a
Commit
08a8207a
authored
Oct 01, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix constant lookup issue for `Vulnerabilities::BaseService`
parent
d8af8dd1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
ee/app/services/vulnerabilities/confirm_service.rb
ee/app/services/vulnerabilities/confirm_service.rb
+2
-2
ee/app/services/vulnerabilities/dismiss_service.rb
ee/app/services/vulnerabilities/dismiss_service.rb
+2
-2
ee/app/services/vulnerabilities/resolve_service.rb
ee/app/services/vulnerabilities/resolve_service.rb
+2
-0
ee/app/services/vulnerabilities/revert_to_detected_service.rb
...pp/services/vulnerabilities/revert_to_detected_service.rb
+2
-2
No files found.
ee/app/services/vulnerabilities/confirm_service.rb
View file @
08a8207a
# frozen_string_literal: true
require_dependency
'vulnerabilities/base_service'
module
Vulnerabilities
class
ConfirmService
<
BaseService
include
Gitlab
::
Allowable
def
execute
raise
Gitlab
::
Access
::
AccessDeniedError
unless
authorized?
...
...
ee/app/services/vulnerabilities/dismiss_service.rb
View file @
08a8207a
# frozen_string_literal: true
require_dependency
'vulnerabilities/base_service'
module
Vulnerabilities
class
DismissService
<
BaseService
include
Gitlab
::
Allowable
FindingsDismissResult
=
Struct
.
new
(
:ok?
,
:finding
,
:message
)
def
initialize
(
current_user
,
vulnerability
,
comment
=
nil
)
...
...
ee/app/services/vulnerabilities/resolve_service.rb
View file @
08a8207a
# frozen_string_literal: true
require_dependency
'vulnerabilities/base_service'
module
Vulnerabilities
class
ResolveService
<
BaseService
def
execute
...
...
ee/app/services/vulnerabilities/revert_to_detected_service.rb
View file @
08a8207a
# frozen_string_literal: true
require_dependency
'vulnerabilities/base_service'
module
Vulnerabilities
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
def
execute
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment