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
5dbff37a
Commit
5dbff37a
authored
Feb 03, 2022
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Query DAST profiles and scheduled profiles individually
parent
84a7aac8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/app/helpers/projects/on_demand_scans_helper.rb
ee/app/helpers/projects/on_demand_scans_helper.rb
+3
-3
No files found.
ee/app/helpers/projects/on_demand_scans_helper.rb
View file @
5dbff37a
...
@@ -6,8 +6,8 @@ module Projects::OnDemandScansHelper
...
@@ -6,8 +6,8 @@ module Projects::OnDemandScansHelper
pipelines_counter
=
Gitlab
::
PipelineScopeCounts
.
new
(
current_user
,
project
,
{
pipelines_counter
=
Gitlab
::
PipelineScopeCounts
.
new
(
current_user
,
project
,
{
source:
"ondemand_dast_scan"
source:
"ondemand_dast_scan"
})
})
s
aved_scans
=
::
Dast
::
ProfilesFinder
.
new
({
project_id:
project
.
id
}).
execute
s
cheduled_scans_count
=
::
Dast
::
ProfilesFinder
.
new
({
project_id:
project
.
id
,
has_dast_profile_schedule:
true
}).
execute
.
count
s
cheduled_scans_count
=
saved_scans
.
count
{
|
scan
|
scan
.
dast_profile_schedule
}
s
aved_scans_count
=
::
Dast
::
ProfilesFinder
.
new
({
project_id:
project
.
id
}).
execute
.
count
common_data
(
project
).
merge
({
common_data
(
project
).
merge
({
'project-on-demand-scan-counts-etag'
=>
graphql_etag_project_on_demand_scan_counts_path
(
project
),
'project-on-demand-scan-counts-etag'
=>
graphql_etag_project_on_demand_scan_counts_path
(
project
),
...
@@ -16,7 +16,7 @@ module Projects::OnDemandScansHelper
...
@@ -16,7 +16,7 @@ module Projects::OnDemandScansHelper
running:
pipelines_counter
.
running
,
running:
pipelines_counter
.
running
,
finished:
pipelines_counter
.
finished
,
finished:
pipelines_counter
.
finished
,
scheduled:
scheduled_scans_count
,
scheduled:
scheduled_scans_count
,
saved:
saved_scans
.
count
saved:
saved_scans
_
count
}.
to_json
,
}.
to_json
,
'new-dast-scan-path'
=>
new_project_on_demand_scan_path
(
project
),
'new-dast-scan-path'
=>
new_project_on_demand_scan_path
(
project
),
'empty-state-svg-path'
=>
image_path
(
'illustrations/empty-state/ondemand-scan-empty.svg'
),
'empty-state-svg-path'
=>
image_path
(
'illustrations/empty-state/ondemand-scan-empty.svg'
),
...
...
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