summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* WIPKamil Trzcinski2016-06-031-11/+25
|
* Move JS graph specs to match assets tree.Connor Shea2016-06-013-0/+0
|
* Fix teaspoonConnor Shea2016-06-013-3/+3
|
* Merge branch 'upgrade-devise-two-factor' into 'master' Robert Speicher2016-06-023-3/+3
|\ | | | | | | | | | | | | | | | | Upgrade devise, devise-two-factor, and attr_encrypted Devise 4 includes support for Rails 5, working towards #14286. devise-async doesn't support Devise 4.0 and in 4.1 the bug that was blocking using Devise's built-in ActiveJob integration was fixed. So devise-async is removed. devise-two-factor 3.0.0 is required for Devise 4 support. attr_encrypted and encryptor are optional but recommended upgrades for devise-two-factor 3.0.0. The mode and algorithm will need to be changed in order to update to attr_encrypted 4.x in the future. See merge request !4216
| * Fix a broken specConnor Shea2016-05-301-1/+1
| | | | | | | | | | Temporary fix until Devise 4 fixes this grammar issue: https://github.com/plataformatec/devise/issues/4095
| * Upgrade attr_encrypted and encryptorConnor Shea2016-05-302-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | attr_encrypted (1.3.4 => 3.0.1) Changelog: https://github.com/attr-encrypted/attr_encrypted/blob/master/CHANGELOG.m d attr_encrypted 2.x included a vulnerability, so that major version is skipped. 3.x requires that the algorithm and mode used by each encrypted attribute is specified explicitly. `nil` is no longer a valid value for the encrypted_value_iv field, so it’s changed to a randomly generated string.
* | Introduce container_registry_path_with_namespacedowncase-registry-repositoryKamil Trzcinski2016-06-011-14/+9
| |
* | Merge remote-tracking branch 'origin/master' into downcase-registry-repositoryKamil Trzcinski2016-06-012-3/+4
|\ \
| * | Fix note validation spec failuresStan Hu2016-06-012-3/+4
| | |
* | | Use downcased path to container repository as this is expected path by DockerKamil Trzcinski2016-06-011-0/+14
|/ /
* | Merge branch 'separate-banzai-references' into 'master' Douwe Maan2016-06-0131-238/+1380
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Separate reference gathering from rendering This is a required step to allow batch processing when gathering references. This in turn would allow grabbing (for example) all mentioned users of an issue/merge request using a single query. cc @rspeicher @DouweM See merge request !3969
| * | Refactor ParticipableYorick Peterse2016-06-018-3/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several changes to this module: 1. The use of an explicit stack in Participable#participants 2. Proc behaviour has been changed 3. Batch permissions checking == Explicit Stack Participable#participants no longer uses recursion to process "self" and all child objects, instead it uses an Array and processes objects in breadth-first order. This allows us to for example create a single Gitlab::ReferenceExtractor instance and pass this to any Procs. Re-using a ReferenceExtractor removes the need for running potentially many SQL queries every time a Proc is called on a new object. == Proc Behaviour Changed Previously a Proc in Participable was expected to return an Array of User instances. This has been changed and instead it's now expected that a Proc modifies the Gitlab::ReferenceExtractor passed to it. The return value of the Proc is ignored. == Permissions Checking The method Participable#participants uses Ability.users_that_can_read_project to check if the returned users have access to the project of "self" _without_ running multiple SQL queries for every user.
| * | Split Markdown rendering & reference gatheringYorick Peterse2016-05-2622-235/+961
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This splits the Markdown rendering and reference extraction phases into two distinct code bases. The reference extraction phase no longer relies on the html-pipeline Gem (and any related code) and allows for extracting of references from multiple HTML nodes in a single pass. This means that if you want to extract user references from 200 comments you no longer need to run 200 times N number of queries, instead only a handful of queries may be needed.
| * | Added Gitlab::LazyYorick Peterse2016-05-261-0/+37
| | | | | | | | | | | | | | | | | | | | | This class can be used to lazy-evaluate blocks of code the first time they're called. This can be useful when a method performs a certain heavy operation (e.g. a SQL query) that you only want to perform whenever the result is used for the first time.
| * | Don't modify arguments in CommitRange#initializeYorick Peterse2016-05-261-0/+10
| | | | | | | | | | | | | | | This method used to call strip! on input strings which will mess with the strings if they're re-used or frozen.
* | | Merge branch 'fix-cancelable-retryable' into 'master' Douwe Maan2016-06-011-0/+30
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix cancelability and retriablity of pipeline with generic statuses Currently it's not possible to cancel or retry generic status since this is external thing to GitLab. This fixes shown actions of pipelines containing only these actions. See merge request !4380
| * | | Fix rubocop offensesfix-cancelable-retryableKamil Trzcinski2016-06-011-2/+2
| | | |
| * | | Test cancelability and retriablity of pipeline for generic statusesKamil Trzcinski2016-05-311-0/+30
| | | |
* | | | Merge branch 'fix/error-500-in-pipeline-when-fork' into 'master' Rémy Coutable2016-06-011-0/+58
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use project that belongs to pipeline in view ## What does this MR do? This MR makes project in pipelines view match the one that pipeline has been created for. Closes #17943 See merge request !4376
| * | | | Add feature specs for pipeline in MR from forkGrzegorz Bizon2016-06-011-8/+38
| | | | |
| * | | | Add feature test for accessing MR created from forkGrzegorz Bizon2016-06-011-0/+28
| | | | |
* | | | | Merge branch ↵Douwe Maan2016-06-011-0/+42
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 'long.polyglot/gitlab-ce-issue_17479_todos_not_remove_when_leave_project'
| * \ \ \ \ Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Long Nguyen2016-05-3094-353/+1044
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | issue_17479_todos_not_remove_when_leave_project
| * \ \ \ \ \ Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Long Nguyen2016-05-221-1/+12
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | issue_17479_todos_not_remove_when_leave_project
| * | | | | | | Fix broken specsLong Nguyen2016-05-211-3/+3
| | | | | | | |
| * | | | | | | Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into ↵Long Nguyen2016-05-2122-36/+534
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | issue_17479_todos_not_remove_when_leave_project
| * | | | | | | | Fix broken specsLong Nguyen2016-05-211-1/+0
| | | | | | | | |
| * | | | | | | | Remove todos when destroy project member and specsLong Nguyen2016-05-211-0/+43
| | | | | | | | |
* | | | | | | | | Merge branch 'rs-remember-me-2fa' into 'master' Douwe Maan2016-06-013-3/+32
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the "Remember me" value to the 2FA token form Prior, if a user had 2FA enabled and checked the "Remember me" field, the setting was ignored because the OTP input was on a new form and the value was never passed. Closes #18000 See merge request !4369
| * | | | | | | | | Pass the "Remember me" value to the 2FA token formrs-remember-me-2faRobert Speicher2016-05-303-3/+32
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior, if a user had 2FA enabled and checked the "Remember me" field, the setting was ignored because the OTP input was on a new form and the value was never passed. Closes #18000
* | | | | | | | | Merge branch 'current-settings-use-request-store-during-request'Douwe Maan2016-06-015-12/+12
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Update tests for the current_application_settings request store changesDJ Mountney2016-05-275-12/+12
| | | | | | | | | |
* | | | | | | | | | Merge branch 'fix-404-labels-in-todos' into 'master' Douwe Maan2016-06-011-0/+21
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix 404 page when viewing TODOs that contain milestones or labels in different projects A user viewing the TODOs page will see a 404 if there are mentioned milestones or labels in multiple different projects. This is likely a caching bug and only occurs when Markdown rendering occurs across multiple projects, which is why it's so tricky to reproduce. This is what I think is happening: 1. LabelReferenceFilter#references_in encounters label ~X for ProjectA and finds the label in the DB as id = 1. 2. LabelReferenceFilter.references_in yields [1, 'X', nil, ...] 3. Since project_ref is nil, AbstractReferenceFilter#project_from_ref_cache caches nil => ProjectA. 4. LabelReferenceFilter#references_in encounters label ~Y for ProjectB and finds the label in the DB as id = 2. 5. LabelReferenceFilter.references_in yields [2, 'Y', nil, ...] 6. AbstractReferenceFilter#project_from_ref_cache lookups nil and returns ProjectA. It was supposed to be ProjectB. 7. A is the wrong project, so the label lookup fails. This MR expands the `project_ref` to the right value as soon as we have it to avoid this caching bug. Closes #17898 See merge request !4312
| * | | | | | | | | | Fix 404 page when viewing TODOs that contain milestones or labels in ↵Stan Hu2016-05-311-0/+21
| | |_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | different projects A user viewing the TODOs page will see a 404 if there are mentioned labels in multiple different projects. This is likely a caching bug and only occurs when Markdown rendering occurs across multiple projects, which is why it's so tricky to reproduce. This is what I think is happening: 1. LabelReferenceFilter#references_in encounters label ~X for ProjectA and finds the label in the DB as id = 1. 2. LabelReferenceFilter.references_in yields [1, 'X', nil, ...] 3. Since project_ref is nil, AbstractReferenceFilter#project_from_ref_cache caches nil => ProjectA. 4. LabelReferenceFilter#references_in encounters label ~Y for ProjectB and finds the label in the DB as id = 2. 5. LabelReferenceFilter.references_in yields [2, 'Y', nil, ...] 6. AbstractReferenceFilter#project_from_ref_cache lookups nil and returns ProjectA. It was supposed to be ProjectB. 7. A is the wrong project, so the label lookup fails. This MR caches Markdown references if the key is present. Closes #17898
* | | | | | | | | | Merge branch 'issue_15557' into 'master' Rémy Coutable2016-06-014-30/+39
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix error 500 when sorting issues by milestone due date and filtering by labels fixes #15557 See merge request !4327
| * | | | | | | | | | Add leading comment space copissue_15557Felipe Artur2016-05-313-30/+30
| | | | | | | | | | |
| * | | | | | | | | | Fix error 500 when sorting issues by milestone due date and filtering by labelsFelipe Artur2016-05-311-0/+9
| | |/ / / / / / / / | |/| | | | | | | |
* | | | | | | | | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2016-06-013-22/+48
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | |
| * | | | | | | | | Merge branch 'refactoring/improve-build-specs' into 'master' Robert Speicher2016-05-311-22/+20
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove redundant factory namespace in build specs Extracted from !4351. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4351#note_12154604 See merge request !4373
| | * | | | | | | | | Remove redundant factory namespace in build specsrefactoring/improve-build-specsGrzegorz Bizon2016-05-311-22/+20
| | | |_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: spec/models/build_spec.rb
| * | | | | | | | | Merge branch 'feature/improve_wiki_page_events' into 'master' Rémy Coutable2016-05-311-0/+13
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include Wiki attributes in Wiki page events webhook The hook data we are sending is not 100% correct (we send details of the project, but should also send details of the "ProjectWiki" attributes like URLs and repositories relative to the wiki itself). This is a follow up to #17506 Fixes #17507 See merge request !4138
| | * | | | | | | | | Fix hook data for Wiki Page eventGabriel Mazetto2016-05-311-0/+13
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added "wiki" section and removed "repository"
| * | | | | | | | | Fix rubocop offensesKamil Trzcinski2016-05-311-1/+1
| | | | | | | | | |
| * | | | | | | | | Test token expirabilityKamil Trzcinski2016-05-311-0/+15
| |/ / / / / / / /
* | | | | | | | | Merge branch 'data_leak' into 'master' Robert Speicher2016-05-311-0/+19
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Confidential notes data leak Fixes part of https://gitlab.com/gitlab-org/gitlab-ee/issues/575 See merge request !1967
| * | | | | | | | Confidential notes data leakValery Sizov2016-05-311-0/+19
| | | | | | | | |
* | | | | | | | | Merge branch ↵Stan Hu2016-05-311-29/+17
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'make-container-registry-authentication-service-compatible-with-older-docker' into 'master' Make authentication service for Container Registry to be compatible with < Docker 1.11 This removes the usage of `offline_token` which is only present when using `Docker 1.11.x` instead we relay on `scope`. This should make it compatible with any client starting from 1.6 (I did test only 1.8 and up). Right now we return 403 if unauthorized user doesn't have access to anything. In all other cases we return token, but with empty `access`, which simply disallow requested action. See merge request !4363
| * | | | | | | | Make authentication service for Container Registry to be compatible with < ↵make-container-registry-authentication-service-compatible-with-older-dockerKamil Trzcinski2016-05-301-29/+17
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | Docker 1.11
* | | | | | | | Merge branch 'rubocop/enable-performance-times-map-cop' into 'master' Robert Speicher2016-05-301-7/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable Performance/TimesMap Rubocop cop Use Array.new with a block instead of `.times.collect` / `.times.map`. See #17478 See merge request !4357
| * | | | | | | | Enable Performance/TimesMap Rubocop coprubocop/enable-performance-times-map-copGrzegorz Bizon2016-05-301-7/+2
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use Array.new with a block instead of `.times.collect` / `.times.map`. See #17478