Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-28Optimize Event queries by removing default orderAlejandro Rodríguez
2016-10-24Remove redundant class_name and foreign_key overridesDavid Wagner
They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
2016-10-20Differentiate the expire from leave eventCallum Dryden
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.
2016-09-28Allow Member.add_user to handle access requestersRémy Coutable
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>
2016-09-16Remove schema annotations completelyValery Sizov
2016-08-30remove Ability.abilitieshttp://jneen.net/
2016-08-30remove six, and use a Set insteadhttp://jneen.net/
2016-08-10New AccessRequests API endpoints for Group & ProjectRémy Coutable
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>
2016-08-09adds second batch of tests changed to active tensetiagonbotelho
2016-08-04Fix Rename `add_users_into_project` and `projects_ids`Herminio Torres
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.
2016-07-12Avoid `describe`-ing symbols in specsRobert Speicher
2016-07-01Enable Style/EmptyLines cop, remove redundant onesGrzegorz Bizon
2016-06-18New Members::DestroyServiceRémy Coutable
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>
2016-06-14UI and copywriting improvementsRémy Coutable
+ 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>
2016-06-14Add request access for groupsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-21Fix broken specsLong Nguyen
2016-05-21Fix broken specsLong Nguyen
2016-05-20Remove todos when destroy project member and specsLong Nguyen
2015-12-09Tag model specsDouwe Maan
2015-06-26Rename abilities to correspond contoller/model action namesDmitriy Zaporozhets
write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-22Update mock and stub syntax for specsRobert Speicher
2015-05-03Re-annotate modelsStan Hu
2015-03-15Use `group_member` instead of `users_group` or `membership`.Douwe Maan
2015-02-12Updated rspec to rspec 3.x syntaxJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-01-30Make the structure of spec/models match app/modelsRobert Speicher