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
32bd255a
Commit
32bd255a
authored
Apr 12, 2021
by
Savas Vedova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify group and instance level security dashboards
parent
336a058f
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
386 additions
and
251 deletions
+386
-251
ee/app/assets/javascripts/security_dashboard/components/first_class_instance_security_dashboard.vue
...rd/components/first_class_instance_security_dashboard.vue
+0
-90
ee/app/assets/javascripts/security_dashboard/components/group_security_charts.vue
...s/security_dashboard/components/group_security_charts.vue
+1
-1
ee/app/assets/javascripts/security_dashboard/components/vulnerability_report.vue
...ts/security_dashboard/components/vulnerability_report.vue
+123
-0
ee/app/assets/javascripts/security_dashboard/graphql/queries/vulnerable_projects_group.query.graphql
...d/graphql/queries/vulnerable_projects_group.query.graphql
+1
-1
ee/app/assets/javascripts/security_dashboard/graphql/queries/vulnerable_projects_instance.query.graphql
...raphql/queries/vulnerable_projects_instance.query.graphql
+10
-0
ee/app/assets/javascripts/security_dashboard/vulnerability_report_init.js
...vascripts/security_dashboard/vulnerability_report_init.js
+5
-5
ee/spec/frontend/security_dashboard/components/first_class_group_security_dashboard_spec.js
...d/components/first_class_group_security_dashboard_spec.js
+0
-154
ee/spec/frontend/security_dashboard/components/vulnerability_report_spec.js
...ecurity_dashboard/components/vulnerability_report_spec.js
+216
-0
ee/spec/frontend/security_dashboard/mock_data/index.js
ee/spec/frontend/security_dashboard/mock_data/index.js
+30
-0
No files found.
ee/app/assets/javascripts/security_dashboard/components/first_class_instance_security_dashboard.vue
deleted
100644 → 0
View file @
336a058f
<
script
>
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
Filters
from
'
ee/security_dashboard/components/first_class_vulnerability_filters.vue
'
;
import
SecurityDashboardLayout
from
'
ee/security_dashboard/components/security_dashboard_layout.vue
'
;
import
instanceProjectsQuery
from
'
ee/security_dashboard/graphql/queries/instance_projects.query.graphql
'
;
import
createFlash
from
'
~/flash
'
;
import
{
vulnerabilitiesSeverityCountScopes
}
from
'
../constants
'
;
import
{
PROJECT_LOADING_ERROR_MESSAGE
}
from
'
../helpers
'
;
import
CsvExportButton
from
'
./csv_export_button.vue
'
;
import
DashboardNotConfigured
from
'
./empty_states/instance_dashboard_not_configured.vue
'
;
import
InstanceSecurityVulnerabilities
from
'
./first_class_instance_security_dashboard_vulnerabilities.vue
'
;
import
SurveyRequestBanner
from
'
./survey_request_banner.vue
'
;
import
VulnerabilitiesCountList
from
'
./vulnerability_count_list.vue
'
;
export
default
{
components
:
{
CsvExportButton
,
SecurityDashboardLayout
,
InstanceSecurityVulnerabilities
,
Filters
,
DashboardNotConfigured
,
VulnerabilitiesCountList
,
SurveyRequestBanner
,
GlLoadingIcon
,
},
apollo
:
{
projects
:
{
query
:
instanceProjectsQuery
,
update
(
data
)
{
return
data
.
instanceSecurityDashboard
.
projects
.
nodes
;
},
error
()
{
createFlash
({
message
:
PROJECT_LOADING_ERROR_MESSAGE
});
},
},
},
data
()
{
return
{
filters
:
null
,
projects
:
[],
};
},
computed
:
{
isLoadingProjects
()
{
return
this
.
$apollo
.
queries
.
projects
.
loading
;
},
hasNoProjects
()
{
return
this
.
projects
.
length
===
0
;
},
},
methods
:
{
handleFilterChange
(
filters
)
{
this
.
filters
=
filters
;
},
},
vulnerabilitiesSeverityCountScopes
,
};
</
script
>
<
template
>
<gl-loading-icon
v-if=
"isLoadingProjects"
size=
"lg"
class=
"gl-mt-6"
/>
<div
v-else-if=
"hasNoProjects"
>
<survey-request-banner
class=
"gl-mt-5"
/>
<dashboard-not-configured
/>
</div>
<security-dashboard-layout
v-else
>
<template
#header
>
<survey-request-banner
class=
"gl-mt-5"
/>
<header
class=
"gl-my-6 gl-display-flex gl-align-items-center"
data-testid=
"header"
>
<h2
class=
"gl-flex-grow-1 gl-my-0"
>
{{
s__
(
'
SecurityReports|Vulnerability Report
'
)
}}
</h2>
<csv-export-button
/>
</header>
<vulnerabilities-count-list
:scope=
"$options.vulnerabilitiesSeverityCountScopes.instance"
:filters=
"filters"
/>
</
template
>
<
template
#sticky
>
<filters
:projects=
"projects"
@
filterChange=
"handleFilterChange"
/>
</
template
>
<instance-security-vulnerabilities
:projects=
"projects"
:filters=
"filters"
/>
</security-dashboard-layout>
</template>
ee/app/assets/javascripts/security_dashboard/components/group_security_charts.vue
View file @
32bd255a
<
script
>
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
createFlash
from
'
~/flash
'
;
import
groupProjectsQuery
from
'
../graphql/queries/group_projects.query.graphql
'
;
import
vulnerabilityGradesQuery
from
'
../graphql/queries/group_vulnerability_grades.query.graphql
'
;
import
vulnerabilityHistoryQuery
from
'
../graphql/queries/group_vulnerability_history.query.graphql
'
;
import
groupProjectsQuery
from
'
../graphql/queries/vulnerable_projects_group.query.graphql
'
;
import
{
PROJECT_LOADING_ERROR_MESSAGE
}
from
'
../helpers
'
;
import
DashboardNotConfigured
from
'
./empty_states/group_dashboard_not_configured.vue
'
;
import
VulnerabilityChart
from
'
./first_class_vulnerability_chart.vue
'
;
...
...
ee/app/assets/javascripts/security_dashboard/components/
first_class_group_security_dashboard
.vue
→
ee/app/assets/javascripts/security_dashboard/components/
vulnerability_report
.vue
View file @
32bd255a
<
script
>
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
GroupSecurityVulnerabilities
from
'
ee/security_dashboard/components/first_class_group_security_dashboard_vulnerabilities.vue
'
;
import
InstanceSecurityVulnerabilities
from
'
ee/security_dashboard/components/first_class_instance_security_dashboard_vulnerabilities.vue
'
;
import
Filters
from
'
ee/security_dashboard/components/first_class_vulnerability_filters.vue
'
;
import
SecurityDashboardLayout
from
'
ee/security_dashboard/components/security_dashboard_layout.vue
'
;
import
{
PROJECT_LOADING_ERROR_MESSAGE
}
from
'
ee/security_dashboard/helper
s
'
;
import
createFlash
from
'
~/flash
'
;
import
{
DASHBOARD_TYPES
}
from
'
ee/security_dashboard/store/constant
s
'
;
import
{
s__
}
from
'
~/locale
'
;
import
{
vulnerabilitiesSeverityCountScopes
}
from
'
../constants
'
;
import
groupProjectsQuery
from
'
../graphql/queries/group_projects.query.graphql
'
;
import
vulnerableProjectsGroupQuery
from
'
../graphql/queries/vulnerable_projects_group.query.graphql
'
;
import
vulnerableProjectsInstanceQuery
from
'
../graphql/queries/vulnerable_projects_instance.query.graphql
'
;
import
CsvExportButton
from
'
./csv_export_button.vue
'
;
import
DashboardNotConfigured
from
'
./empty_states/group_dashboard_not_configured.vue
'
;
import
DashboardNotConfiguredGroup
from
'
./empty_states/group_dashboard_not_configured.vue
'
;
import
DashboardNotConfiguredInstance
from
'
./empty_states/instance_dashboard_not_configured.vue
'
;
import
SurveyRequestBanner
from
'
./survey_request_banner.vue
'
;
import
VulnerabilitiesCountList
from
'
./vulnerability_count_list.vue
'
;
...
...
@@ -16,40 +19,68 @@ export default {
components
:
{
SecurityDashboardLayout
,
GroupSecurityVulnerabilities
,
InstanceSecurityVulnerabilities
,
Filters
,
CsvExportButton
,
DashboardNotConfigured
,
SurveyRequestBanner
,
DashboardNotConfiguredGroup
,
DashboardNotConfiguredInstance
,
GlLoadingIcon
,
VulnerabilitiesCountList
,
SurveyRequestBanner
,
},
inject
:
[
'
groupFullPath
'
],
props
:
{
dashboardType
:
{
type
:
String
,
required
:
true
,
validator
:
(
value
)
=>
Object
.
values
(
DASHBOARD_TYPES
).
includes
(
value
),
},
},
queries
:
{
[
DASHBOARD_TYPES
.
GROUP
]:
vulnerableProjectsGroupQuery
,
[
DASHBOARD_TYPES
.
INSTANCE
]:
vulnerableProjectsInstanceQuery
,
},
apollo
:
{
projects
:
{
query
:
groupProjectsQuery
,
query
()
{
return
this
.
$options
.
queries
[
this
.
dashboardType
];
},
variables
()
{
return
{
fullPath
:
this
.
groupFullPath
};
return
this
.
isGroup
?
{
fullPath
:
this
.
groupFullPath
}
:
{
};
},
update
(
data
)
{
return
data
.
group
.
projects
.
nodes
;
return
this
.
isGroup
?
data
.
group
.
projects
.
nodes
:
data
.
instanceSecurityDashboard
.
projects
.
nodes
;
},
error
()
{
createFlash
({
message
:
PROJECT_LOADING_ERROR_MESSAGE
})
;
skip
()
{
return
!
this
.
$options
.
queries
[
this
.
dashboardType
]
;
},
},
},
data
()
{
return
{
filters
:
null
,
filters
:
{}
,
projects
:
[],
};
},
computed
:
{
isLoadingProjects
()
{
return
this
.
$apollo
.
queries
.
projects
.
loading
;
projectsWereFetched
()
{
return
!
this
.
$apollo
.
queries
.
projects
?.
loading
;
},
scope
()
{
return
this
.
isGroup
?
vulnerabilitiesSeverityCountScopes
.
group
:
vulnerabilitiesSeverityCountScopes
.
instance
;
},
isGroup
()
{
return
this
.
dashboardType
===
DASHBOARD_TYPES
.
GROUP
;
},
isInstance
()
{
return
this
.
dashboardType
===
DASHBOARD_TYPES
.
INSTANCE
;
},
hasNoProjects
()
{
return
this
.
projects
.
length
===
0
;
return
this
.
projects
.
length
===
0
&&
this
.
projectsWereFetched
;
},
},
methods
:
{
...
...
@@ -57,37 +88,36 @@ export default {
this
.
filters
=
filters
;
},
},
vulnerabilitiesSeverityCountScopes
,
i18n
:
{
title
:
s__
(
'
SecurityReports|Vulnerability Report
'
),
},
};
</
script
>
<
template
>
<gl-loading-icon
v-if=
"isLoadingProjects"
size=
"lg"
class=
"gl-mt-6"
/>
<div
v-else-if=
"hasNoProjects"
>
<survey-request-banner
class=
"gl-mt-5"
/>
<dashboard-not-configured
/>
</div>
<security-dashboard-layout
v-else
>
<template
#header
>
<div>
<gl-loading-icon
v-if=
"!projectsWereFetched"
size=
"lg"
class=
"gl-mt-6"
/>
<template
v-else-if=
"hasNoProjects"
>
<survey-request-banner
class=
"gl-mt-5"
/>
<header
class=
"gl-my-6 gl-display-flex gl-align-items-center"
>
<h2
class=
"gl-flex-grow-1 gl-my-0"
>
{{
s__
(
'
SecurityReports|Vulnerability Report
'
)
}}
</h2>
<csv-export-button
/>
</header>
<vulnerabilities-count-list
:scope=
"$options.vulnerabilitiesSeverityCountScopes.group"
:full-path=
"groupFullPath"
:filters=
"filters"
/>
<dashboard-not-configured-group
v-if=
"isGroup"
/>
<dashboard-not-configured-instance
v-else-if=
"isInstance"
/>
</
template
>
<
template
#sticky
>
<filters
:projects=
"projects"
@
filterChange=
"handleFilterChange"
/>
</
template
>
<group-security-vulnerabilities
:filters=
"filters"
/>
</security-dashboard-layout>
<security-dashboard-layout
v-else
>
<
template
#header
>
<survey-request-banner
class=
"gl-mt-5"
/>
<header
class=
"gl-my-6 gl-display-flex gl-align-items-center"
>
<h2
class=
"gl-flex-grow-1 gl-my-0"
>
{{
$options
.
i18n
.
title
}}
</h2>
<csv-export-button
/>
</header>
<vulnerabilities-count-list
:scope=
"scope"
:full-path=
"groupFullPath"
:filters=
"filters"
/>
</
template
>
<
template
#sticky
>
<filters
:projects=
"projects"
@
filterChange=
"handleFilterChange"
/>
</
template
>
<group-security-vulnerabilities
v-if=
"isGroup"
:filters=
"filters"
/>
<instance-security-vulnerabilities
v-if=
"isInstance"
:filters=
"filters"
/>
</security-dashboard-layout>
</div>
</template>
ee/app/assets/javascripts/security_dashboard/graphql/queries/
group_projects
.query.graphql
→
ee/app/assets/javascripts/security_dashboard/graphql/queries/
vulnerable_projects_group
.query.graphql
View file @
32bd255a
query
group
Projects
(
$fullPath
:
ID
!)
{
query
vulnerable
Projects
(
$fullPath
:
ID
!)
{
group
(
fullPath
:
$fullPath
)
{
projects
(
includeSubgroups
:
true
)
{
nodes
{
...
...
ee/app/assets/javascripts/security_dashboard/graphql/queries/vulnerable_projects_instance.query.graphql
0 → 100644
View file @
32bd255a
query
vulnerableProjects
{
instanceSecurityDashboard
{
projects
{
nodes
{
id
name
}
}
}
}
ee/app/assets/javascripts/security_dashboard/vulnerability_report_init.js
View file @
32bd255a
import
Vue
from
'
vue
'
;
import
{
DASHBOARD_TYPES
}
from
'
ee/security_dashboard/store/constants
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
FirstClassGroupSecurityDashboard
from
'
./components/first_class_group_security_dashboard.vue
'
;
import
FirstClassInstanceSecurityDashboard
from
'
./components/first_class_instance_security_dashboard.vue
'
;
import
FirstClassProjectSecurityDashboard
from
'
./components/first_class_project_security_dashboard.vue
'
;
import
UnavailableState
from
'
./components/unavailable_state.vue
'
;
import
VulnerabilityReport
from
'
./components/vulnerability_report.vue
'
;
import
apolloProvider
from
'
./graphql/provider
'
;
import
createRouter
from
'
./router
'
;
import
createStore
from
'
./store
'
;
...
...
@@ -62,10 +61,10 @@ export default (el, dashboardType) => {
emptyStateSvgPath
,
notEnabledScannersHelpPath
,
noPipelineRunScannersHelpPath
,
groupFullPath
,
securityConfigurationPath
,
surveyRequestSvgPath
,
vulnerabilitiesExportEndpoint
,
groupFullPath
,
hasVulnerabilities
:
parseBoolean
(
hasVulnerabilities
),
scanners
:
scanners
?
JSON
.
parse
(
scanners
)
:
[],
hasJiraVulnerabilitiesIntegrationEnabled
:
parseBoolean
(
...
...
@@ -77,6 +76,7 @@ export default (el, dashboardType) => {
securityDashboardHelpPath
,
projectAddEndpoint
,
projectListEndpoint
,
dashboardType
,
};
let
component
;
...
...
@@ -94,10 +94,10 @@ export default (el, dashboardType) => {
provide
.
autoFixDocumentation
=
autoFixDocumentation
;
provide
.
autoFixMrsPath
=
autoFixMrsPath
;
}
else
if
(
dashboardType
===
DASHBOARD_TYPES
.
GROUP
)
{
component
=
FirstClassGroupSecurityDashboard
;
component
=
VulnerabilityReport
;
}
else
if
(
dashboardType
===
DASHBOARD_TYPES
.
INSTANCE
)
{
provide
.
instanceDashboardSettingsPath
=
instanceDashboardSettingsPath
;
component
=
FirstClassInstanceSecurityDashboard
;
component
=
VulnerabilityReport
;
}
const
router
=
createRouter
();
...
...
ee/spec/frontend/security_dashboard/components/first_class_group_security_dashboard_spec.js
deleted
100644 → 0
View file @
336a058f
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
CsvExportButton
from
'
ee/security_dashboard/components/csv_export_button.vue
'
;
import
DashboardNotConfigured
from
'
ee/security_dashboard/components/empty_states/group_dashboard_not_configured.vue
'
;
import
FirstClassGroupDashboard
from
'
ee/security_dashboard/components/first_class_group_security_dashboard.vue
'
;
import
FirstClassGroupVulnerabilities
from
'
ee/security_dashboard/components/first_class_group_security_dashboard_vulnerabilities.vue
'
;
import
Filters
from
'
ee/security_dashboard/components/first_class_vulnerability_filters.vue
'
;
import
SecurityDashboardLayout
from
'
ee/security_dashboard/components/security_dashboard_layout.vue
'
;
import
SurveyRequestBanner
from
'
ee/security_dashboard/components/survey_request_banner.vue
'
;
import
VulnerabilitiesCountList
from
'
ee/security_dashboard/components/vulnerability_count_list.vue
'
;
describe
(
'
First Class Group Dashboard Component
'
,
()
=>
{
let
wrapper
;
const
dashboardDocumentation
=
'
dashboard-documentation
'
;
const
emptyStateSvgPath
=
'
empty-state-path
'
;
const
groupFullPath
=
'
group-full-path
'
;
const
findDashboardLayout
=
()
=>
wrapper
.
findComponent
(
SecurityDashboardLayout
);
const
findGroupVulnerabilities
=
()
=>
wrapper
.
findComponent
(
FirstClassGroupVulnerabilities
);
const
findCsvExportButton
=
()
=>
wrapper
.
findComponent
(
CsvExportButton
);
const
findFilters
=
()
=>
wrapper
.
findComponent
(
Filters
);
const
findLoadingIcon
=
()
=>
wrapper
.
findComponent
(
GlLoadingIcon
);
const
findEmptyState
=
()
=>
wrapper
.
findComponent
(
DashboardNotConfigured
);
const
findVulnerabilitiesCountList
=
()
=>
wrapper
.
findComponent
(
VulnerabilitiesCountList
);
const
findSurveyRequestBanner
=
()
=>
wrapper
.
findComponent
(
SurveyRequestBanner
);
const
createWrapper
=
({
data
,
loading
=
false
}
=
{})
=>
{
return
shallowMount
(
FirstClassGroupDashboard
,
{
propsData
:
{
dashboardDocumentation
,
emptyStateSvgPath
,
},
provide
:
{
groupFullPath
},
data
,
stubs
:
{
SecurityDashboardLayout
,
},
mocks
:
{
$apollo
:
{
queries
:
{
projects
:
{
loading
},
},
},
},
});
};
afterEach
(()
=>
{
wrapper
.
destroy
();
});
describe
(
'
when loading
'
,
()
=>
{
beforeEach
(()
=>
{
wrapper
=
createWrapper
({
loading
:
true
});
});
it
(
'
loading button should be visible
'
,
()
=>
{
expect
(
findLoadingIcon
().
exists
()).
toBe
(
true
);
});
it
(
'
should not display the dashboard not configured component
'
,
()
=>
{
expect
(
findEmptyState
().
exists
()).
toBe
(
false
);
});
it
(
'
should not show the survey request banner
'
,
()
=>
{
expect
(
findSurveyRequestBanner
().
exists
()).
toBe
(
false
);
});
});
describe
(
'
when has projects
'
,
()
=>
{
beforeEach
(()
=>
{
wrapper
=
createWrapper
({
data
:
()
=>
({
projects
:
[{
id
:
1
,
name
:
'
GitLab Org
'
}],
projectsWereFetched
:
true
,
filters
:
{},
}),
});
});
it
(
'
should render correctly
'
,
()
=>
{
expect
(
findGroupVulnerabilities
().
props
()).
toEqual
({
filters
:
{},
});
});
it
(
'
has filters
'
,
()
=>
{
expect
(
findFilters
().
exists
()).
toBe
(
true
);
});
it
(
'
loads projects from data
'
,
()
=>
{
const
projects
=
[{
id
:
1
,
name
:
'
GitLab Org
'
}];
expect
(
findFilters
().
props
(
'
projects
'
)).
toEqual
(
projects
);
});
it
(
'
responds to the filterChange event
'
,
()
=>
{
const
filters
=
{
severity
:
'
critical
'
};
findFilters
().
vm
.
$listeners
.
filterChange
(
filters
);
return
wrapper
.
vm
.
$nextTick
(()
=>
{
expect
(
wrapper
.
vm
.
filters
).
toEqual
(
filters
);
expect
(
findGroupVulnerabilities
().
props
(
'
filters
'
)).
toEqual
(
filters
);
});
});
it
(
'
displays the csv export button
'
,
()
=>
{
expect
(
findCsvExportButton
().
exists
()).
toBe
(
true
);
});
it
(
'
loading button should not be rendered
'
,
()
=>
{
expect
(
findLoadingIcon
().
exists
()).
toBe
(
false
);
});
it
(
'
should not display the dashboard not configured component
'
,
()
=>
{
expect
(
findEmptyState
().
exists
()).
toBe
(
false
);
});
it
(
'
should display the vulnerability count list with the correct data
'
,
()
=>
{
expect
(
findVulnerabilitiesCountList
().
props
()).
toMatchObject
({
scope
:
'
group
'
,
fullPath
:
groupFullPath
,
filters
:
wrapper
.
vm
.
filters
,
});
});
it
(
'
should show the survey request banner
'
,
()
=>
{
expect
(
findSurveyRequestBanner
().
exists
()).
toBe
(
true
);
});
});
describe
(
'
when has no projects
'
,
()
=>
{
beforeEach
(()
=>
{
wrapper
=
createWrapper
({
data
:
()
=>
({
projectsWereFetched
:
true
}),
});
});
it
(
'
loading button should not be rendered
'
,
()
=>
{
expect
(
findLoadingIcon
().
exists
()).
toBe
(
false
);
});
it
(
'
dashboard should not be rendered
'
,
()
=>
{
expect
(
findDashboardLayout
().
exists
()).
toBe
(
false
);
});
it
(
'
should display the dashboard not configured component
'
,
()
=>
{
expect
(
findEmptyState
().
exists
()).
toBe
(
true
);
});
it
(
'
should show the survey request banner
'
,
()
=>
{
expect
(
findSurveyRequestBanner
().
exists
()).
toBe
(
true
);
});
});
});
ee/spec/frontend/security_dashboard/components/
first_class_instance_security_dashboard
_spec.js
→
ee/spec/frontend/security_dashboard/components/
vulnerability_report
_spec.js
View file @
32bd255a
This diff is collapsed.
Click to expand it.
ee/spec/frontend/security_dashboard/mock_data/index.js
View file @
32bd255a
...
...
@@ -193,3 +193,33 @@ export const mockProjectSecurityChartsWithData = () => ({
},
},
});
export
const
mockVulnerableProjectsInstance
=
()
=>
({
data
:
{
instanceSecurityDashboard
:
{
projects
:
{
nodes
:
[
{
id
:
'
gid://gitlab/Project/2
'
,
name
:
'
Gitlab Shell
'
,
},
],
},
},
},
});
export
const
mockVulnerableProjectsGroup
=
()
=>
({
data
:
{
group
:
{
projects
:
{
nodes
:
[
{
id
:
'
gid://gitlab/Project/2
'
,
name
:
'
Gitlab Shell
'
,
},
],
},
},
},
});
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