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
1a635aa3
Commit
1a635aa3
authored
Oct 12, 2021
by
Michał Zając
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable create_vulnerabilities_via_api by default
Changelog: changed EE: true
parent
24b51f40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
config/feature_flags/development/create_vulnerabilities_via_api.yml
...ture_flags/development/create_vulnerabilities_via_api.yml
+1
-1
ee/app/graphql/mutations/vulnerabilities/create.rb
ee/app/graphql/mutations/vulnerabilities/create.rb
+1
-1
ee/app/services/vulnerabilities/manually_create_service.rb
ee/app/services/vulnerabilities/manually_create_service.rb
+1
-1
No files found.
config/feature_flags/development/create_vulnerabilities_via_api.yml
View file @
1a635aa3
...
...
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/338694
milestone
:
'
14.3'
type
:
development
group
:
group::threat insights
default_enabled
:
fals
e
default_enabled
:
tru
e
ee/app/graphql/mutations/vulnerabilities/create.rb
View file @
1a635aa3
...
...
@@ -73,7 +73,7 @@ module Mutations
def
resolve
(
**
attributes
)
project
=
authorized_find!
(
id:
attributes
.
fetch
(
:project
))
raise
Gitlab
::
Graphql
::
Errors
::
ResourceNotAvailable
,
'Feature disabled'
unless
Feature
.
enabled?
(
:create_vulnerabilities_via_api
,
project
)
raise
Gitlab
::
Graphql
::
Errors
::
ResourceNotAvailable
,
'Feature disabled'
unless
Feature
.
enabled?
(
:create_vulnerabilities_via_api
,
project
,
default_enabled: :yaml
)
params
=
build_vulnerability_params
(
attributes
)
...
...
ee/app/services/vulnerabilities/manually_create_service.rb
View file @
1a635aa3
...
...
@@ -17,7 +17,7 @@ module Vulnerabilities
end
def
execute
unless
Feature
.
enabled?
(
:create_vulnerabilities_via_api
,
@project
)
unless
Feature
.
enabled?
(
:create_vulnerabilities_via_api
,
@project
,
default_enabled: :yaml
)
return
ServiceResponse
.
error
(
message:
"create_vulnerabilities_via_api feature flag is not enabled for this project"
)
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