summaryrefslogtreecommitdiff
path: root/spec/features
Commit message (Collapse)AuthorAgeFilesLines
* Support uploads for newly created personal snippets12910-snippets-descriptionJarka Kadlecova2017-06-073-6/+28
|
* Support descriptions for snippetsJarka Kadlecova2017-05-313-2/+173
|
* Merge branch '30410-revert-9347-and-10079' into 'master'Douwe Maan2017-05-303-11/+5
|\ | | | | | | | | | | | | Resolve "Allow to disable username on checkout url" Closes #30410 and #30174 See merge request !11792
| * Don't allow to pass a user to ProjectWiki#http_url_to_repoRémy Coutable2017-05-301-1/+1
| | | | | | | | | | | | This partially reverts be25bbc4d2c7e3d5cf3da6f51cb7f7355295ef52. Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Revert "Merge branch '1937-https-clone-url-username' into 'master' "Rémy Coutable2017-05-302-10/+4
| | | | | | | | | | | | | | This reverts commit c425f366bfa84efab92b5d5e1d0721f16a2890bc, reversing changes made to 82f6c0f5ac4ed29390ed90592d2c431f3494d93f. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'Disable-sub_group_issuables_spec-for-mysql' into 'master'Rémy Coutable2017-05-301-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Disable sub_group_issuables_spec.rb for mysql Closes #33057 See merge request !11795
| * | Disable sub_group_issuables_spec.rb for mysqlLuke "Jared" Bennett2017-05-301-1/+1
| |/
* | Merge branch ↵Douwe Maan2017-05-302-45/+66
|\ \ | |/ |/| | | | | | | | | | | | | '19107-404-when-creating-new-milestone-or-issue-for-project-that-has-issues-disabled' into 'master' 'New issue'/'New merge request' dropdowns should show only projects with issues/merge requests feature enabled Closes #19107 See merge request !11754
| * 'New issue'/'New merge request' dropdowns should show only projects with ↵19107-404-when-creating-new-milestone-or-issue-for-project-that-has-issues-disabledblackst0ne2017-05-302-45/+66
| | | | | | | | issues/merge requests feature enabled
* | Update looks job logFilipa Lacerda2017-05-301-9/+9
| |
* | Merge branch '2472-assignee-dropdown-does-not-display-selected-assignee-ce' ↵Phil Hughes2017-05-302-0/+77
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | into 'master' Assignee dropdown does not display selected assignee Closes #2472 See merge request !11744
| * | Fix rubocop2472-assignee-dropdown-does-not-display-selected-assignee-ceClement Ho2017-05-261-3/+1
| | |
| * | Backport MR from EEClement Ho2017-05-262-0/+79
| | |
* | | Merge branch '31616-add-uptime-of-gitlab-instance-in-admin-area' into 'master'Rémy Coutable2017-05-301-0/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 31616-add-uptime-of-gitlab-instance-in-admin-area Closes #31616 See merge request !11590
| * | | 31616-add-uptime-of-gitlab-instance-in-admin-areajboltz882017-05-291-0/+3
| | | |
* | | | Merge branch '32790-pipeline_schedules-pages-throwing-error-500' into 'master'Kamil Trzciński2017-05-291-0/+24
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "pipeline_schedules pages throwing error 500" Closes #32790 See merge request !11706
| * | | | NULL to nilShinya Maeda2017-05-291-2/+2
| | | | |
| * | | | Reproduced2Shinya Maeda2017-05-291-0/+24
| | | | |
| * | | | Revert "Reproduced"Shinya Maeda2017-05-291-24/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit 3e0d8b4ca7d7bd0f1ce014b6caaff1b1e32b1f8f.
| * | | | ReproducedShinya Maeda2017-05-291-0/+24
| | |_|/ | |/| |
* | | | Merge branch '23036-replace-all-spinach-tests-with-rspec-feature-tests' into ↵Rémy Coutable2017-05-291-1/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Replace 'starred_projects.feature' spinach test with an rspec analog See merge request !11752
| * | | | Replace 'starred_projects.feature' spinach test with an rspec analog23036-replace-all-spinach-tests-with-rspec-feature-testsblackst0ne2017-05-281-1/+13
| |/ / /
* | | | Merge branch 'rework-authorizations-performance' into 'master'Douwe Maan2017-05-298-17/+15
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Rework project authorizations and nested groups for better performance See merge request !10885
| * | | Use CTEs for nested groups and authorizationsYorick Peterse2017-05-178-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge branch ↵Fatih Acet2017-05-263-4/+40
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | '32447-remove-source-branch-is-displayed-to-mergers-who-cannot-actually-delete-the-source-branch-from-a-forked-project' into 'master' Disable "Remove source branch" in MR Widget for users who can't remove, and re-add checkbox to MR form Closes #32447 and #32907 See merge request !11558
| * | | Update MWPS feature spec per change to remove source branch default.32447-remove-source-branch-is-displayed-to-mergers-who-cannot-actually-delete-the-source-branch-from-a-forked-projectBryce Johnson2017-05-251-2/+2
| | | |
| * | | Set up merge request from fork more simply.Bryce Johnson2017-05-241-10/+2
| | | |
| * | | Remove spec from created_from_fork_spec.Bryce Johnson2017-05-241-15/+0
| | | |
| * | | Move spec and add one for merge button not disabled.Bryce Johnson2017-05-241-0/+29
| | | |
| * | | Add spec for disabled Remove source branch checkbox.Bryce Johnson2017-05-231-0/+15
| | | |
| * | | Set merge params to force_remove_source_branch by default.Bryce Johnson2017-05-231-2/+4
| | | |
| * | | Shush rubocop.Bryce Johnson2017-05-221-1/+0
| | | |
| * | | Upgrade Remove Source Branch checkbox UX.Bryce Johnson2017-05-221-0/+14
| | | |
* | | | Merge branch 'issuable-form-create-label-sub-groups' into 'master'Filipa Lacerda2017-05-261-0/+31
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed create new label form in issue form not working for sub-group projects Closes #32906 See merge request !11703
| * | | | Fixed create new label form in issue form not working for sub-group projectsissuable-form-create-label-sub-groupsPhil Hughes2017-05-251-0/+31
| | | | | | | | | | | | | | | | | | | | Closes #32906
* | | | | Merge branch 'fix-filtered-search-issuable-empty-state-exception' into 'master'Phil Hughes2017-05-251-0/+32
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix filtered search issuable empty state exception Closes #31455 See merge request !11347
| * | | | | Remove shared example and improve sub_group_issuables_spec.rbfix-filtered-search-issuable-empty-state-exceptionLuke "Jared" Bennett2017-05-251-14/+17
| | | | | |
| * | | | | Added specs to test for subgroup titles on issue and mr pagesLuke "Jared" Bennett2017-05-121-0/+29
| | | | | |
* | | | | | Merge branch '17848-web-hook-logging' into 'master'Dmitriy Zaporozhets2017-05-253-7/+100
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Web Hooks calls logging Closes #17848 See merge request !11027
| * | | | | | Implement web hooks loggingAlexander Randa2017-05-253-7/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implemented logging of project and system web hooks * implemented UI for user area (project hooks) * implemented UI for admin area (system hooks) * implemented retry of logged webhook * NOT imeplemented log remover
* | | | | | | Add review comments to compare_spec.rbLuke "Jared" Bennett2017-05-251-0/+2
| | | | | | |
* | | | | | | Fix transient error clicking dropdown items in compare_spec.rbLuke "Jared" Bennett2017-05-251-1/+3
| |_|/ / / / |/| | | | |
* | | | | | Merge branch 'feature/rss-scoped-token' into 'master'Douwe Maan2017-05-2419-48/+99
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use rss token for atom access See merge request !11647
| * | | | | | user can reset his rss token on the account pageAlexis Reigel2017-05-241-0/+15
| | | | | | |
| * | | | | | use full caps RSS instead of rssAlexis Reigel2017-05-2416-35/+35
| | | | | | |
| * | | | | | atom links with rss token instead of private tokenAlexis Reigel2017-05-2418-48/+84
| | | | | | |
* | | | | | | Add specDouwe Maan2017-05-241-0/+19
|/ / / / / /
* | | | | | Merge branch 'dm-copy-as-gfm-without-empty-elements' into 'master'Filipa Lacerda2017-05-241-3/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't copy empty elements that were not selected on purpose as GFM See merge request !11520
| * | | | | | Add specDouwe Maan2017-05-231-0/+13
| | | | | | |
| * | | | | | Don't copy empty elements that were not selected on purpose as GFMDouwe Maan2017-05-181-3/+0
| | | | | | |