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
44685b15
Commit
44685b15
authored
Feb 03, 2021
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast incoming access_raw_diffs param to boolean
parent
caa86179
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/api/merge_requests.rb
lib/api/merge_requests.rb
+1
-1
spec/requests/api/merge_requests_spec.rb
spec/requests/api/merge_requests_spec.rb
+2
-2
No files found.
lib/api/merge_requests.rb
View file @
44685b15
...
...
@@ -361,7 +361,7 @@ module API
with:
Entities
::
MergeRequestChanges
,
current_user:
current_user
,
project:
user_project
,
access_raw_diffs:
params
.
fetch
(
:access_raw_diffs
,
false
)
access_raw_diffs:
to_boolean
(
params
.
fetch
(
:access_raw_diffs
,
false
)
)
end
desc
'Get the merge request pipelines'
do
...
...
spec/requests/api/merge_requests_spec.rb
View file @
44685b15
...
...
@@ -1542,9 +1542,9 @@ RSpec.describe API::MergeRequests do
end
end
context
'when access_raw_diffs is
passed as an option
'
do
context
'when access_raw_diffs is
true
'
do
it_behaves_like
'accesses diffs via raw_diffs'
do
let
(
:params
)
{
{
access_raw_diffs:
true
}
}
let
(
:params
)
{
{
access_raw_diffs:
"true"
}
}
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