summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'remove-wip' into 'master' Jacob Schatz2016-03-191-18/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Easily (un)mark merge request as WIP using link Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/3768 and https://gitlab.com/gitlab-org/gitlab-ce/issues/3516 ## Link to add `WIP` prefix (underline is visible because of hover) ![wipless_title](/uploads/72a6f7119ba9d8043ca8329641e97c3b/wipless_title.png) ## Link to remove `WIP` prefix ![wip_title](/uploads/8620ad65da9ef620b180603520fead55/wip_title.png) ## System note after WIP is added ![wip_sysnote](/uploads/2de073b75e854d2c9e243eb8b5d5c259/wip_sysnote.png) ## Widget with link to remove WIP ![wip_widget](/uploads/cf83ea93743c4c26d9df759c17cb9d7b/wip_widget.png) ## Flash after WIP is removed ![wip_flash](/uploads/27b7240cd5d7ceeb8b7b477abd94d7ff/wip_flash.png) ## System note after WIP is removed ![wipless_sysnote](/uploads/c0d3368abdf21a2f253532a9a9594d90/wipless_sysnote.png) ## Widget when current user cannot remove the WIP prefix ![wip_widget_unauthorized](/uploads/174ccf1674be86dc81c3078fe297acb7/wip_widget_unauthorized.png) cc @creamzy See merge request !3006
| * Merge remote-tracking branch 'origin/master' into remove-wipRémy Coutable2016-03-18172-1176/+4171
| |\
| * | Improve the "easy WIP & un-WIP from link" featureRémy Coutable2016-03-181-18/+10
| | |
* | | Merge branch 'label-tooltip' into 'master' Douwe Maan2016-03-192-3/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add label description in tooltip to labels in issue index and sidebar The tooltip can get quite big, but it’s so useful to inform people about what these labels mean new ![Screen_Shot_2016-03-08_at_11.48.28](/uploads/894baaaa1f789c3a2069a924d541e64b/Screen_Shot_2016-03-08_at_11.48.28.png) ![Screen_Shot_2016-03-08_at_11.48.20](/uploads/efe4fa0960054c4071b8f6bf83024403/Screen_Shot_2016-03-08_at_11.48.20.png) @JobV writes on Slack: > yeah I think it’s better than not, but I’d have to try it :smiley: > > cautious yes, revert if it’s annoying :wink: See merge request !3124
| * | | Fix specslabel-tooltipRémy Coutable2016-03-182-3/+11
| | | |
* | | | Merge branch 'issue-branch-iid-postfix' into 'master' Douwe Maan2016-03-191-3/+3
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #to_branch_name now uses the iid as postfix Given the branch name 'mep-mep' with an iid being 1, the current way, master's way, would yield a branch name of 1-mep-mep. The problem for larger projects however would be that a developer might forget what iid the issue was. When this developer would try to tab complete it would: - Or result in 20+ branches possibly - Or start with the wrong digit, try again with digit++ - Would see 20 branches, repeat Thus the obvious way of solving this is letting the dev tab complete on the issue title, which is easier to remember. @DouweM Should this be labelled `pick-in-master`? See merge request !3308
| * | | \#to_branch_name now uses the iid as postfixissue-branch-iid-postfixZeger-Jan van de Weg2016-03-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given the branch name 'mep-mep' with an iid being 1, the current way, master's way, would yield a branch name of 1-mep-mep. The problem for larger projects however would be that a developer might forget what iid the issue was. When this developer would try to tab complete it would: - Or result in 20+ branches possibly - Or start with the wrong digit, try again with digit++ - Would see 20 branches, repeat Thus the obvious way of solving this is letting the dev tab complete on the issue title, which is easier to remember.
* | | | Merge branch 'no-gc-retry' into 'master' Robert Speicher2016-03-181-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not retry "git gc" To prevent 'git gc' timing out on a large repo and then bouncing around in the retry queue. See merge request !3266
| * | | | Fix HousekeepingService testsno-gc-retryJacob Vosmaer2016-03-181-2/+2
| | | | |
* | | | | Add a safeguard in MergeRequest#compute_diverged_commits_countRémy Coutable2016-03-181-0/+22
| |/ / / |/| | | | | | | | | | | | | | | We have to ensure source_sha and target_sha are not nil before calling Gitlab::Git::Commit.between.
* | | | Refactor `Todo#target`Douglas Barbosa Alexandre2016-03-181-7/+17
| | | |
* | | | Rename `Todo#to_reference` to `Todo#target_reference`Douglas Barbosa Alexandre2016-03-181-3/+3
| | | | | | | | | | | | | | | | Since we're not actually returning a todo reference.
* | | | Use `Commit#short_id` instead of `Commit.truncate_sha`Douglas Barbosa Alexandre2016-03-181-1/+3
| | | |
* | | | Update schema info comment on todo related filesDouglas Barbosa Alexandre2016-03-182-4/+6
| | | |
* | | | Use todo.done without ! in the controller to mark todo as doneDouglas Barbosa Alexandre2016-03-181-3/+3
| | | |
* | | | Trigger a todo for mentions on commits pageDouglas Barbosa Alexandre2016-03-183-3/+73
| | | |
* | | | Merge branch 'fix-mr-source-sha' into 'master' Douwe Maan2016-03-182-0/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-162-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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.
| * | | | Add tests for MergeRequest#source_shaPierre de La Morinerie2016-03-161-0/+18
| | | | |
* | | | | Merge branch 'issue-fade-load' into 'master' Jacob Schatz2016-03-181-2/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing filter dropdowns shows loading Instead of doing a full refresh of the page - i've modified the filterResults method on the Issues object to work for this form as well ![issues](/uploads/3335f09f7df88b6d419de7fd3d6857d2/issues.gif) Closes #14359 See merge request !3237
| * | | | | Fixed issue with dashboard issues not reloadingPhil Hughes2016-03-181-2/+0
| | | | | |
* | | | | | Merge branch 'confidential-issues' into 'master' Douwe Maan2016-03-1818-28/+751
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add confidential issues Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/3678 More information: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/227 See merge request !3282
| * | | | | | Restrict access to confidential issues on activity feedDouglas Barbosa Alexandre2016-03-171-0/+36
| | | | | | |
| * | | | | | Restrict access for confidential issues on milestone viewDouglas Barbosa Alexandre2016-03-172-10/+114
| | | | | | |
| * | | | | | Restrict access to confidential issues on search resultsDouglas Barbosa Alexandre2016-03-172-3/+157
| | | | | | |
| * | | | | | Restrict access to confidential issues through APIDouglas Barbosa Alexandre2016-03-171-2/+110
| | | | | | |
| * | | | | | Restrict access for confidential issues on autocompleteDouglas Barbosa Alexandre2016-03-171-0/+79
| | | | | | |
| * | | | | | Restrict access to references for confidential issuesDouglas Barbosa Alexandre2016-03-179-5/+97
| | | | | | |
| * | | | | | Restrict access to confidential issuesDouglas Barbosa Alexandre2016-03-172-8/+158
| | | | | | |
* | | | | | | Show a notice for diffs that are too largehide-large-diffsYorick Peterse2016-03-181-0/+14
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This builds on the changes introduced in https://gitlab.com/gitlab-org/gitlab_git/merge_requests/72 and results in merge requests with large diffs (e.g. due to them containing minified CSS) loading much faster.
* | | | | | Added tests for Repository#build_cacheproject-cache-worker-without-divergingYorick Peterse2016-03-171-0/+30
|/ / / / /
* | | | | Cache project avatars stored in GitYorick Peterse2016-03-172-5/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The avatar logic has been moved from Project to Repository as this makes caching easier. The logic itself in turn has been changed so that the logo file names are cached in Redis. This cache is flushed upon pushing a commit but _only_ if: 1. The commit was pushed to the default branch 2. The commit actually changes any of the logo files If no branch or commit is given the cache is flushed anyway, this ensures that calling Repository#expire_cache without any arguments still flushes the avatar cache (e.g. this is used when removing a project). Fixes gitlab-org/gitlab-ce#14363
* | | | | Merge branch 'glalonde-triggerbuild' into 'master' Kamil Trzciński2016-03-171-0/+23
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjusted behavior so canceled builds tagged as allowed to fail do not fail build ## What does this MR do? This diff changes the 'Allowed to fail' flag to also ignore canceled builds, whereas before, canceled builds could fail the suite even if they were marked as 'Allowed to fail' dupe of !3258 to force a build ## Are there points in the code the reviewer needs to double check? no ## Why was this MR needed? Unexpected behavior as a user ## What are the relevant issue numbers? ## Screenshots (if relevant) ![whatisgoingon](/uploads/fcd7c8f3d8454bc730d7fd41eff59b31/whatisgoingon.png) See merge request !3271
| * | | | | adjusted behavior so canceled builds tagged as allowed to fail do not fail buildGeoffrey Lalonde2016-03-171-0/+23
| |/ / / /
* | | | | Merge branch '4009-external-users' into 'master' Douwe Maan2016-03-176-33/+161
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | External Users The user has the rights of a public user execpt it can never create a project, group, or team. Also it cant view internal projects. Partially fix for both #4009 and #13938 (except the LDAP sync or a pattern to detect external users) ![Screen_Shot_2016-03-14_at_22.02.52](/uploads/486a84ab3acb98c6cfb71a4ec7d268e2/Screen_Shot_2016-03-14_at_22.02.52.png) See merge request !3171
| * | | | | API support for setting External flag on existing usersZeger-Jan van de Weg2016-03-171-0/+7
| | | | | |
| * | | | | Merge branch 'master' into 4009-external-users4009-external-usersZeger-Jan van de Weg2016-03-1525-148/+570
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into 4009-external-usersZeger-Jan van de Weg2016-03-148-4/+217
| |\ \ \ \ \ \
| * | | | | | | Create an external users tab on Admin user listZeger-Jan van de Weg2016-03-133-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also incorporates the review into this, mainly spec changes.
| * | | | | | | External UsersZeger-Jan van de Weg2016-03-136-33/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The user has the rights of a public user execpt it can never create a project, group, or team. Also it cant view internal projects.
* | | | | | | | Fix specsZeger-Jan van de Weg2016-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spinach was right, I was a fool..
* | | | | | | | Merge branch 'master' into new-branch-button-issueZeger-Jan van de Weg2016-03-177-12/+109
|\ \ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | |
| * | | | | | | Fix wiki search results point to raw sourceHiroyuki Sato2016-03-171-1/+17
| | |_|_|/ / / | |/| | | | |
| * | | | | | Merge branch 'issue_14306' into 'master' Robert Speicher2016-03-161-0/+5
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return an empty Array when there aren't lines to parse. Fixes #14306 See merge request !3243
| | * | | | | | Return an empty Array when there aren't lines to parse.Rubén Dávila2016-03-151-0/+5
| | | | | | | |
| * | | | | | | Merge branch 'worker-for-user-deletion' into 'master' Douwe Maan2016-03-163-9/+85
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A worker deletes a user, so the request doesn't time out Fixes #13261 See merge request !2855
| | * | | | | | Specs for the DeleteUserServiceworker-for-user-deletionZeger-Jan van de Weg2016-03-152-49/+69
| | | | | | | |
| | * | | | | | Clearify who deletes the userZeger-Jan van de Weg2016-03-152-4/+5
| | | | | | | |
| | * | | | | | Fix broken specsZeger-Jan van de Weg2016-03-151-9/+6
| | | | | | | |
| | * | | | | | Target right release, rebase got it wrongZeger-Jan van de Weg2016-03-151-2/+2
| | | | | | | |