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
b3c3e71d
Commit
b3c3e71d
authored
Jun 28, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rails5] fix Projects::VulnerabilityFeedbackController didn't match the schema
parent
5767f6a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
ee/changelogs/unreleased/rails5-fix-6747.yml
ee/changelogs/unreleased/rails5-fix-6747.yml
+5
-0
ee/spec/controllers/projects/vulnerability_feedback_controller_spec.rb
...ollers/projects/vulnerability_feedback_controller_spec.rb
+11
-1
No files found.
ee/changelogs/unreleased/rails5-fix-6747.yml
0 → 100644
View file @
b3c3e71d
---
title
:
"
[Rails5]
fix
Projects::VulnerabilityFeedbackController
didn't
match
the
schema"
merge_request
:
6320
author
:
Jasper Maes
type
:
fixed
ee/spec/controllers/projects/vulnerability_feedback_controller_spec.rb
View file @
b3c3e71d
...
...
@@ -160,8 +160,18 @@ describe Projects::VulnerabilityFeedbackController do
def
create_feedback
(
user
:,
project
:,
params
:)
sign_in
(
user
)
post_params
=
{
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
,
vulnerability_feedback:
params
,
format: :json
}
post
:create
,
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
,
vulnerability_feedback:
params
,
format: :json
if
Gitlab
.
rails5?
post
:create
,
params:
post_params
,
as: :json
else
post
:create
,
post_params
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