summaryrefslogtreecommitdiff
path: root/app/controllers/admin/groups_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* [Rails5] Rename `sort` methods to `sort_by_attribute`blackst0ne2018-04-041-1/+1
|
* Improve Member servicesrc/reduce-delta-with-ce-in-controllers-ceRémy Coutable2018-02-271-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Present member collection at the controller leveltmlee/gitlab-ce-28004-consider-refactoring-member-view-by-using-presenterRémy Coutable2017-12-121-2/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add a rubocop rule to check if a method 'redirect_to' is used without ↵31840-add-a-rubocop-that-forbids-redirect_to-inside-a-controller-destroy-action-without-an-explicit-statusblackst0ne2017-06-071-1/+3
| | | | explicitly set 'status' in 'destroy' actions of controllers
* Limit non-administrators to adding 100 members at a time to groups and projectsNick Thomas2017-06-061-3/+4
|
* Show group name on flash container when group is created from Admin areaKushal Pandya2017-04-251-1/+1
|
* Refactor Admin::GroupsController#members_update method and add some specsdz-refactor-admin-group-membersDmitriy Zaporozhets2017-04-201-2/+6
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Support 2FA requirement per-groupMarkus Koller2017-04-061-1/+3
|
* Merge branch 'dz-refactor-full-path' into 'master' Dmitriy Zaporozhets2017-02-081-1/+1
|\ | | | | | | | | Store group and project full name and full path in routes table See merge request !8979
| * Store group and project full name and full path in routes tabledz-refactor-full-pathDmitriy Zaporozhets2017-02-081-1/+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
* Refactor authorized params in Admin::GroupsControllerRémy Coutable2017-01-111-2/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix: Admin group show page does not workfix-admin-group-pageValery Sizov2016-12-281-1/+1
|
* Add more storage statisticsMarkus Koller2016-12-211-3/+4
| | | | | | | | | | | | | 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.
* Add nested groups support on data leveldz-nested-groupsDmitriy Zaporozhets2016-12-081-1/+1
| | | | | | | | * add parent_id field to namespaces table to store relation with nested groups * create routes table to keep information about full path of every group and project * project/group lookup by full path from routes table Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* New AccessRequestsFinderRémy Coutable2016-09-281-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Syntax fixes and better tests for helper methods. Updated docs.group-specific-lfs-settingsPatricio Cano2016-09-151-4/+4
|
* Added group-specific setting for LFS.Patricio Cano2016-09-151-1/+9
| | | | Groups can enable/disable LFS, but this setting can be overridden at the project level. Admin only
* Fix adding a user to a group in admin sectionSean McGivern2016-08-181-1/+1
|
* Fix bug where destroying a namespace would not always destroy projectsStan Hu2016-08-111-2/+2
| | | | | | | | | | | | | | | | | | | There is a race condition in DestroyGroupService now that projects are deleted asynchronously: 1. User attempts to delete group 2. DestroyGroupService iterates through all projects and schedules a Sidekiq job to delete each Project 3. DestroyGroupService destroys the Group, leaving all its projects without a namespace 4. Projects::DestroyService runs later but the can?(current_user, :remove_project) is `false` because the user no longer has permission to destroy projects with no namespace. 5. This leaves the project in pending_delete state with no namespace/group. Projects without a namespace or group also adds another problem: it's not possible to destroy the container registry tags, since container_registry_path_with_namespace is the wrong value. The fix is to destroy the group asynchronously and to run execute directly on Projects::DestroyService. Closes #17893
* Allow to disable user request access to groups/projectsFelipe Artur2016-07-201-1/+1
|
* Exclude requesters from Project#members, Group#members and User#membersexplicit-requesters-scopeRémy Coutable2016-07-011-0/+1
| | | | | | And create new Project#requesters, Group#requesters scopes. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'master' into issue_12658Douwe Maan2016-03-211-3/+3
|\ | | | | | | | | | | | | | | | | # Conflicts: # app/models/issue.rb # app/views/projects/_home_panel.html.haml # app/views/shared/projects/_project.html.haml # db/schema.rb # spec/models/project_spec.rb
| * Use the configured Kaminari "per page" defaultrs-use-kaminari-defaultRobert Speicher2016-03-191-3/+3
| |
* | Add specs and add visibility level to admin groupsFelipe Artur2016-03-211-1/+1
|/
* Remove instance variable @group multiple assignmentYatish Mehta2016-03-081-1/+1
|
* Wrap group removal into serviceDmitriy Zaporozhets2015-06-031-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fixed the Rails/ActionFilter copJeroen van Baarsen2015-04-201-1/+1
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Track who created a group or project member.Douwe Maan2015-04-141-1/+1
|
* Use `project_member` instead of `team_member`.Douwe Maan2015-03-151-2/+2
|
* Use same constant for amount of items per pageDmitriy Zaporozhets2015-03-121-3/+3
|
* Refactor sorting in projectDmitriy Zaporozhets2015-02-051-1/+2
|
* Explicitly define ordering in models using default_scopeDmitriy Zaporozhets2015-02-051-1/+1
|
* Set group name from path in admin controllerDmitriy Zaporozhets2014-12-221-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Huge replace of old users_project and users_group referencesDmitriy Zaporozhets2014-09-141-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Group and Event strong_paramsDmitriy Zaporozhets2014-06-261-2/+6
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Improve admin group page performanceDmitriy Zaporozhets2014-06-021-0/+2
| | | | | | Add pagination for projects and members to /admin/groups/:group page Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove deprecated findersskv2014-01-191-1/+1
|
* Group ownership completely based on users_groups relation nowDmitriy Zaporozhets2013-09-261-9/+2
| | | | | | | Before we have only owner_id to determine group owner With multiple owners per group we should get rid of owner_id in group. So from now @group.owner will always be nil but @group.owners return an actual array of users who can admin this group
* Improve change group ownership logicDmitriy Zaporozhets2013-06-261-1/+1
|
* Use simple render syntax in controllersDmitriy Zaporozhets2013-06-221-2/+2
|
* Cleanup: removed unused routing/methods. Improved admin area usabilityDmitriy Zaporozhets2013-06-221-10/+0
|
* Merge branch 'master' into 6-0-devDmitriy Zaporozhets2013-06-221-4/+0
|\ | | | | | | | | | | Conflicts: VERSION db/schema.rb
| * Remove unused, but slow codeAndrew Kumanyaev2013-06-171-4/+0
| |
* | Fix user add to group from admin areaDmitriy Zaporozhets2013-06-201-7/+0
| |
* | Update admin area with new group membershipsDmitriy Zaporozhets2013-06-181-3/+1
|/
* Restyle admin:group:show. Remove .all calls fro users, projects hereDmitriy Zaporozhets2013-06-101-3/+2
|
* s/was/were/ for plural subjectsKyle Kelley2013-04-091-1/+1
|
* Added the correct hierarchy of controllers for the administrative partAndrey Kumanyaev2013-01-241-1/+1
|
* Improve perfomance of removeing groupDmitriy Zaporozhets2012-12-301-0/+2
|