summaryrefslogtreecommitdiff
path: root/app/controllers/projects/notes_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Backport Note#commands_changes from EEbackport-commands-paramsDouwe Maan2016-11-241-0/+1
|
* Backport some changes done from Time Tracking feature in EE.ee-870-backportRuben Davila2016-11-181-12/+13
|
* Merge branch 'diff-line-comment-vuejs' into 'master' Douwe Maan2016-08-191-1/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Diff line comments resolve ## What does this MR do? Diff line comments can be resolved. Part of #10325 To do: - [x] Backend (@DouweM) - [x] Fix https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5022#note_13319326. Will be made easier by https://gitlab.com/gitlab-org/gitlab-ce/issues/17237#note_13370331 - [x] System note when all discussions are resolved - [x] Notification when all discussions are resolved - [x] Write unit tests - [x] Look at resolve time https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5022#note_13912743 - Fixed by 4a13aa9 - [x] Frontend (@iamphill) - [x] Fix bugs - [x] Write more feature tests - [x] Frontend (@connorshea) - [x] Address frontend feedback - [x] Feature specs for Jump feature - [x] Documentation - [x] Add Vue.js in a standard way See merge request !5022
| * Address review feedbackDouwe Maan2016-08-161-2/+2
| |
| * Add specs for NotesController and DiscussionsControllerDouwe Maan2016-08-121-1/+1
| |
| * Actually don't send resolved notifications when deleting a noteDouwe Maan2016-08-041-0/+2
| |
| * Don't send resolved notifications when deleting a noteDouwe Maan2016-07-281-2/+0
| |
| * Add 'Resolved all discussions' system noteDouwe Maan2016-07-281-0/+2
| |
| * Backend tweaksDouwe Maan2016-07-281-5/+5
| |
| * Updates the text above discussions when resolving notes & discussionsPhil Hughes2016-07-271-2/+9
| |
| * Added resolved by users name into tooltipPhil Hughes2016-07-261-1/+3
| |
| * Add endpoints to resolve diff notes and discussionsDouwe Maan2016-07-251-3/+14
| |
| * Assigns to variable rather than using VueJS methodPhil Hughes2016-07-241-2/+2
| |
| * Resolve all endpointPhil Hughes2016-07-241-0/+5
| |
| * Posts to rails to update note eventuallyPhil Hughes2016-07-241-0/+5
| |
* | Support slash commands in noteable description and notesRémy Coutable2016-08-131-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | Some important things to note: - commands are removed from noteable.description / note.note - commands are translated to params so that they are treated as normal params in noteable Creation services - the logic is not in the models but in the Creation services, which is the right place for advanced logic that has nothing to do with what models should be responsible of! - UI/JS needs to be updated to handle notes which consist of commands only - the `/merge` command is not handled yet Other improvements: - Don't process commands in commit notes and display a flash is note is only commands - Add autocomplete for slash commands - Add description and params to slash command DSL methods - Ensure replying by email with a commands-only note works - Use :subscription_event instead of calling noteable.subscribe - Support :todo_event in IssuableBaseService Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add Discussion model to represent MR/diff discussiondiscussion-modelDouwe Maan2016-07-201-29/+36
|
* Display new diff notes and allow creation through the web interfaceDouwe Maan2016-07-061-2/+19
|
* Support for rendering/redacting multiple documentsYorick Peterse2016-06-241-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the way certain documents are rendered (currently only Notes) and how documents are redacted. Previously both rendering and redacting would run on a per document basis. The result of this was that for every document we'd have to run countless queries just to figure out if we could display a set of links or not. This commit changes things around so that redacting Markdown documents is no longer tied into the html-pipeline Gem. This in turn allows it to redact multiple documents in a single pass, thus reducing the number of queries needed. In turn rendering issue/merge request notes has been adjusted to take advantage of this new setup. Instead of rendering Markdown somewhere deep down in a view the Markdown is rendered and redacted in the controller (taking the current user and all that into account). This has been done in such a way that the "markdown()" helper method can still be used on its own. This particular commit also paves the way for caching rendered HTML on object level. Right now there's an accessor method Note#note_html which is used for setting/getting the rendered HTML. Once we cache HTML on row level we can simply change this field to be a column and call a "save" whenever needed and we're pretty much done.
* Backend awardables on commentsZJ van de Weg2016-06-061-0/+3
|
* Merge branch 'awardables' of gitlab.com:gitlab-org/gitlab-ce into awardablesFatih Acet2016-05-181-4/+9
|\
| * Fix latests concernsZJ van de Weg2016-05-181-4/+9
| |
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into awardablesFatih Acet2016-05-181-5/+5
|\ \ | |/ |/| | | | | | | | | | | # Conflicts: # app/controllers/projects/merge_requests_controller.rb # app/models/note.rb # db/schema.rb # spec/models/note_spec.rb
| * Merge branch 'meinac/gitlab-ce-change_deprecated_render_usage'Dmitriy Zaporozhets2016-05-181-2/+2
| |\ | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * Change deprecated usage of rendering without response bodyMehmet Emin İNAÇ2016-03-161-2/+2
| | | | | | | | | | | | | | | `render nothing: true` has been deprecated. For more information see [pr](https://github.com/rails/rails/pull/20336)
| * | Extract LegacyDiffNote out of NoteDouwe Maan2016-05-131-3/+3
| | |
* | | Add tests on Awardables and Award EmojiZeger-Jan van de Weg2016-05-101-2/+1
| | |
* | | Create table for award emojiZeger-Jan van de Weg2016-05-061-28/+7
|/ /
* | Fix code review issuesRobert Schilling2016-04-121-1/+1
| |
* | Delete notes via APIRobert Schilling2016-04-121-3/+2
|/
* [WIP] Background process note logic for #3948Josh Frye2016-01-281-1/+1
|
* Fix diff comments loaded by AJAX to load comment with diff in discussion tabRémy Coutable2016-01-191-12/+10
| | | | | | | This commits also fixes two minor issues: - Ensure notes that the current user is not allowed to see are not returned in the AJAX notes loading - Ensure the notes counter badge is decremented of 1 instead of 2
* base implementation of emoji picker [ci skip]Valery Sizov2015-12-221-1/+0
|
* Merge remote-tracking branch 'origin/feature/update-rubocop'Dmitriy Zaporozhets2015-12-161-1/+1
|\
| * Fixed Rubocop offensesGabriel Mazetto2015-12-151-1/+1
| |
* | Fix note pollingrs-issue-4032Robert Speicher2015-12-121-1/+2
|/ | | | Closes #4032
* Notify user when award-emoji comment is invalidGrzegorz Bizon2015-12-031-1/+6
|
* Render json message with errors if note didn't pass validationGrzegorz Bizon2015-12-031-10/+14
|
* Emoji bug: Invalid url to imageaward_fixValery Sizov2015-11-221-1/+1
|
* Award: merge request fixValery Sizov2015-11-211-2/+5
|
* Fix for Emojinotes_fix_stablenotes_fixValery Sizov2015-11-201-1/+1
|
* adressing commentsValery Sizov2015-11-191-6/+6
|
* satisfy rubocopValery Sizov2015-11-191-2/+2
|
* Emoji: fix image of emoji when it is submitted via commentValery Sizov2015-11-191-0/+1
|
* award emojiValery Sizov2015-11-191-1/+24
|
* Revert "Merge pull request #9820 from huacnlee/avoid-render-form-in-notes-list"rs-revert-gh-9820Robert Speicher2015-11-161-6/+1
| | | | | This reverts commit 63144cd062f6d259f1f30b6e06eb92a16caa8dec, reversing changes made to 8ab5df9d872414b2cca3ebd16d57b89e2f19e06a.
* Avoid render edit_form in each notes.Jason Lee2015-11-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use RJS to render edit note feature. Before: ``` Rendered projects/notes/_note.html.haml (27.9ms) Rendered projects/_zen.html.haml (0.3ms) Rendered projects/notes/_hints.html.haml (0.7ms) Rendered projects/_md_preview.html.haml (3.9ms) Rendered projects/notes/_edit_form.html.haml (6.9ms) Rendered projects/notes/_note.html.haml (17.7ms) Rendered projects/_zen.html.haml (0.3ms) Rendered projects/notes/_hints.html.haml (0.6ms) Rendered projects/_md_preview.html.haml (3.4ms) Rendered projects/notes/_edit_form.html.haml (7.0ms) ``` After: ``` Rendered projects/notes/_note.html.haml (13.8ms) Rendered projects/notes/_note.html.haml (7.1ms) Rendered projects/notes/_note.html.haml (9.5ms) Rendered projects/notes/_note.html.haml (8.5ms) ``` This change reduce at least 6ms * N ('N' - number of notes).
* Redirect to a default path if HTTP_REFERER is not setStan Hu2015-10-201-2/+2
| | | | | | | | | | Safari 9.0 does not yet honor the HTML5 `origin-when-cross-origin` mode, and it's possible load balancers/proxies strip the HTTP_REFERER from the request header. In these cases, default to some default path. Closes #3122 Closes https://github.com/gitlabhq/gitlabhq/issues/9731
* Show who last edited a comment if it wasn't the original authorDouwe Maan2015-07-301-5/+2
|
* Update controller filtersDmitriy Zaporozhets2015-06-261-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>