summaryrefslogtreecommitdiff
path: root/spec/models/project_team_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use `:empty_project` where possible in model specsrs-empty_project-modelsRobert Speicher2017-01-261-5/+5
|
* Update ProjectTeam#fetch_members to use project authorizationsfix/drop-project-authorized-for-userAhmad Sherif2016-11-231-1/+1
|
* Update ProjectTeam#max_member_access_for_user_ids to use project authorizationsAhmad Sherif2016-11-231-6/+6
|
* Drop Project#authorized_for_user? in favor of ProjectTeam#member?Ahmad Sherif2016-11-231-0/+51
| | | | Closes #23938
* Add shortcuts for adding users to a project team with a specific rolers-project-team-helpersRobert Speicher2016-11-181-17/+17
| | | | | | | | | | This also updates _some_ specs to use these new methods, just to serve as an example for others going forward, but by no means is this exhaustive. Original implementations at !5992 and !6012. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/20944
* Make access request specs explicitly enable or disable access requests as ↵Nick Thomas2016-11-111-4/+4
| | | | required
* Fix specs that requires an access requestRémy Coutable2016-09-221-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix a logic error in ProjectTeam#fetch_invited_membersRobert Speicher2016-09-201-0/+1
| | | | | | We were calling `.where` and `.send` on the relation, but never doing anything with the return value, resulting in proper access-level filtering never being of any consequence.
* Add specs for ProjectTeam#fetch_membersRobert Speicher2016-09-201-0/+61
|
* Only use RequestStore in ProjectTeam#max_member_access_for_user if it is activeStan Hu2016-08-011-40/+61
|
* Rubocop offensesStan Hu2016-07-261-8/+8
|
* Optimize the invited group link access level checkStan Hu2016-07-261-2/+12
|
* Optimize maximum user access level lookup in loading of notesStan Hu2016-07-261-8/+43
| | | | | | | | NotesHelper#note_editable? and ProjectTeam#human_max_access currently take about 16% of the load time of an issue page. This MR preloads the maximum access level of users for all notes in issues and merge requests with several queries instead of one per user and caches the result in RequestStore.
* UI and copywriting improvements13948-access-request-to-projects-and-groupsRémy Coutable2016-06-141-0/+22
| | | | | | | | | + 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-56/+94
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Project members with guest role can't access confidential issuesDouglas Barbosa Alexandre2016-06-131-0/+6
|
* Bring shared project feature tests from EEDmitriy Zaporozhets2016-03-121-0/+44
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Allow `ProjectTeam#human_max_access` to return "Owner"rs-show-owner-labelRobert Speicher2016-02-181-8/+18
|
* Tag model specsDouwe Maan2015-12-091-1/+1
|
* Wrong access level badge on MR commentsaccess_level_badge_bugValery Sizov2015-10-021-0/+12
|
* Add `Group#add_*` convenience methodsrs-group-convenience-methodsRobert Speicher2015-08-071-3/+3
| | | | Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
* Fix Style/TrailingBlankLines cop violationsRobert Speicher2015-06-221-1/+0
|
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-22/+22
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Snippets: public/internal/privateValery Sizov2014-10-091-0/+4
|
* Fix permission issue with highest access level for groupDmitriy Zaporozhets2014-06-201-21/+51
| | | | | | | | If user was a member of both group and project and group access level was higher it was not respected and user got lowest project access level. Now it is fixed and user get highest access level Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fixed the project team specsJeroen van Baarsen2014-06-081-8/+8
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Improve performance of application for large teamsDmitriy Zaporozhets2014-06-041-7/+28
| | | | | | | This commit fixes a lot of sql queries to db for for groups and projects with big amount of members. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* remove tests for unexisting methodsDmitriy Zaporozhets2013-02-261-3/+0
|
* repair rspec (remove and rename files)Andrey Kumanyaev2013-01-241-0/+18