summaryrefslogtreecommitdiff
path: root/spec/factories
Commit message (Collapse)AuthorAgeFilesLines
* Fix wiki testsSebastian Klier2016-04-202-0/+16
|
* Merge branch 'connorshea/gitlab-ce-revoke-authorized-application' into 'master' Rémy Coutable2016-04-143-1/+32
|\ | | | | | | | | | | | | | | | | | | | | Fix revoking of authorized OAuth applications Users were not able to revoke access to authorized OAuth applications. Clicking the "Revoke" button would result in a 404 page, and the application would still be authorized. Added a spec and also found that the `gon` variables were not being set for this view. Closes #14370 See merge request !3690
| * Include GonHelper separately and remove created_at in factoryStan Hu2016-04-141-1/+0
| |
| * Add spec for deletion of authorized OAuth2 applicationStan Hu2016-04-143-1/+33
| | | | | | | | | | | | Closes #14370 Move gon function into its own helper
* | Refactor and expose only Gitlab::UrlBuilder.build(record)simplify-gitlab-url_builder-15202Rémy Coutable2016-04-131-0/+12
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Reload forked_project_link projectsYorick Peterse2016-04-041-0/+5
| | | | | | | This fixes ./spec/services/projects/unlink_fork_service_spec.rb which somehow started failing on the master branch. It certainly isn't a very elegant solution but seems to be the easiest/best way of solving this problem for the time being.
* Extend specs for GFM uploads rewriterGrzegorz Bizon2016-03-311-2/+3
|
* Get FileUploader into test harness using factoryGrzegorz Bizon2016-03-301-0/+19
| | | | | | | | This attempts to get CarrierWave's uploader - `FileUploader` into test harness using a factory. that makes it easier to build an instance of it. Along with !3435 it may be easier to use uploaders in tests
* Fix specsDouwe Maan2016-03-211-1/+1
|
* Merge branch 'master' into issue_12658Douwe Maan2016-03-203-2/+17
|\
| * Update schema info comment on todo related filesDouglas Barbosa Alexandre2016-03-181-2/+3
| |
| * Trigger a todo for mentions on commits pageDouglas Barbosa Alexandre2016-03-181-0/+5
| |
| * Merge branch 'fix-mr-source-sha' into 'master' Douwe Maan2016-03-181-0/+5
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix MergeRequest#source_sha when there is no diff Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14170 ### Overview This MR fixes an unhandled Exception when visiting the page of an open Merge Request without diff. ### Description `MergeRequest#source_sha` is expected to return the sha of the source branch last commit. But when an open Merge Request has no diff (e.g. all commits have already been merged to the target branch), `merge_request.source_sha` incorrectly returns `nil`. This was without consequences before – but since !2217 was merged (a few days ago), it makes `Gitlab::Git::Commit.between` raise an "Unexpected nil argument" exception. This can be reproduced when visiting the http://localhost:3000/gitlab-org/gitlab-test/merge_requests/2 page on a fresh local Gitlab setup. This MR fixes the crash, by making sure that `source_sha` returns a correct result even when there is no diff available. I also added tests. @DouweM I believe you wrote most of this code in the first place ; does this looks correct to you, or is there a better way to resolve this issue maybe? See merge request !3135
| | * Fix MergeRequest#source_sha when there is no diffPierre de La Morinerie2016-03-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `MergeRequest#source_sha` is expected to return the sha of the source branch last commit. But when a open Merge Request has no diff (e.g. all commits have already been merged to the target branch), `merge_request.source_sha` incorrectly returns `nil`. This was un-noticed before – but now that !2217 has been merged, it makes `Gitlab::Git::Commit.between` raise an "Unexpected nil argument" exception. This fixes the crash, by making sure that `source_sha` returns a correct result even when there is no diff available.
| * | Restrict access to confidential issuesDouglas Barbosa Alexandre2016-03-171-0/+4
| |/
* | Improve group visibility level featureZeger-Jan van de Weg2016-03-181-0/+12
|/
* Improving the original label-subscribing implementationRémy Coutable2016-03-151-1/+1
| | | | | | | 1. Make the "subscribed" text in Issuable sidebar reflect the labels subscription status 2. Current user mut be logged-in to toggle issue/MR/label subscription
* Original implementation to allow users to subscribe to labelsTimothy Andrew2016-03-151-1/+1
| | | | | | | | | | | | | | | | | | 1. Allow subscribing (the current user) to a label - Refactor the `Subscription` coffeescript class - The main change is that it accepts a container, and conducts all DOM queries within its scope. We need this because the labels page has multiple instances of `Subscription` on the same page. 2. Creating an issue or MR with labels notifies users subscribed to those labels - Label `has_many` subscribers through subscriptions. 3. Adding a label to an issue or MR notifies users subscribed to those labels - This only applies to subscribers of the label that has just been added, not all labels for the issue.
* Merge branch 'revert-avatar-cropping' into 'master' Rémy Coutable2016-03-151-7/+0
|\ | | | | | | | | | | | | Revert the avatar cropping feature Reverts !2951 since the added 'mini_magick' dependency should be replaced by client-side croppping See merge request !3223
| * Revert "Merge branch 'avatar-cropping' into 'master' "revert-avatar-croppingRémy Coutable2016-03-151-7/+0
| | | | | | | | | | This reverts commit 01160fc06182de89c400af174861f6545ad6ceb8, reversing changes made to 4bff9daf8b6d85e9c78565e21cfaa3f6d36f0282.
* | Merge branch 'fix/13928-wrong-iid-of-max-iid' into 'master' Douwe Maan2016-03-151-0/+5
|\ \ | |/ |/| | | | | | | | | | | Fixes "iid of max iid" in Issuable sidebar for merged MR Fixes #13928. See merge request !3046
| * Fixes "iid of max iid" in Issuable sidebar for merged MRfix/13928-wrong-iid-of-max-iidRémy Coutable2016-03-081-0/+5
| | | | | | | | Fixes #13928
* | Bring ProjectGroupLink model and migrations from EEDmitriy Zaporozhets2016-03-111-0/+6
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Simplify the various Snippet factoriesRobert Speicher2016-03-083-16/+13
|/
* Merge branch 'rs-factory-nitpicks' into 'master' Douwe Maan2016-03-073-12/+22
|\ | | | | | | | | | | | | More Factory cleanup Addresses nitpicks from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2847 See merge request !3108
| * Remove unnecessary attribute definitions from Service factoryrs-factory-nitpicksRobert Speicher2016-03-061-2/+0
| |
| * Add traits for each access_level to ProjectMember factoryRobert Speicher2016-03-061-1/+21
| |
| * Remove unused `another_email` factoryRobert Speicher2016-03-061-9/+1
| |
* | Merge branch 'indicate-mr-diverged-from-target' into 'master' Douwe Maan2016-03-071-0/+10
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Indicate when an MR diverged from the target branch This adds an indicator to the "Merge MR" box, to tell if and how much an MR diverged from its target branch. For instance, consider an MR to merge the branch `feature` into `master`. Some other commits were added to `master` since `feature` was created, and the two branches diverged. ```text o master | o o feature | | o o | / o ``` In this case, there will be a label in the MR Merge box stating: > This MR is by 3 commits behind the target branch `master`. ## Screenshots ### The branch diverged from the target (UI Proposal) ![UI_suggestion_1](/uploads/cd5bee3959e68026ec7d5097259d53f4/UI_suggestion_1.png) ### The branch diverged from the target (alternative UI Proposal) ![UI_suggestion_2](/uploads/f36977101b59a610850e129837dfbc83/UI_suggestion_2.png) ## How is this useful? - In a _rebase-workflow_ (MR are preferably rebased before being merged), the reviewer wants to know if an MR is rebased on the target branch before merging it. _With this indicator, the reviewer knows immediately if the branch is rebased, or if she needs to ask the committer to rebase its branch._ <br> - To keep the git history readable, a team prefers to avoid merging branches that really lag a lot behind the target branch. Merging an MR that is 10 commits behind is fine, but 200 is too much. _With this indicator, the reviewer can see on the MR page if the branch is really far behind the target – or only a few commits behind._ ## Open questions We've been using this at @captaintrain for a few months now, and found it quite useful. I guess the open-questions are mostly: what UI would be the more adequate? Any thoughts on this, on the general usefulness and/or on the code? See merge request !2217
| * Indicate how much an MR branch diverges from the target branchPierre de La Morinerie2016-03-031-0/+10
| |
* | Move all factory definitions to their own fileRobert Speicher2016-03-0437-28/+243
|/
* Branded login page also in CE11489-branded-appearance-to-ceZeger-Jan van de Weg2016-02-261-0/+8
| | | | | The only major difference with the EE version is the change from a light and dark logo to only a header logo The dark logo wasn't used anyway, so it seemed to make sense to me to rename the field to the actual function of it
* Add a spec for coverage indicator in project's builds listBaertierchen/gitlab-ce-showTestCoverageRémy Coutable2016-02-221-1/+5
|
* Rename Tasks to TodosDouglas Barbosa Alexandre2016-02-201-5/+5
|
* Fix task factoryDouglas Barbosa Alexandre2016-02-201-1/+4
|
* Create a pending task when a user is mentioned when edit a issue/mr/noteDouglas Barbosa Alexandre2016-02-201-5/+3
|
* Marks pending tasks for an user as done when he edit an issueDouglas Barbosa Alexandre2016-02-201-0/+10
|
* Add feature spec for task queue list pageDouglas Barbosa Alexandre2016-02-201-0/+23
|
* Merge branch 'builds-artifacts-API' into 'master' Kamil Trzciński2016-02-191-1/+1
|\ | | | | | | | | | | | | | | | | Introduce API for serving the artifacts archive Add API to download build artifacts archive in context of GitLab API /cc @DouweM @grzesiek See merge request !2893
| * Fix specsKamil Trzcinski2016-02-191-1/+1
| |
* | Save merge commit id when MR is mergedRubén Dávila2016-02-191-0/+1
|/
* Fix build api specs after rebaseGrzegorz Bizon2016-02-191-1/+1
|
* Use DELETE verb for erasing a build contentGrzegorz Bizon2016-02-191-6/+5
| | | | Also added API specs for that
* Add artifacts trait to build factory in specsGrzegorz Bizon2016-02-191-1/+1
|
* Refactorize `ci_runner` factory and `let` definitions in runners API specTomasz Maczukin2016-02-191-6/+4
|
* Fix builds scheduler when first build is allowed to failGrzegorz Bizon2016-02-181-0/+12
| | | | | | | | Before this fix when there was only one relevant, previous build and it failed, but was allowed to fail, entire build had been marked as skipped. Closes #3192
* Add specs for build status helper classGrzegorz Bizon2016-02-181-0/+8
|
* Add ability to see and sort on vote count from Issues and MR listssee-and-sort-on-vote-count-mr-issuesDouglas Barbosa Alexandre2016-02-171-0/+14
|
* Remove unmaintainable db schema comment from build factoryGrzegorz Bizon2016-02-041-27/+0
|
* Improve CI API specs related to operations on buildGrzegorz Bizon2016-02-041-0/+15
| | | | | Conflicts: spec/factories/ci/builds.rb