summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | Merge branch 'build_page_text' into 'master'Marin Jankovski2015-03-041-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed to 'View Build Page' Fixes #2093 Changes 'Build Page' to 'View build page' See merge request !1626
| * | | | | | | | | | | | Changed casingSabba Petri2015-03-031-3/+3
| | | | | | | | | | | | |
| * | | | | | | | | | | | Changed to 'View Build Page'Sabba Petri2015-03-031-3/+3
| |/ / / / / / / / / / /
* | | | | | | | | | | | Remove pull-review badge since we dont use itDmitriy Zaporozhets2015-03-031-2/+0
|/ / / / / / / / / / /
* | | | | | | | | | | Merge branch 'fix-namespace-merge-request-url' into 'master'Marin Jankovski2015-03-042-12/+8
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix namespace in merge request url building Changes in 42387b733b76dfc1f72585015910a50f094e264f now require namespace specification and broke abc69c890513fb58c1ceae7548f4fbcc221b7c34. There are additional helper functions in c530ca00b0f40ec0e0df4d1885ce55e47a59b70d, but this seemed easier not to rely on them. See merge request !363
| * | | | | | | | | | | Fix URL builder to use GitlabRoutingHelperStan Hu2015-03-032-12/+8
| | | | | | | | | | | |
* | | | | | | | | | | | Merge branch 'fix-edit-note-with-votes' into 'master'Marin Jankovski2015-03-038-5/+45
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix server error when editing a note to "+1" or "-1" ### Summary If a user edits a comment with "+1" or "-1" in the beginning, the POST returns an Internal Server error. (issue #1151). This merge request resolves that error. ### Steps to reproduce 1. Comment on an issue with "Test comment". 2. Edit the issue. 3. Write "+1" and click "Save Comment". ### Expected behavior The edited note should be saved and refreshed. Any previous upvotes/downvotes from the user should contain a strikethrough. ### Observed behavior Internal Error ### Relevant logs ``` Started PUT "/avocode/avocode-manager/notes/4996" for 185.33.136.107 at 2015-02-28 17:11:53 +0100 Processing by Projects::NotesController#update as JS Parameters: {"utf8"=>"✓", "authenticity_token"=>"*removed*", "note"=>{"note"=>"+1\r\n\r\nYes"}, "commit"=>"Save Comment", "project_id"=>"avocode/avocode-manager", "id"=>"4996"} Completed 500 Internal Server Error in 86ms ActionView::Template::Error (undefined method `each' for nil:NilClass): 28: %span.note-last-update 29: = note_timestamp(note) 30: 31: - if note.superceded?(@notes) 32: - if note.upvote? 33: %span.vote.upvote.label.label-gray.strikethrough 34: %i.fa.fa-thumbs-up app/models/note.rb:495:in `superceded?' app/views/projects/notes/_note.html.haml:31:in `_app_views_projects_notes__note_html_haml___812277000516355462_69988235638820' app/controllers/projects/notes_controller.rb:71:in `note_to_html' app/controllers/projects/notes_controller.rb:103:in `render_note_json' app/controllers/projects/notes_controller.rb:39:in `block (2 levels) in update' app/controllers/projects/notes_controller.rb:38:in `update' ``` ### Fix It turns out no tests were present for the "Edit Issue" functionality. I added spinach tests to exercise this and reproduced the error. Most of the routes in `notes_controller.rb` appear to render all notes for the given discussion. `_form.html.haml` needs the full list of notes commented by the user to add strikethroughs for older upvotes/downvotes. However, only the `index` route appeared to obtain this information. The fix is to add a `before_filter` to obtain all the user's notes beforehand, except in the delete case where this information is not needed. Things to watch: `NotesFinder` needs `target_type` and `target_id` to determine what to do. I'm not sure if there is a conscious effort to phase these keywords out in favor of `noteable_type` and `noteable_id`. See merge request !360
| * | | | | | | | | | | | Fix bug where editing a comment with "+1" or "-1" would cause a server errorStan Hu2015-03-028-5/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #1151
* | | | | | | | | | | | | Merge branch 'project-existence-leak' into 'master'Dmitriy Zaporozhets2015-03-033-41/+196
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't leak information about private project existence via Git-over-SSH/HTTP. Fixes #2040 and https://gitlab.com/gitlab-org/gitlab-ce/issues/343. Both `Grack::Auth` (used by Git-over-HTTP) and `Api::Internal /allowed` (used by gitlab-shell/Git-over-SSH) now return a generic "Not Found" error when the project exists but the user doesn't have access to it. See merge request !1578
| * | | | | | | | | | | | | Add tests for GrackAuth.Douwe Maan2015-03-031-0/+146
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Don't leak information about private project existence via Git-over-SSH/HTTP.Douwe Maan2015-03-022-41/+50
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Merge branch 'go-import' into 'master'Marin Jankovski2015-03-035-20/+32
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Render go-import meta tag for private repos. The previously solution (626f5bab3580926842aa6247e052008ddf1ca571) required a change to nginx config and broke visits from Googlebot and other clients including "go" in their user agent. See merge request !1587
| * | | | | | | | | | | | | | Render go-import meta tag for private repos.Douwe Maan2015-03-034-7/+32
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Revert "Merge branch 'go-get-workaround-nginx' of ↵Douwe Maan2015-03-033-20/+7
| | |_|_|_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/mattes/gitlabhq into mattes-go-get-workaround-nginx" This reverts commit 51349ca3c83c56e072f87253d375316f7164b49a, reversing changes made to b180476bd69bdf99b1727b041116fa8447c0201f.
* | | | | | | | | | | | | | Merge branch 'master' of github.com:gitlabhq/gitlabhqMarin Jankovski2015-03-031-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ Merge pull request #8911 from AKoetsier/changelog-8501Jeroen van Baarsen2015-03-031-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / | |/| | | | | | | | | | | | | Fixed changelog for MR 8501
| | * | | | | | | | | | | | | Fixed changelog for MR 8501Andrès Koetsier2015-03-031-1/+1
| |/ / / / / / / / / / / / /
* | | | | | | | | | | | | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceMarin Jankovski2015-03-034-1/+19
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'commit_calendar_branches' into 'master'Jeroen van Baarsen2015-03-031-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Count commits in branches as well in the commit calendar This MR fixes a small bug in the commit calendar. Currently only commits that are in the master branch are counted. With this change, commits in other branches are included as well. fixes one of the issues found in #1162 See merge request !362
| | * | | | | | | | | | | | | Count commits in branches as well in the commit calendarHannes Rosenögger2015-03-031-1/+1
| | |/ / / / / / / / / / / /
| * | | | | | | | | | | | | Merge branch 'fix-merge-request-url-builder' into 'master'Jeroen van Baarsen2015-03-033-0/+18
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix merge request URL passed to Webhooks If you look at the data structure passed to Webhooks, you will see: `"url"=>nil` I don't think any of the Webhooks or services are using this yet, so right now nothing so far depends upon this value being correct. See merge request !352
| | * | | | | | | | | | | | Fix merge request URL passed to Webhooks.Stan Hu2015-02-243-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the symbol "url" in the object_attributes hash would always be nil.
* | | | | | | | | | | | | | Merge branch 'installtion-from-source' into 'master'Dmitriy Zaporozhets2015-03-031-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clearly mark it as installation from source. See merge request !1622
| * | | | | | | | | | | | | | Clearly mark it as installation from source.Sytse Sijbrandij2015-03-031-1/+1
| | |_|_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | |
* | | | | | | | | | | | | | Merge branch 'user-select-unassigned' into 'master'Dmitriy Zaporozhets2015-03-031-8/+9
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't show Unassigned in user select when searching. Fixes #2056. When a search term is present, the Unassigned item isn't rendered, so the highlighted item is the first search result and hitting Enter works as expected. See merge request !1620
| * | | | | | | | | | | | | | Don't show Unassigned in user select when searching.Douwe Maan2015-03-031-8/+9
| | |/ / / / / / / / / / / / | |/| | | | | | | | | | | |
* | | | | | | | | | | | | | Merge branch 'case-sensetivity-import' into 'master'Dmitriy Zaporozhets2015-03-033-1/+16
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix import check for case sensetive namespaces If you already have namespace `ABc` and you try to import project with namespace `abC` - import will fail with 422 error. cc @valery See merge request !1618
| * | | | | | | | | | | | | Fix import check for case sensetive namespacesDmitriy Zaporozhets2015-03-023-1/+16
|/ / / / / / / / / / / / /
* | | | | | | | | | | | | Merge branch 'strict-rubocop-rules' into 'master'Dmitriy Zaporozhets2015-03-032-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable ParenthesesAsGroupedExpression rule See merge request !1617
| * | | | | | | | | | | | | Enable ParenthesesAsGroupedExpression ruleDmitriy Zaporozhets2015-03-022-2/+2
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Merge branch 'brakeman' into 'master'Dmitriy Zaporozhets2015-03-0310-16/+75
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Brakeman - Static analysis security scanner for Ruby on Rails See merge request !1616
| * | | | | | | | | | | | | Update ci setup documenationDmitriy Zaporozhets2015-03-021-1/+4
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Add brakeman and jasmineDmitriy Zaporozhets2015-03-022-1/+2
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Add brakeman rake task and improve code securityDmitriy Zaporozhets2015-03-025-15/+40
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Add rake task for brakemanDmitriy Zaporozhets2015-03-021-0/+9
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Add brakeman gemDmitriy Zaporozhets2015-03-022-0/+21
|/ / / / / / / / / / / / /
* | | | | | | | | | | | | Merge branch 'cirosantilli-link-to-button' into 'master'Dmitriy Zaporozhets2015-03-0310-14/+15
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cirosantilli link to button For https://github.com/gitlabhq/gitlabhq/pull/7912 See merge request !1614
| * \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'link-to-button' of https://github.com/cirosantilli/gitlabhq ↵Dmitriy Zaporozhets2015-03-0210-14/+15
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into cirosantilli-link-to-button Conflicts: app/views/shared/_issuable_filter.html.haml
| | * | | | | | | | | | | | | Convert Javascript links to buttons.Ciro Santilli2015-01-1710-14/+15
| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | Merge branch 'master' of github.com:gitlabhq/gitlabhqDmitriy Zaporozhets2015-03-022-4/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge pull request #8092 from cirosantilli/factor-finder-permsDmitriy Zaporozhets2015-03-021-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor permission check in issuable finder
| | * | | | | | | | | | | | | | | Factor permission check in issuable finderCiro Santilli2015-01-011-1/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Merge pull request #8349 from divineforest/cleanup-assets-compressDmitriy Zaporozhets2015-03-021-3/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | Remove useless `assets.compress` option, Rails 4 uses only `assets.js_co...
| | * | | | | | | | | | | | | | | Remove useless `assets.compress` option, Rails 4 uses only ↵Alexander Balashov2014-11-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `assets.js_compressor` > The config.assets.compress option should be changed to config.assets.js_compressor like so for instance
* | | | | | | | | | | | | | | | | Merge branch 'less-sql-queries' into 'master'Dmitriy Zaporozhets2015-03-022-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce amount of sql queries on dashboard projects page For https://github.com/gitlabhq/gitlabhq/issues/7218 See merge request !1613
| * | | | | | | | | | | | | | | | Reduce amount of sql queries on dashboard projects pageDmitriy Zaporozhets2015-03-022-2/+2
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Merge pull request #8812 from opichals/teamcity_branchName_not_to_be_whole_refDmitriy Zaporozhets2015-03-021-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for TeamCity buildQueue REST API build/@branchName.
| * | | | | | | | | | | | | | | | | Fix for TeamCity buildQueue REST API build/@branchName.Standa Opichal2015-02-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Strips the refs/heads/ if any to get just the branchName out of a :ref e.g.: `refs/heads/feature/newProfile` -> `feature/newProfile` The TeamCity buildQueue POST data require the branchName attribute to contain just the branch name (just xyzbranch and not the full ref in the refs/heads/xyzbranch). With the refs/heads/xyzbranch the build is triggered and looks like it is working however it always ompiles the default branch (or master).
* | | | | | | | | | | | | | | | | | Merge branch 'add-irker-service' of https://github.com/Aorimn/gitlabhq into ↵Dmitriy Zaporozhets2015-03-0211-2/+500
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Aorimn-add-irker-service Conflicts: app/controllers/projects/services_controller.rb
| * | | | | | | | | | | | | | | | | | Add Irker serviceAorimn2015-03-0111-2/+500
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Irker is a gateway which sends IRC messages on git updates. This new service provides an interface to this gateway, integrated in Gitlab, for each updates. As per the guidelines, this commit adds the new feature in the CHANGELOG, tests and documentation. See http://www.catb.org/esr/irker/