summaryrefslogtreecommitdiff
path: root/lib/api/groups.rb
Commit message (Collapse)AuthorAgeFilesLines
* Backport https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1942Lin Jen-Shin2017-06-061-3/+1
|
* Add :owned param to ProjectFinderToon Claes2017-05-301-1/+1
| | | | And use it in the API.
* Use helper to construct Finder paramsToon Claes2017-05-301-1/+1
| | | | | | | The ProjectsFinder and GroupFinder both support the same set of params. And the `/api/v4/projects` and `/api/v4/group/:id/projects` also support the same set of params. But they do not match the Finder params. So use a helper method to transform them.
* Hide nested group UI/API support for MySQLYorick Peterse2017-05-171-1/+5
| | | | | | This hides/disables some UI elements and API parameters related to nested groups when MySQL is used, since nested groups are not supported for MySQL.
* Merge branch '27144-enforce-rubocop-trailing_commas-no_comma-style' into ↵Robert Speicher2017-05-101-1/+1
|\ | | | | | | | | | | | | | | | | | | 'master' Resolve "Use consistent style for trailing commas" Closes #27144 See merge request !11063
| * Enable the Style/TrailingCommaInArguments copRémy Coutable2017-05-101-1/+1
| | | | | | | | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'tc-fix-private-subgroups-shown' into 'security' Douwe Maan2017-05-101-1/+1
|/ | | | | Use GroupsFinder to find subgroups the user has access to See merge request !2096
* Add share_with_group_lock to CE optional params block28017-separate-ce-params-on-apiOswaldo Ferreira2017-04-101-0/+1
|
* Separate CE params on Grape APIOswaldo Ferreira2017-04-101-1/+5
|
* Remove the User#is_admin? methodblackst0ne2017-04-091-1/+1
|
* ProjectsFinder should handle more optionsJacopo2017-04-061-1/+1
| | | | | | | | | | | | | | | | | | | Extended ProjectFinder in order to handle the following options: - current_user - which user use - project_ids_relation: int[] - project ids to use - params: - trending: boolean - non_public: boolean - starred: boolean - sort: string - visibility_level: int - tags: string[] - personal: boolean - search: string - non_archived: boolean GroupProjectsFinder now inherits from ProjectsFinder. Changed the code in order to use the new available options.
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-2/+2
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* Expose Group VisibilityLevel as StringToon Claes2017-03-021-3/+3
| | | | | Instead of exposing the VisibilityLevel as Integer, expose it as String `visibility`.
* API: Use parameter to get owned groups instead of dedicated endpointRobert Schilling2017-02-241-12/+4
|
* API: Consolidate /projects endpointToon Claes2017-02-141-0/+3
| | | | | | | | | | | It consolidates these endpoints: - /projects - /projects/owned - /projects/visible - /projects/starred - /projects/all Into the /projects endpoint using query parameters.
* Merge branch 'dz-nested-groups-api' into 'master' Dmitriy Zaporozhets2017-02-091-0/+1
|\ | | | | | | | | Nested groups API See merge request !9034
| * Add nested groups to the APIdz-nested-groups-apiDmitriy Zaporozhets2017-02-081-0/+1
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Fix inconsistent naming for services that delete thingsdixpac2017-02-081-1/+1
|/ | | | | | * Changed name of delete_user_service and worker to destroy * Move and change delete_group_service to Groups::DestroyService * Rename Notes::DeleteService to Notes::DestroyService
* Fix groups API to accept path when transferring a projectMark Fletcher2017-01-031-3/+3
| | | | * Use standard helpers for finding group and project
* Add more storage statisticsMarkus Koller2016-12-211-3/+18
| | | | | | | | | | | | | This adds counters for build artifacts and LFS objects, and moves the preexisting repository_size and commit_count from the projects table into a new project_statistics table. The counters are displayed in the administration area for projects and groups, and also available through the API for admins (on */all) and normal users (on */owned) The statistics are updated through ProjectCacheWorker, which can now do more granular updates with the new :statistics argument.
* Consistently use current_user in API entitiesMarkus Koller2016-12-211-7/+7
|
* API: Ability to get group's project in simple representationapi-simple-group-projectRobert Schilling2016-12-131-1/+4
|
* API: Fix groups filterRobert Schilling2016-12-121-1/+10
|
* Use the pagination helper in the APIuse-pagination-helperRobert Schilling2016-12-041-2/+10
|
* Merge branch '22373-reduce-queries-in-api-helpers-find_project' into 'master' Yorick Peterse2016-11-251-4/+4
|\ | | | | | | | | Resolve "Reduce queries in API::Helpers#find_project" See merge request !7714
| * API: Introduce `#find_group!` which also check access permission22373-reduce-queries-in-api-helpers-find_projectRémy Coutable2016-11-241-4/+4
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Don't convert data which already is the target typeapi-no-convertRobert Schilling2016-11-241-1/+1
|/
* Allow sorting groups in APIsort-api-groupsSean McGivern2016-11-171-0/+4
| | | | | | Allow `order_by` and `sort` parameters to `/api/v3/groups.json`. At present, only ordering by name and path is supported, and the default sort is name ascending (alphabetical order).
* Grapify the group APIRobert Schilling2016-11-151-82/+74
|
* Added API endpoint groups/ownedBorja Aparicio2016-11-081-0/+10
|
* Backport Group API code that was added in EE onlybackport-ee-js-groups-apiRémy Coutable2016-10-311-0/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* fix group links 404barthc2016-10-051-0/+3
|
* Allow to set request_access_enabled for groups and projects using APIFelipe Artur2016-09-191-12/+14
|
* Added group-specific setting for LFS.Patricio Cano2016-09-151-2/+4
| | | | Groups can enable/disable LFS, but this setting can be overridden at the project level. Admin only
* Project tools visibility levelFelipe Artur2016-09-011-1/+1
|
* use a nil subject when we want to check global abilitieshttp://jneen.net/2016-08-301-1/+1
|
* Fix groups API to list only user's accessible projectsStan Hu2016-05-241-2/+1
| | | | Closes #17496
* Fix minor issues according development guidelinesRobert Schilling2016-04-121-6/+4
|
* API: Ability to update a groupRobert Schilling2016-04-121-2/+28
|
* Tweaks, refactoring, and specsDouwe Maan2016-03-201-1/+1
|
* Add API group projects endpoint.Douwe Maan2015-12-071-0/+12
|
* Fix transferring of project to another group using the API.Douwe Maan2015-07-111-2/+2
|
* Wrap group removal into serviceDmitriy Zaporozhets2015-06-031-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge pull request #9066 from jirutka/fix-6417Dmitriy Zaporozhets2015-05-031-2/+2
|\ | | | | Fix #6417: users with group permission should be able to create groups via API
| * Fix #6417: users with group permission should be able to create groups via APIRobert Schilling2015-03-311-2/+2
| |
* | Rename manage_group ability to admin_group for consistency with project.Douwe Maan2015-04-141-1/+1
|/
* Remove Group#owner_id from API since it is not used any moreDmitriy Zaporozhets2015-02-171-1/+1
|
* Acces groups with their path in APIjubianchi2015-02-031-16/+0
|
* Add description attribute to group API (GET and POST)Daniel Serodio2015-01-161-1/+1
|
* Add a message when unable to save an object through api.Marin Jankovski2015-01-071-2/+2
|