An error occurred while fetching the assigned milestone of the selected merge_request.
Api visible projects
1 unresolved thread
1 unresolved thread
What does this MR do?
Add a new /projects/visible
API endpoint.
Are there points in the code the reviewer needs to double check?
No.
Why was this MR needed?
The /projects
endpoint only returned projects the user was explicitly a member of.
What are the relevant issue numbers?
Closes #19361 (closed), #3119 (closed).
Screenshots (if relevant)
N/A
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together
Merge request reports
Activity
Added 1 commit:
- ca88579c - api: add /projects/visible API endpoint
mentioned in issue #3119 (closed)
Added 1 commit:
- 673c40d6 - api: add /projects/visible API endpoint
175 175 end 176 176 end 177 177 178 describe 'GET /projects/visible' do 179 let(:public_project) { create(:project, :public) } 180 181 it 'returns the projects viewable by the user' do 182 get api('/projects/visible', user3) 183 expect(response).to have_http_status(200) 184 expect(json_response).to be_an Array 185 expect(json_response.map { |project| project['id'] }).to contain_exactly(project.id, project2.id, project4.id) @ben.boeckel: do you need help with the spec question above? I can take that on if you don't have time, just let me know!
Mentioned in merge request !6681 (merged)
Thanks @ben.boeckel!
🚀 I've created a new MR at !6681 (merged) - hopefully it will get into %8.13!/cc @bbodenmiller
Mentioned in commit 1be15162
Please register or sign in to reply