summaryrefslogtreecommitdiff
path: root/app/models/members
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42GitLab Bot2021-08-192-8/+32
|
* Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42GitLab Bot2021-07-202-11/+3
|
* Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42GitLab Bot2021-06-162-33/+35
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-192-4/+4
|
* Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43GitLab Bot2021-04-203-1/+51
|
* Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42Robert Speicher2021-01-201-1/+11
|
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-191-0/+1
|
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-0/+9
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-8/+1
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-182-3/+10
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-0/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-011-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-041-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-132-0/+4
|
* Avoid calling freeze on already frozen strings in app/modelsdineshpanda2019-09-012-2/+2
|
* Merge branch '39-count-unique-users-for-more-accurate-smau-reporting' into ↵Nick Thomas2019-08-191-1/+1
|\ | | | | | | | | | | | | 'master' Allow UsageData.count to use count_by: See merge request gitlab-org/gitlab-ce!30770
| * New GroupMember.of_ldap_type scope39-count-unique-users-for-more-accurate-smau-reportingAsh McKenzie2019-07-181-1/+1
| |
* | Resolve "MembersFinder contains slow database query with OR conditions"🙈 jacopo beschi 🙉2019-07-291-0/+2
|/
* Rename methods that conflict in Rails 5.255583-rename-method-conflictsHeinrich Lee Yu2019-05-121-1/+1
| | | | | Adds suffix to enum methods and changes `in_groups` to `of_groups`
* Upgrade Rails to 5.1.6.1Jasper Maes2019-04-232-2/+2
| | | | Model.new.attributes now also returns encrypted attributes.
* Remove N+1 queries from users autocompleteSean McGivern2019-03-251-0/+2
| | | | | | | | | | | Both of these were related to groups: 1. We need to preload routes (using the `with_route` scope) if we're going to get the group's path. 2. We were counting each group's members separately. They're in the same commit because the spec for N+1 detection wouldn't pass with only one of these fixes.
* Add subresources removal to member destroy serviceJames Lopez2019-01-312-0/+6
|
* Remove unnecessary includes of ShellAdapterStan Hu2018-12-051-2/+0
| | | | | | | | | | Determined by running the script: ``` included = `git grep --name-only ShellAdapter`.chomp.split("\n") used = `git grep --name-only gitlab_shell`.chomp.split("\n") included - used ```
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Enable more frozen string in app/models/**/*.rbgfyoung2018-08-072-0/+4
| | | | Partially addresses #47424.
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-3/+3
|
* Ensure member notifications are sent after the member actual creation/update ↵Rémy Coutable2018-04-262-6/+6
| | | | | | in the DB Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't delete todos or unassign issues and MRs when a user leaves a projectunassign-when-leavingDouwe Maan2018-03-071-6/+0
|
* a membership with no user is always notifiablehttp://jneen.net/2017-08-112-4/+4
| | | | since this is for user invites and the like.
* add Member#notifiable?(type, opts)http://jneen.net/2017-08-112-0/+8
|
* Allow group reporters to manage group labels33154-permissions-for-project-labels-and-group-labelsSean McGivern2017-06-052-8/+0
| | | | | | | | | Previously, only group masters could do this. However, project reporters can manage project labels, so there doesn't seem to be any need to restrict group labels further. Also, save a query or two by getting a single GroupMember object to find out if the user is a master or not.
* Refactor add_users method for project and groupdz-cleanup-add-usersDmitriy Zaporozhets2017-04-212-14/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Support 2FA requirement per-groupMarkus Koller2017-04-061-0/+5
|
* Enable Rails/ValidationDouwe Maan2017-02-232-2/+2
|
* Enable Style/MutableConstantDouwe Maan2017-02-232-2/+2
|
* Remove redundant class_name and foreign_key overridesDavid Wagner2016-10-242-2/+2
| | | | | | They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
* Differentiate the expire from leave eventCallum Dryden2016-10-201-1/+5
| | | | | | | | | | At the moment we cannot see weather a user left a project due to their membership expiring of if they themselves opted to leave the project. This adds a new event type that allows us to make this differentiation. Note that is not really feasable to go back and reliably fix up the previous events. As a result the events for previous expire removals will remain the same however events of this nature going forward will be correctly represented.
* Allow Member.add_user to handle access requestersRémy Coutable2016-09-282-29/+31
| | | | | | | | | | | | | | | | | | | | | Changes include: - Ensure Member.add_user is not called directly when not necessary - New GroupMember.add_users_to_group to have the same abstraction level as for Project - Refactor Member.add_user to take a source instead of an array of members - Fix Rubocop offenses - Always use Project#add_user instead of project.team.add_user - Factorize users addition as members in Member.add_users_to_source - Make access_level a keyword argument in GroupMember.add_users_to_group and ProjectMember.add_users_to_projects - Destroy any requester before adding them as a member - Improve the way we handle access requesters in Member.add_user Instead of removing the requester and creating a new member, we now simply accepts their access request. This way, they will receive a "access request granted" email. - Fix error that was previously silently ignored - Stop raising when access level is invalid in Member, let Rails validation do their work Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'master' into expiration-date-on-membershipsSean McGivern2016-08-181-3/+4
|\
| * New AccessRequests API endpoints for Group & ProjectRémy Coutable2016-08-101-0/+1
| | | | | | | | | | | | | | | | Also, mutualize AccessRequests and Members endpoints for Group & Project. New API documentation for the AccessRequests endpoints. Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Fix Rename `add_users_into_project` and `projects_ids`Herminio Torres2016-08-041-3/+3
| | | | | | | | | | | | We never add things `into` projects, we just add them `to` projects. So how about we rename this to `add_users_to_project`. Rename `projects_ids` to `project_ids` by following the convention of rails.
* | Replace optional parameters with keyword arguments.Adam Niedzielski2016-08-021-2/+8
| |
* | WIPAdam Niedzielski2016-08-011-2/+2
|/
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-1/+0
|
* New Members::DestroyServiceRémy Coutable2016-06-182-24/+0
| | | | | | | This is to ensure we don't send unwanted notifications when deleting a project. In other words, stop abusing AR callbacks and use services. Signed-off-by: Rémy Coutable <remy@rymai.me>
* UI and copywriting improvements13948-access-request-to-projects-and-groupsRémy Coutable2016-06-142-4/+9
| | | | | | | | | + Move 'Edit Project/Group' out of membership-related partial + Show the access request buttons only to logged-in users + Put the request access buttons out of in a more visible button + Improve the copy in the #remove_member_message helper Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add request access for groupsRémy Coutable2016-06-142-22/+23
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Initial implementation of user access request to projectsDavid Alexander2016-06-141-0/+18
|
* Add changelog and code refactorLong Nguyen2016-05-301-1/+5
|
* Fix Member specLong Nguyen2016-05-221-1/+1
|