summaryrefslogtreecommitdiff
path: root/lib/api/groups.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allow including custom attributes in API responsesMarkus Koller2018-02-081-3/+26
|
* Refactored /projects and /user/:user_id/projects endpointsFrancisco Lopez2017-12-011-13/+3
|
* Code review comments appliedFrancisco Lopez2017-12-011-2/+2
|
* Small renamingFrancisco Lopez2017-12-011-4/+4
|
* More preloading improvement and added batch count servicesFrancisco Lopez2017-12-011-5/+20
|
* Preload project route to avoid N+1 queryStan Hu2017-12-011-1/+1
|
* Optimize API /groups/:id/projects by preloading associationsStan Hu2017-12-011-0/+1
| | | | Closes #40308
* Add /groups/:id/subgroups endpoint to APIWinnie Hellmann2017-11-091-22/+44
|
* Support custom attributes on groupsMarkus Koller2017-11-061-1/+8
|
* Make Members with Owner and Master roles always able to create subgroups30473-allow-creation-of-subgroups-with-gitlab_default_can_create_group-set-to-falseRuben Davila2017-09-071-1/+6
|
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-1/+1
|
* Merge branch '37198-api-doesn-t-respect-default-group-visibility' into 'master'Sean McGivern2017-08-301-1/+5
|\ | | | | | | | | | | | | Respect the default visibility level when creating a group via the API Closes #37198 See merge request !13903
| * Make rubocop happy37198-api-doesn-t-respect-default-group-visibilityRobert Schilling2017-08-301-3/+5
| |
| * Respect the default visibility level when creating a groupRobert Schilling2017-08-291-1/+3
| |
* | Conditionally destroy a ressourceRobert Schilling2017-08-281-4/+3
| |
* | API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+2
|/
* Refactor complicated API group finding rules into GroupsFinderNick Thomas2017-08-241-10/+2
|
* Allow v4 API GET requests for groups to be unauthenticatedNick Thomas2017-08-231-4/+4
|
* Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+2
| | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* 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>