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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
3dca5b30
Commit
3dca5b30
authored
Feb 19, 2019
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog and updated spec
Ensure that references to private projects are not visible
parent
6e4fdc11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
changelogs/unreleased/55376-related_merge_requests-api-call-returns-merge-requests-that-are-not-related-to-the-issue.yml
...urns-merge-requests-that-are-not-related-to-the-issue.yml
+5
-0
spec/requests/api/issues_spec.rb
spec/requests/api/issues_spec.rb
+9
-0
No files found.
changelogs/unreleased/55376-related_merge_requests-api-call-returns-merge-requests-that-are-not-related-to-the-issue.yml
0 → 100644
View file @
3dca5b30
---
title
:
'
API:
Ensure
that
related
merge
requests
are
referenced
cross-project'
merge_request
:
25222
author
:
Robert Schilling
type
:
fixed
spec/requests/api/issues_spec.rb
View file @
3dca5b30
...
...
@@ -1838,6 +1838,15 @@ describe API::Issues do
expect_paginated_array_response
([
related_mr
.
id
,
merge_request
.
id
])
end
it
'does not generate references to projects with no access'
do
private_project
=
create
(
:project
,
:private
)
create_referencing_mr
(
private_project
.
creator
,
private_project
,
issue
)
get_related_merge_requests
(
project
.
id
,
issue
.
iid
,
user
)
expect_paginated_array_response
(
related_mr
.
id
)
end
context
'no merge request mentioned a issue'
do
it
'returns empty array'
do
get_related_merge_requests
(
project
.
id
,
closed_issue
.
iid
,
user
)
...
...
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