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
ae532fdf
Commit
ae532fdf
authored
Dec 14, 2020
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move methods out of prepend block
parent
89a340bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
ee/app/graphql/ee/types/project_type.rb
ee/app/graphql/ee/types/project_type.rb
+21
-21
No files found.
ee/app/graphql/ee/types/project_type.rb
View file @
ae532fdf
...
...
@@ -126,35 +126,35 @@ module EE
null:
true
,
description:
'Incident Management On-call schedules of the project'
,
resolver:
::
Resolvers
::
IncidentManagement
::
OncallScheduleResolver
end
def
dast_scanner_profiles
DastScannerProfilesFinder
.
new
(
project_ids:
[
object
.
id
]).
execute
end
def
dast_scanner_profiles
DastScannerProfilesFinder
.
new
(
project_ids:
[
object
.
id
]).
execute
end
def
requirement_states_count
return
unless
Ability
.
allowed?
(
current_user
,
:read_requirement
,
object
)
def
requirement_states_count
return
unless
Ability
.
allowed?
(
current_user
,
:read_requirement
,
object
)
Hash
.
new
(
0
).
merge
(
object
.
requirements
.
counts_by_state
)
end
Hash
.
new
(
0
).
merge
(
object
.
requirements
.
counts_by_state
)
end
def
sast_ci_configuration
return
unless
Ability
.
allowed?
(
current_user
,
:download_code
,
object
)
def
sast_ci_configuration
return
unless
Ability
.
allowed?
(
current_user
,
:download_code
,
object
)
::
Security
::
CiConfiguration
::
SastParserService
.
new
(
object
).
configuration
end
::
Security
::
CiConfiguration
::
SastParserService
.
new
(
object
).
configuration
end
def
security_dashboard_path
Rails
.
application
.
routes
.
url_helpers
.
project_security_dashboard_index_path
(
object
)
end
def
security_dashboard_path
Rails
.
application
.
routes
.
url_helpers
.
project_security_dashboard_index_path
(
object
)
end
def
compliance_frameworks
BatchLoader
::
GraphQL
.
for
(
object
.
id
).
batch
(
default_value:
[])
do
|
project_ids
,
loader
|
results
=
::
ComplianceManagement
::
Framework
.
with_projects
(
project_ids
)
def
compliance_frameworks
BatchLoader
::
GraphQL
.
for
(
object
.
id
).
batch
(
default_value:
[])
do
|
project_ids
,
loader
|
results
=
::
ComplianceManagement
::
Framework
.
with_projects
(
project_ids
)
results
.
each
do
|
framework
|
framework
.
project_ids
.
each
do
|
project_id
|
loader
.
call
(
project_id
)
{
|
xs
|
xs
<<
framework
}
end
results
.
each
do
|
framework
|
framework
.
project_ids
.
each
do
|
project_id
|
loader
.
call
(
project_id
)
{
|
xs
|
xs
<<
framework
}
end
end
end
...
...
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