summaryrefslogtreecommitdiff
path: root/app/models/note.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make sure non-highlighted diffs are still escapedunescaped-diffsDouwe Maan2016-01-221-2/+6
|
* Update Issue/MR everytime a Note is saved/destroyed.Rubén Dávila2016-01-191-1/+1
|
* Move complex view condition to a model methodRémy Coutable2016-01-131-0/+4
| | | | | This is moved to a model method rather than an helper method because the API will need it too.
* note votes methids implementationupvote_count_to_apiValery Sizov2015-12-291-2/+2
|
* Revert upvotes and downvotes params to MR APIValery Sizov2015-12-281-2/+0
|
* revert back vote buttons to issue and MR pagesValery Sizov2015-12-251-1/+8
|
* Banzai::XFilter -> Banzai::Filter::XFilterDouwe Maan2015-12-151-2/+2
|
* Move Markdown/reference logic from Gitlab::Markdown to BanzaiDouwe Maan2015-12-151-2/+2
|
* emoji aliases problemValery Sizov2015-12-111-1/+2
|
* Merge remote-tracking branch 'origin/emoji_edit_disallow'Dmitriy Zaporozhets2015-12-101-1/+1
|\
| * Don't allow to edit award emoji commentsemoji_edit_disallowValery Sizov2015-12-101-1/+1
| |
* | Merge branch 'master' into tmp-reference-pipeline-and-cachingtmp-reference-pipeline-and-cachingDouwe Maan2015-12-101-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # spec/lib/gitlab/markdown/autolink_filter_spec.rb # spec/lib/gitlab/markdown/commit_range_reference_filter_spec.rb # spec/lib/gitlab/markdown/commit_reference_filter_spec.rb # spec/lib/gitlab/markdown/cross_project_reference_spec.rb # spec/lib/gitlab/markdown/emoji_filter_spec.rb # spec/lib/gitlab/markdown/external_issue_reference_filter_spec.rb # spec/lib/gitlab/markdown/external_link_filter_spec.rb # spec/lib/gitlab/markdown/issue_reference_filter_spec.rb # spec/lib/gitlab/markdown/label_reference_filter_spec.rb # spec/lib/gitlab/markdown/merge_request_reference_filter_spec.rb # spec/lib/gitlab/markdown/redactor_filter_spec.rb # spec/lib/gitlab/markdown/reference_gatherer_filter_spec.rb # spec/lib/gitlab/markdown/relative_link_filter_spec.rb # spec/lib/gitlab/markdown/sanitization_filter_spec.rb # spec/lib/gitlab/markdown/snippet_reference_filter_spec.rb # spec/lib/gitlab/markdown/syntax_highlight_filter_spec.rb # spec/lib/gitlab/markdown/table_of_contents_filter_spec.rb # spec/lib/gitlab/markdown/task_list_filter_spec.rb # spec/lib/gitlab/markdown/upload_link_filter_spec.rb # spec/lib/gitlab/markdown/user_reference_filter_spec.rb
| * Update annotationsStan Hu2015-12-081-0/+1
| |
* | Merge branch 'master' into reference-pipeline-and-cachingreference-pipeline-and-cachingDouwe Maan2015-12-081-1/+1
|\ \ | |/
| * Add custom LineCodeValidatorRobert Speicher2015-12-071-1/+1
| |
* | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-12-071-0/+30
|\ \ | |/
| * Simplify `contains_emoji_only?` method in `Note`fix/award-emoji-conflict-in-notesGrzegorz Bizon2015-12-071-2/+1
| |
| * Refactor note awards to reuse `emoji_pattern` and improve validatorGrzegorz Bizon2015-12-051-18/+14
| |
| * Make method `supports_award?` public in `Note`Grzegorz Bizon2015-12-031-2/+2
| |
| * Support emoji awards also in merge requestsGrzegorz Bizon2015-12-031-3/+4
| |
| * Move note emoji-award implementation to note model (feature envy)Grzegorz Bizon2015-12-031-0/+33
| |
| * Add validator for award-emoji noteGrzegorz Bizon2015-12-031-0/+1
| |
* | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-12-021-38/+20
|\ \ | |/
| * Add upvote/downvote fields to merge request and note API to preserve ↵fix-award-emoji-apiRobert Schilling2015-11-211-0/+10
| | | | | | | | compatibility
| * adressing commentsValery Sizov2015-11-191-2/+3
| |
| * added spinach testsValery Sizov2015-11-191-0/+1
| |
| * addressing commentsValery Sizov2015-11-191-2/+2
| |
| * award emojiValery Sizov2015-11-191-38/+8
| |
* | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-10-211-0/+5
|\ \ | |/
| * Merge branch 'master' into rs-redactor-filterrs-redactor-filterDouwe Maan2015-10-161-0/+5
| |\
| | * Fixed Rubocop styling issuesYorick Peterse2015-10-151-1/+1
| | |
| | * Renamed Note.inc_associations to with_associationsYorick Peterse2015-10-151-1/+1
| | |
| | * Eager load project associations for notesYorick Peterse2015-10-151-1/+2
| | | | | | | | | | | | | | | | | | | | | This ensures that when viewing an issue each note already has the associated project, project members, group and group members available. Since this information is requres for every note this results in quite the reduction of SQL queries being executed.
| | * Eager load note projects when viewing issuesYorick Peterse2015-10-151-1/+4
| | |
| | * Eager load various issue/note associationsYorick Peterse2015-10-151-0/+1
| | | | | | | | | | | | | | | This ensures we don't end up running N+1 queries for the objects in the affected collections.
| * | Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-151-10/+3
| |\ \ | | |/
* | | Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-141-10/+3
|\ \ \ | | |/ | |/|
| * | Fix cross-references originating from notesDouwe Maan2015-10-121-10/+3
| | |
| * | Simplify code around (cross)-referencesDouwe Maan2015-10-121-1/+1
| | |
* | | Cache rendered contents of issues, MRs and notesDouwe Maan2015-10-141-1/+1
| |/ |/|
* | Participable doesn't need to know about MentionableDouwe Maan2015-10-141-2/+2
|/
* Simplify Note#editable?rs-update-noteRobert Speicher2015-09-301-1/+1
|
* Re-annotate modelsStan Hu2015-09-061-0/+1
|
* Case-insensetive search for commentscomment-case-insensetive-searchDmitriy Zaporozhets2015-08-191-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* api: add 'system', 'upvote', and 'downvote' fields to note queriesBen Boeckel2015-08-121-0/+4
| | | | This reverts commit 4c586dc7c217b3e43956919fa752a8fa4e16acb9.
* Merge branch 'master' into comment-updated-byDouwe Maan2015-08-061-1/+1
|\
| * Revert "Update noteable after a new note is added"revert_touchValery Sizov2015-08-051-1/+1
| | | | | | | | This reverts commit fbdaf0e2a517660c0e4e3960f20b2d3568c33e78.
* | Show who last edited a comment if it wasn't the original authorDouwe Maan2015-07-301-0/+1
|/
* Rename `notice_added_references` to `create_new_cross_references!`rs-issue-1773Robert Speicher2015-07-131-1/+1
|
* Replace remaining references to `Note.create_cross_reference_note`Robert Speicher2015-06-221-5/+0
|