summaryrefslogtreecommitdiff
path: root/spec/features/groups
Commit message (Collapse)AuthorAgeFilesLines
* Hide "New subgroup" links when subgroups are not supportedBob Van Landuyt2017-10-051-0/+30
|
* Merge branch 'revert-sidebar-title-attribute' into 'master'Filipa Lacerda2017-09-151-1/+1
|\ | | | | | | | | Remove title attribute from sidebar elements See merge request gitlab-org/gitlab-ce!14140
| * fixed merge request specrevert-sidebar-title-attributePhil Hughes2017-09-131-1/+1
| |
* | Return only group's members in user dropdowns on issuables list pages20824-scope-users-to-members-in-group-issuable-listRémy Coutable2017-09-141-0/+22
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'improve-share-locking-feature-for-subgroups' into 'master'Douwe Maan2017-09-071-0/+62
|\ | | | | | | | | | | | | Improve "Share with group lock" feature for subgroups Closes #30550 See merge request !13944
| * Refer to “Share with group lock” consistentlyimprove-share-locking-feature-for-subgroupsMichael Kozono2017-09-061-8/+8
| |
| * Specify nested_groups specsMichael Kozono2017-09-061-1/+1
| |
| * Enable share_with_group_lock on subgroupMichael Kozono2017-09-061-0/+62
| | | | | | | | …when needed
* | Add top level items to fly-out navigationPhil Hughes2017-09-061-1/+1
|/ | | | | | This only appears when in the collapsed sidebar. If the sidebar is expanded, then these items are hidden & no fly-out navigation is displayed. Closes #36294
* Fixed group merge requests failurePhil Hughes2017-09-011-1/+1
|
* spec updatesPhil Hughes2017-08-292-53/+2
|
* Add a simple spec that checks filtered search works at group merge request pageHiroyuki Sato2017-08-271-0/+15
|
* Fix edit milestone path from group milestones listJarka Kadlecova2017-08-161-2/+27
|
* Enable Timecop safe mode32004-use-timecop-safe-modeRémy Coutable2017-08-111-6/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable the RSpec/HookArgument cop and auto-correct offensesRobert Speicher2017-08-101-1/+1
|
* Group-level new issue & MR using previously selected projectBryce Johnson2017-08-071-2/+2
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-023-3/+3
|
* Add filtered search to group issue dashboardClement Ho2017-08-021-5/+5
|
* Use `empty_project` where possible in spec/features/groupsRobert Speicher2017-07-273-5/+5
|
* Remove superfluous type defs in specsKeifer Furzland2017-07-2715-15/+15
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support multiple Redis instances based on queue typePaul Charlton2017-07-111-2/+2
|
* Merge branch 'master' into rs-sign_inRobert Speicher2017-07-071-0/+28
|\
| * Native group milestonesFelipe Artur2017-07-071-0/+28
| |
* | Change gitlab_sign_in to sign_in where possibleRobert Speicher2017-06-2911-13/+16
|/
* Merge branch 'dz-refactor-group-members-tests' into 'master'Douwe Maan2017-06-279-80/+146
|\ | | | | | | | | Refactor group members tests See merge request !12465
| * Move another group member spec from spinachdz-refactor-group-members-testsDmitriy Zaporozhets2017-06-261-0/+17
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Fix leave_group_spec.rbDmitriy Zaporozhets2017-06-261-3/+3
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Move "remove group member" spec from spinach to rspecDmitriy Zaporozhets2017-06-262-63/+92
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Rename group member specs for consistent namingDmitriy Zaporozhets2017-06-265-4/+8
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Fix wrong scenario title to owner_manages_access_requests_spec.rbDmitriy Zaporozhets2017-06-261-2/+2
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Merge group request access specs under one fileDmitriy Zaporozhets2017-06-262-17/+8
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Combine group leave feature specs in one fileDmitriy Zaporozhets2017-06-263-37/+62
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Improve scenario description for the group labels subscription specDouglas Barbosa Alexandre2017-06-261-1/+1
| |
* | Allow users to subscribe to group labels on group labels pageDouglas Barbosa Alexandre2017-06-261-0/+51
| |
* | Show group name instead of path on group pagedm-group-page-nameDouwe Maan2017-06-231-4/+4
|/
* Change `login_as` uses to `gitlab_sign_in`Robert Speicher2017-06-1914-14/+14
|
* Correct RSpec/SingleLineHook cop offensesRobert Speicher2017-06-141-3/+8
|
* Merge branch 'rework-authorizations-performance' into 'master'Douwe Maan2017-05-292-4/+4
|\ | | | | | | | | Rework project authorizations and nested groups for better performance See merge request !10885
| * Use CTEs for nested groups and authorizationsYorick Peterse2017-05-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces the usage of Common Table Expressions (CTEs) to efficiently retrieve nested group hierarchies, without having to rely on the "routes" table (which is an _incredibly_ inefficient way of getting the data). This requires a patch to ActiveRecord (found in the added initializer) to work properly as ActiveRecord doesn't support WITH statements properly out of the box. Unfortunately MySQL provides no efficient way of getting nested groups. For example, the old routes setup could easily take 5-10 seconds depending on the amount of "routes" in a database. Providing vastly different logic for both MySQL and PostgreSQL will negatively impact the development process. Because of this the various nested groups related methods return empty relations when used in combination with MySQL. For project authorizations the logic is split up into two classes: * Gitlab::ProjectAuthorizations::WithNestedGroups * Gitlab::ProjectAuthorizations::WithoutNestedGroups Both classes get the fresh project authorizations (= as they should be in the "project_authorizations" table), including nested groups if PostgreSQL is used. The logic of these two classes is quite different apart from their public interface. This complicates development a bit, but unfortunately there is no way around this. This commit also introduces Gitlab::GroupHierarchy. This class can be used to get the ancestors and descendants of a base relation, or both by using a UNION. This in turn is used by methods such as: * Namespace#ancestors * Namespace#descendants * User#all_expanded_groups Again this class relies on CTEs and thus only works on PostgreSQL. The Namespace methods will return an empty relation when MySQL is used, while User#all_expanded_groups will return only the groups a user is a direct member of. Performance wise the impact is quite large. For example, on GitLab.com Namespace#descendants used to take around 580 ms to retrieve data for a particular user. Using CTEs we are able to reduce this down to roughly 1 millisecond, returning the exact same data. == On The Fly Refreshing Refreshing of authorizations on the fly (= when users.authorized_projects_populated was not set) is removed with this commit. This simplifies the code, and ensures any queries used for authorizations are not mutated because they are executed in a Rails scope (e.g. Project.visible_to_user). This commit includes a migration to schedule refreshing authorizations for all users, ensuring all of them have their authorizations in place. Said migration schedules users in batches of 5000, with 5 minutes between every batch to smear the load around a bit. == Spec Changes This commit also introduces some changes to various specs. For example, some specs for ProjectTeam assumed that creating a personal project would _not_ lead to the owner having access, which is incorrect. Because we also no longer refresh authorizations on the fly for new users some code had to be added to the "empty_project" factory. This chunk of code ensures that the owner's permissions are refreshed after creating the project, something that is normally done in Projects::CreateService.
* | use full caps RSS instead of rssAlexis Reigel2017-05-243-10/+10
| |
* | atom links with rss token instead of private tokenAlexis Reigel2017-05-243-10/+10
| |
* | Use wait_for_requests to wait all JS requestwait-for-ajax-handling-all-js-requestsOswaldo Ferreira2017-05-221-1/+1
|/
* Devise can assign trackable fields, but only allow writes once/hourtc-cache-trackable-attributesToon Claes2017-05-081-2/+2
| | | | Not assigning the trackable fields seems to cause strange side-effects.
* Redirect from redirect routes to canonical routesMichael Kozono2017-05-051-0/+3
|
* Add happy path feature tests for redirect behaviorMichael Kozono2017-05-051-0/+77
|
* Assignee filter on group issues/merge requests only loads group usersgroup-assignee-dropdown-send-group-idPhil Hughes2017-04-241-0/+16
| | | | Closes #29490
* Merge branch 'dz-refactor-create-members' into 'master' Douwe Maan2017-04-201-2/+52
|\ | | | | | | | | Refactor code that creates and destroys project/group members See merge request !10735
| * Move some project/group members spinach tests to rspecdz-refactor-create-membersDmitriy Zaporozhets2017-04-171-2/+52
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Fixed group milestones date pickers not workinggroup-milestone-date-fields-fixPhil Hughes2017-04-191-0/+36
|/ | | | Closes #31095
* MR empty stateLuke "Jared" Bennett2017-04-051-0/+70
|