summaryrefslogtreecommitdiff
path: root/app/services/notes
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'jprovazn-api' into 'master'Sean McGivern2018-03-072-3/+8
|\ | | | | | | | | Add discussion API See merge request gitlab-org/gitlab-ce!17510
| * Add discussion APIjprovazn-apiJan Provaznik2018-03-072-3/+8
| | | | | | | | | | * adds basic discussions API for issues and snippets * reorganizes notes specs (so same tests can be used for all noteable types - issues, MRs, snippets)
* | Fix quick actions for users who cannot update issues and MRs43334-reply-by-email-did-not-pick-up-unsubscribe-quick-actionSean McGivern2018-03-021-5/+3
|/ | | | | | There are several quick actions now that don't need this access - /todo and /unsubscribe for instance - but when these were first added, there weren't. Quick actions are now responsible for checking their own permissions.
* Reset todo counters when the target is deleted40871-todo-notification-count-shows-notification-without-having-a-todoSean McGivern2017-12-181-1/+3
| | | | | | When the target is deleted, todos are destroyed, but we did not reset the todo cache for users with todos on the deleted target. This would only update after the next time the todo cache was updated for that user.
* Resolve "DashboardController#activity.json is slow due to SQL"Francisco Javier López2017-11-061-0/+21
|
* Detect n+1 issues involving GitalyAndrew Newdigate2017-09-191-1/+7
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Rename "Slash commands" to "Quick actions"Eric Eastwood2017-06-152-6/+6
| | | | | | | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27070 Deprecate "chat commands" in favor of "slash commands" We looked for things like: - `slash commmand` - `slash_command` - `slash-command` - `SlashCommand`
* Update diff discussion position per discussion instead of per notedm-update-discussion-diff-positionDouwe Maan2017-05-311-33/+0
|
* Add system note with link to diff comparison when MR discussion becomes outdatedDouwe Maan2017-05-231-11/+14
|
* Support comments for personal snippetsJarka Kadlecova2017-05-051-2/+16
|
* Remove unused codeDouwe Maan2017-04-051-4/+0
|
* Address review commentsDouwe Maan2017-04-052-2/+2
|
* Don't use original_discussion_idDouwe Maan2017-04-051-3/+1
|
* Fix specsDouwe Maan2017-04-051-1/+3
|
* Add specsDouwe Maan2017-04-051-3/+3
|
* Add option to start a new discussion on an MRDouwe Maan2017-04-052-4/+31
|
* Create todos only for new mentionsJarka Kadlecova2017-03-291-1/+3
|
* add /award slash commandmhasbini2017-02-281-9/+1
| | | | add /award slash command; Allow posting of just an emoji in comment
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-2/+2
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-2/+2
|
* Enable Style/MutableConstantDouwe Maan2017-02-231-1/+1
|
* Fix inconsistent naming for services that delete thingsdixpac2017-02-081-1/+1
| | | | | | * Changed name of delete_user_service and worker to destroy * Move and change delete_group_service to Groups::DestroyService * Rename Notes::DeleteService to Notes::DestroyService
* address commentsJarka Kadlecova2017-01-252-5/+6
|
* Support notes without projectJarka Kadlecova2017-01-182-5/+8
|
* support `/merge` slash comand for MRsJarka Kadlecova2017-01-112-3/+6
|
* Replace wording for slash command confirmation messagevictorwu2016-12-261-1/+1
|
* Merge branch 'events-cache-invalidation' into 'master' Douwe Maan2016-11-282-2/+0
|\ | | | | | | | | | | | | Remove caching of events data This MR removes the caching of events data as this was deemed unnecessary while increasing load on the database. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6578#note_18864037 and 5371da341e9d7768ebab8e159b3e2cc8fad1d827 for more information. See merge request !6578
| * Remove event caching codeYorick Peterse2016-11-232-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flushing the events cache worked by updating a recent number of rows in the "events" table. This has the result that on PostgreSQL a lot of dead tuples are produced on a regular basis. This in turn means that PostgreSQL will spend considerable amounts of time vacuuming this table. This in turn can lead to an increase of database load. For GitLab.com we measured the impact of not using events caching and found no measurable increase in response timings. Meanwhile not flushing the events cache lead to the "events" table having no more dead tuples as now rows are only inserted into this table. As a result of this we are hereby removing events caching as it does not appear to help and only increases database load. For more information see the following comment: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6578#note_18864037
* | Backport Note#commands_changes from EEbackport-commands-paramsDouwe Maan2016-11-241-0/+2
|/
* Backport some changes done from Time Tracking feature in EE.ee-870-backportRuben Davila2016-11-181-1/+1
|
* Does not raise error when Note not found when processing NewNoteWorkerOswaldo Ferreira2016-11-111-2/+5
| | | | - Also remove unnecessary param
* Fix authored vote from notesbarthc2016-10-241-2/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Ensure we have a user before checking for their permission in ↵Rémy Coutable2016-09-201-0/+1
| | | | | | Notes::SlashCommandsService Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix note form hint showing slash commands supported for commitsRémy Coutable2016-09-201-9/+11
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'master' into 4273-slash-commandsDouwe Maan2016-08-161-1/+1
|\ | | | | | | | | # Conflicts: # app/services/issues/create_service.rb
| * Simplify the name for data builder, feedback:Lin Jen-Shin2016-08-121-1/+1
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13671791
| * Move those builders to their own namespace, feedback:Lin Jen-Shin2016-08-041-1/+1
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13540099
* | Fixed specs and fixes based on failing specsDouwe Maan2016-08-162-12/+30
| |
* | Force notes poll after commands have been executedDouwe Maan2016-08-121-1/+1
| |
* | Refactor slash command definitionDouwe Maan2016-08-122-8/+9
| |
* | Simplify the slash commands DSL to store action blocks instead of creating ↵Rémy Coutable2016-08-132-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | methods Other improvements: - Ensure slash commands autocomplete doesn't break when noteable_type is not given - Slash commands: improve autocomplete behavior and /due command - We don't display slash commands for note edit forms. - Add tests for reply by email with slash commands - Be sure to execute slash commands after the note creation in Notes::CreateService Signed-off-by: Rémy Coutable <remy@rymai.me>
* | New Notes::SlashCommandsService serviceRémy Coutable2016-08-132-40/+25
| | | | | | | | | | | | Check for update_issuable permission in Notes::SlashCommandsService Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Support slash commands in noteable description and notesRémy Coutable2016-08-131-1/+49
|/ | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fix not normalized emoji pathsdixpac2016-07-141-1/+0
| | | | | | * There where path where +1 was stored as +1 not as thumbsup that was causing problems such as showing thumbsup icon 2 time. I fixed this to always normalize and store +1 as tumbsup
* Automatically update diff note positions when MR is pushed toDouwe Maan2016-07-061-0/+30
|
* Incorportate feedbackZ.J. van de Weg2016-06-011-1/+1
|
* Merge branch 'master' into awardablesZJ van de Weg2016-05-301-11/+0
|\
| * Remove reduntant note validation from create serviceGrzegorz Bizon2016-05-291-11/+0
| |
* | Fix latests concernsZJ van de Weg2016-05-181-2/+4
| |