diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-08 16:43:20 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-08 16:43:20 +0000 |
commit | 038c9a65fbe814927e9c9fa12f1bda660249e8b0 (patch) | |
tree | be87583c14bc960651ee489b7e86c6bcfbda2f47 /lib | |
parent | 033947de90163aeadf0b1ae2c0f5be1b8529088b (diff) | |
parent | 15925290eec4f5616e12ef3169794f85150e3270 (diff) | |
download | gitlab-ce-038c9a65fbe814927e9c9fa12f1bda660249e8b0.tar.gz |
Merge branch 'ui/dashboard-new-issue' into 'master'
UI: Add "New X" buttons to dashboard and group issue, MR and milestone indexes
# To do
- [x] Use searchable dropdown since dashboard/group can have a lot of projects. Use select2?
## Before

## After

As you can see, for milestones, groups are listed as well as we can now easily create group milestones.
Fixes #3544 and https://dev.gitlab.org/gitlab/gitlabhq/issues/2581
See merge request !1968
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/groups.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 024aeec2e14..1a14d870a4a 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -65,6 +65,18 @@ module API DestroyGroupService.new(group, current_user).execute end + # Get a list of projects in this group + # + # Example Request: + # GET /groups/:id/projects + get ":id/projects" do + group = find_group(params[:id]) + projects = group.projects + projects = filter_projects(projects) + projects = paginate projects + present projects, with: Entities::Project + end + # Transfer a project to the Group namespace # # Parameters: |