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
549c5a0f
Commit
549c5a0f
authored
May 13, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose group_id attribute of export in API response
parent
7b89293e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletion
+9
-1
doc/api/vulnerability_exports.md
doc/api/vulnerability_exports.md
+4
-0
ee/lib/ee/api/entities/vulnerability_export.rb
ee/lib/ee/api/entities/vulnerability_export.rb
+1
-0
ee/spec/fixtures/api/schemas/public_api/v4/vulnerability_export.json
...tures/api/schemas/public_api/v4/vulnerability_export.json
+3
-1
ee/spec/lib/ee/api/entities/vulnerability_export_spec.rb
ee/spec/lib/ee/api/entities/vulnerability_export_spec.rb
+1
-0
No files found.
doc/api/vulnerability_exports.md
View file @
549c5a0f
...
...
@@ -51,6 +51,7 @@ Example response:
"id"
:
2
,
"created_at"
:
"2020-03-30T09:35:38.746Z"
,
"project_id"
:
1
,
"group_id"
:
null
,
"format"
:
"csv"
,
"status"
:
"created"
,
"started_at"
:
null
,
...
...
@@ -96,6 +97,7 @@ Example response:
"id"
:
2
,
"created_at"
:
"2020-03-30T09:35:38.746Z"
,
"project_id"
:
null
,
"group_id"
:
1
,
"format"
:
"csv"
,
"status"
:
"created"
,
"started_at"
:
null
,
...
...
@@ -128,6 +130,7 @@ Example response:
"id"
:
2
,
"created_at"
:
"2020-03-30T09:35:38.746Z"
,
"project_id"
:
null
,
"group_id"
:
null
,
"format"
:
"csv"
,
"status"
:
"created"
,
"started_at"
:
null
,
...
...
@@ -164,6 +167,7 @@ Example response:
"id"
:
2
,
"created_at"
:
"2020-03-30T09:35:38.746Z"
,
"project_id"
:
1
,
"group_id"
:
null
,
"format"
:
"csv"
,
"status"
:
"finished"
,
"started_at"
:
"2020-03-30T09:36:54.469Z"
,
...
...
ee/lib/ee/api/entities/vulnerability_export.rb
View file @
549c5a0f
...
...
@@ -9,6 +9,7 @@ module EE
expose
:id
expose
:created_at
expose
:project_id
expose
:group_id
expose
:format
expose
:status
expose
:started_at
...
...
ee/spec/fixtures/api/schemas/public_api/v4/vulnerability_export.json
View file @
549c5a0f
...
...
@@ -4,6 +4,7 @@
"id"
,
"created_at"
,
"project_id"
,
"group_id"
,
"format"
,
"status"
,
"started_at"
,
...
...
@@ -13,7 +14,8 @@
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"created_at"
:
{
"type"
:
"date"
},
"project_id"
:
{
"type"
:
"integer"
},
"project_id"
:
{
"type"
:
[
"integer"
,
"null"
]
},
"group_id"
:
{
"type"
:
[
"integer"
,
"null"
]
},
"format"
:
{
"type"
:
"string"
,
"enum"
:
[
"csv"
]
...
...
ee/spec/lib/ee/api/entities/vulnerability_export_spec.rb
View file @
549c5a0f
...
...
@@ -14,6 +14,7 @@ describe ::EE::API::Entities::VulnerabilityExport do
expect
(
subject
[
:id
]).
to
eq
(
vulnerability_export
.
id
)
expect
(
subject
[
:created_at
]).
to
eq
(
vulnerability_export
.
created_at
)
expect
(
subject
[
:project_id
]).
to
eq
(
vulnerability_export
.
project_id
)
expect
(
subject
[
:group_id
]).
to
eq
(
vulnerability_export
.
group_id
)
expect
(
subject
[
:format
]).
to
eq
(
vulnerability_export
.
format
)
expect
(
subject
[
:status
]).
to
eq
(
vulnerability_export
.
status
)
expect
(
subject
[
:started_at
]).
to
eq
(
vulnerability_export
.
started_at
)
...
...
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