summaryrefslogtreecommitdiff
path: root/app/models/members/project_member.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42GitLab Bot2021-08-191-6/+18
|
* Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42GitLab Bot2021-07-201-7/+1
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-191-3/+3
|
* Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43GitLab Bot2021-04-201-0/+2
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-1/+1
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-0/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Avoid calling freeze on already frozen strings in app/modelsdineshpanda2019-09-011-1/+1
|
* Upgrade Rails to 5.1.6.1Jasper Maes2019-04-231-1/+1
| | | | Model.new.attributes now also returns encrypted attributes.
* Add subresources removal to member destroy serviceJames Lopez2019-01-311-0/+4
|
* 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-071-0/+2
| | | | 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-261-3/+3
| | | | | | 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-111-2/+2
| | | | since this is for user invites and the like.
* add Member#notifiable?(type, opts)http://jneen.net/2017-08-111-0/+4
|
* Allow group reporters to manage group labels33154-permissions-for-project-labels-and-group-labelsSean McGivern2017-06-051-4/+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-211-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Enable Rails/ValidationDouwe Maan2017-02-231-1/+1
|
* Enable Style/MutableConstantDouwe Maan2017-02-231-1/+1
|
* Remove redundant class_name and foreign_key overridesDavid Wagner2016-10-241-1/+1
| | | | | | 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-281-29/+15
| | | | | | | | | | | | | | | | | | | | | 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-181-12/+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-141-2/+2
| | | | | | | | | + 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-141-19/+11
| | | | 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
|
* Fix broken specsLong Nguyen2016-05-211-2/+1
|
* Remove todos when destroy project member and specsLong Nguyen2016-05-211-1/+3
|
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-19/+0
| | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* Annotate the modelsZeger-Jan van de Weg2016-05-061-4/+4
|
* Small refactoring and cleanup of notification logicDmitriy Zaporozhets2016-03-301-1/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Use consistent markup and styling for highlighting across blobs, diffs, ↵Douwe Maan2016-01-211-3/+3
| | | | blame and snippets
* Re-annotate modelsStan Hu2015-05-031-1/+5
|
* Follow newline guidelines.Douwe Maan2015-04-141-0/+1
|
* Remove duplication between Group and ProjectMember.Douwe Maan2015-04-141-17/+2
|
* Let invites be declined.Douwe Maan2015-04-141-0/+6
|
* Let members be invited from Add members pane.Douwe Maan2015-04-141-3/+19
|
* Add emails around invitation.Douwe Maan2015-04-141-0/+12
|
* Add invite logic to Member.Douwe Maan2015-04-141-19/+14
|