summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | Replace remaining references to `Note.create_cross_reference_note`Robert Speicher2015-06-229-21/+16
| | | | | | | |
| * | | | | | | Use to_reference for issue and merge request mentionable specsRobert Speicher2015-06-222-4/+4
| | | | | | | |
| * | | | | | | Bump rspec to 3.3.0Robert Speicher2015-06-222-30/+33
| | | | | | | |
| * | | | | | | Update spec/features/security specsRobert Speicher2015-06-222-43/+26
| | | | | | | |
| * | | | | | | Update email_spec gemRobert Speicher2015-06-224-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes spec/mailers/notify_spec Also only require email_spec in the one place it's used
| * | | | | | | Update mock and stub syntax for specsRobert Speicher2015-06-2249-220/+283
| | | | | | | |
| * | | | | | | Update and simplify Import controller specsRobert Speicher2015-06-226-36/+75
| | | | | | | |
| * | | | | | | Fix include_module matcherRobert Speicher2015-06-221-1/+5
| | | | | | | |
| * | | | | | | Bump poltergeist to 1.6.0Robert Speicher2015-06-222-4/+6
| | | | | | | |
| * | | | | | | Fix features syntaxRobert Speicher2015-06-2213-52/+84
| | | | | | | |
| * | | | | | | Upgrade to newer version of CapybaraJeroen van Baarsen2015-06-222-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
| * | | | | | | Started on the actual rspec 3 upgradeJeroen van Baarsen2015-06-224-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* | | | | | | | Merge branch 'rs-remove-link-to-override'Dmitriy Zaporozhets2015-06-222-70/+0
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/helpers/application_helper_spec.rb
| * | | | | | | | Remove overridden `link_to` helperrs-remove-link-to-overrideRobert Speicher2015-06-172-70/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose for this override is now handled by `ExternalLinkFilter`.
* | | | | | | | | Merge branch 'new-logo' into 'master'Dmitriy Zaporozhets2015-06-2213-3/+85
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace old logo with new one Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> cc @JobV @sytses See merge request !848
| * | | | | | | | Replace old logo with new onenew-logoDmitriy Zaporozhets2015-06-1913-3/+85
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | | | | | Merge branch 'web-editor-autocrlf' into 'master'Dmitriy Zaporozhets2015-06-224-4/+10
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert CRLF newlines to LF when committing using the web editor. Fixes #1823 and https://github.com/gitlabhq/gitlabhq/issues/7950. Depends on https://gitlab.com/gitlab-org/gitlab_git/merge_requests/29 being merged and a new gitlab_git being released. cc @jacobvosmaer See merge request !858
| * | | | | | | | Bump gitlab_git to 7.2.5Jacob Vosmaer2015-06-222-3/+3
| | | | | | | | |
| * | | | | | | | Convert CRLF newlines to LF when committing using the web editor.web-editor-autocrlfDouwe Maan2015-06-202-1/+7
| | | | | | | | |
* | | | | | | | | Merge branch 'change_log_update' into 'master'Jacob Vosmaer2015-06-221-1/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Minor changelog fix See merge request !861
| * | | | | | | | | changelog fixchange_log_updateValery Sizov2015-06-221-1/+1
| |/ / / / / / / /
* | | | | | | | | Merge branch 'restore_uploads_fix' into 'master'Dmitriy Zaporozhets2015-06-221-1/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid "cannot copy directory ... to itself" error on restore (on Docker?) rake gitlab:backup:restore fails for me in my Docker-hosted Gitlab-CE instance; during the restore, any existing "uploads" directory is backed up by [this code](https://gitlab.com/gitlab-org/gitlab-ce/blob/833bc30/lib/backup/uploads.rb#L23) -- ```ruby def backup_existing_uploads_dir timestamped_uploads_path = File.join(app_uploads_dir, '..', "uploads.#{Time.now.to_i}") if File.exists?(app_uploads_dir) FileUtils.mv(app_uploads_dir, timestamped_uploads_path) end end ``` When this executes for me, the ```FileUtils.mv``` parameters are "/home/git/gitlab/public/uploads" and "/home/git/gitlab/public/uploads/../uploads.1407019546"; an exception is raised, producing this double stacktrace: ``` ArgumentError: cannot copy directory /home/git/gitlab/public/uploads to itself /home/git/gitlab/public/uploads/../uploads.1407019546 /home/git/gitlab/lib/backup/uploads.rb:26:in `backup_existing_uploads_dir' /home/git/gitlab/lib/backup/uploads.rb:18:in `restore' /home/git/gitlab/lib/tasks/gitlab/backup.rake:73:in `block (4 levels) in <top (required)>' /home/git/gitlab/lib/tasks/gitlab/backup.rake:30:in `block (3 levels) in <top (required)>' Errno::EXDEV: Invalid cross-device link @ sys_fail2 - (/home/git/gitlab/public/uploads, /home/git/gitlab/public/uploads/../uploads.1407019546) /home/git/gitlab/lib/backup/uploads.rb:26:in `backup_existing_uploads_dir' /home/git/gitlab/lib/backup/uploads.rb:18:in `restore' /home/git/gitlab/lib/tasks/gitlab/backup.rake:73:in `block (4 levels) in <top (required)>' /home/git/gitlab/lib/tasks/gitlab/backup.rake:30:in `block (3 levels) in <top (required)>' Tasks: TOP => gitlab:backup:uploads:restore (See full trace by running task with --trace) ``` I'm guessing from the first message that ```mv``` walks the destination path to ensure that we're not moving the source into itself -- it doesn't get as far as interpreting the '..', but throws when it sees that the destination appears to start with the source path. The second stacktrace I have no clue about - maybe it's AUFS- or Docker-related? I attempted to reproduce this separately with the omnibus distribution in a fresh Ubuntu 14.04 install without Docker involved, and was unable to - backup and restore worked fine. I then tested my theory by FileUtils.expand_path-ing the destination in my own Docker setup code, and that made the problem go away, so that's what this merge request does. (I'm using backups created and restored on gitlab-ce 7-1-stable, at facfec4b2; this is on Ubuntu 14.04 with Docker 1.1.1) I know I'd look askance at a PR without tests for an unreproducable problem, but even if this is rejected, I'm submitting it anyway because maybe someone else will Google it and find it useful. I'm happy to do more work to improve this if you have suggestions. See merge request !165
| * | | | | | | | | Avoid "cannot copy directory to itself" restore errorBryan Stearns2014-08-031-1/+1
| | | | | | | | | |
* | | | | | | | | | Merge branch 'rs-dev-issue-2355' into 'master'Dmitriy Zaporozhets2015-06-2221-134/+470
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MergeRequest#show performance improvements This is a first pass on improving the performance of the `MergeRequests#show` page. Notable changes: - The "Commits" tab is loaded lazily, so the initial page load should be much faster for MRs with many commits. - Relative timestamps via `timeago` are only initialized once per load instead of `O(n^2)`. This greatly improves frontend rendering times for a large number of commits. - Refactored `User.find_for_commit` to use a single ARel-generated SQL query instead of the old method which resulted in one query, and could result in up to three. See merge request !838
| * | | | | | | | | | Add MergeRequestTabs specsrs-dev-issue-2355Robert Speicher2015-06-213-44/+193
| | | | | | | | | | |
| * | | | | | | | | | Minor style fixes in MergeRequestTabsRobert Speicher2015-06-211-2/+2
| | | | | | | | | | |
| * | | | | | | | | | Fix timezone-based time_ago_with_tooltip spec failuresRobert Speicher2015-06-191-4/+5
| | | | | | | | | | |
| * | | | | | | | | | Use `skip_js` for commit timestampsRobert Speicher2015-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This greatly improves frontend rendering times.
| * | | | | | | | | | Load the Merge Request > Commits tab lazilyRobert Speicher2015-06-173-18/+70
| | | | | | | | | | |
| * | | | | | | | | | Extract MergeRequest tab behavior to its own JS classRobert Speicher2015-06-172-88/+115
| | | | | | | | | | |
| * | | | | | | | | | Move Projects::MergeRequestsController spec to its correct locationRobert Speicher2015-06-171-0/+0
| | | | | | | | | | |
| * | | | | | | | | | Spec and refactor User.find_for_commitRobert Speicher2015-06-172-4/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now it executes a single query instead of a possible three at the cost of some scary-looking ARel calls.
| * | | | | | | | | | Remove duplicate `timeago` callRobert Speicher2015-06-171-2/+1
| | | | | | | | | | |
| * | | | | | | | | | Update time_ago_with_tooltip helperRobert Speicher2015-06-1710-21/+88
| | |_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Minor refactoring, add specs, changes arguments to use keywords.
* | | | | | | | | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-06-2227-251/+482
|\ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | |
| * | | | | | | | | Merge branch 'new-mr-disable-change-target-branch' into 'master'Douwe Maan2015-06-202-6/+8
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable changing of target branch in new merge request page when a branch has already been specified ### What does this MR do? This MR prevents a user from changing the target branch inside a new merge request page if the target branch has already been specified (e.g. from the shortcut in the activity feed). A link to "Change branches" is provided to allow the user to do this properly. ### Why was this MR needed? If a user attempted to create a merge request from a shortcut with a pre-specified target branch (e.g. `master`), the dropdown would suggest that the user could change the branch. However, this did not actually work due to duplicate data elements (see #1830 for more details), and the target branch would always be set to the original, default branch. This would lead to confusion, potentially causing an improper merge request to be created. ### What are the relevant issue numbers? Closes #1830 ### Screenshot ![image](https://gitlab.com/stanhu/gitlab-ce/uploads/eeec4f5d4b66625a14be41e5ecbdc016/image.png) See merge request !846
| | * | | | | | | | | Disable changing of target branch in new merge request page when a branch ↵Stan Hu2015-06-192-6/+8
| | | |_|/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | has already been specified Closes #1830
| * | | | | | | | | Merge branch 'fix-error-500-internal-snippet' into 'master'Douwe Maan2015-06-206-2/+43
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Error 500 when one user attempts to access another's personal, internal snippet ### What does this MR do? This MR fixes an Error 500 that occurred if one user tried to access another's personal, internal snippet. Steps to reproduce: ### Why was this MR needed? 1. Go to `<hostname>/snippets/new`. 2. Select "Internal". 3. Create a snippet. Save the URL (e.g. `<hostname>/snippets/20`) 4. Logout and sign in as another user. 5. Go to the URL in step 3. ### What are the relevant issue numbers? Closes #1815 See merge request !854
| | * | | | | | | | | Fix Error 500 when one user attempts to access a personal, internal snippetStan Hu2015-06-196-2/+43
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #1815
| * | | | | | | | | Merge branch 'sshdoc' into 'master'Achilleas Pipinellis2015-06-201-1/+29
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include non-default ssh key location info Fixes #875 Provide help for people who aren't SSH-clued by indicating how to point to key files that have been named something other than the default. A lot of people seem to assume that the filename they choose is irrelevant and then wonder why their private key is not being found by simple 'ssh' commands. See merge request !507
| | * | | | | | | | | Show username SSH config exampleJeff Blaine2015-06-191-3/+5
| | | | | | | | | | |
| | * | | | | | | | | Include non-default ssh key location infoJeff Blaine2015-06-191-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/875 Provide help for people who aren't SSH-clued by indicating how to point to key files that have been named something other than the default. A lot of people seem to assume that the filename they choose is irrelevant and then wonder why their private key is not being found by simple 'ssh' commands.
| * | | | | | | | | | Merge branch 'rs-blobview-js-refactor' into 'master'Robert Speicher2015-06-198-220/+311
| |\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor and spec line highlighting Javascript - Replaces the fragile Spinach tests for this feature with Jasmine tests - The "Don't scroll the page when we click a line number" behavior now works as expected See merge request !820
| | * | | | | | | | | Minor style fixes for LineHighlighterRobert Speicher2015-06-191-3/+3
| | | | | | | | | | |
| | * | | | | | | | | Refactor LineHighlighterrs-blobview-js-refactorRobert Speicher2015-06-192-82/+51
| | | | | | | | | | |
| | * | | | | | | | | Rename BlobView to LineHighlighterRobert Speicher2015-06-194-13/+13
| | | | | | | | | | |
| | * | | | | | | | | Remove "Multiselect Blob" feature specsRobert Speicher2015-06-192-143/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are well covered by the new Jasmine tests, and faster!
| | * | | | | | | | | Simplify line numberingRobert Speicher2015-06-191-1/+1
| | | | | | | | | | |
| | * | | | | | | | | Use `pushState` instead of the temporary div hackRobert Speicher2015-06-191-36/+10
| | | | | | | | | | |
| | * | | | | | | | | Refactor and spec BlobView JSRobert Speicher2015-06-194-74/+365
| | | |/ / / / / / / | | |/| | | | | | |