summaryrefslogtreecommitdiff
path: root/app/services
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'capitalize-mentioned-issue-notes' into 'master' Douwe Maan2016-08-261-5/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Capitalize mentioned issue timeline notes ## What does this MR do? Renames `mentioned in` to `Mentioned in` for issue timeline notes ## Are there points in the code the reviewer needs to double check? Shouldn't be any :smile: ## Why was this MR needed? Resolves existing UI inconsistency as all the other issue timeline notes have their first letter capitalized. ## What are the relevant issue numbers? Closes #21416 ## Screenshots (if relevant) Before: ![Screen_Shot_2016-08-25_at_10.52.47_AM](/uploads/61de0a7d65fd739a6e565f6e63d2f52d/Screen_Shot_2016-08-25_at_10.52.47_AM.png) After: ![Screen_Shot_2016-08-25_at_10.52.05_AM](/uploads/f67f353c285453306d6b80578b11e587/Screen_Shot_2016-08-25_at_10.52.05_AM.png) ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !6028
| * Capitalize mentioned issue timeline notesClement Ho2016-08-251-5/+5
| |
* | Merge branch '19730-mark-as-done' into 'master' Robert Speicher2016-08-251-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the received id is still a pending todo mark it as done ## What does this MR do? Just return properly on stale todos, for me is annoying to mark as done a todo that is already done and the done hung there forever, so I have to refresh the page. I decided to resolve the issue myself. ## What are the relevant issue numbers? Closes #19730 See merge request !5795
| * | Add specs to ensure a successful return 19730-mark-as-donePaco Guzman2016-08-251-1/+2
| |/ | | | | on the UI when mark as done a already done todo.
* | Merge branch 'statuseable-hasstatus' into 'master' Robert Speicher2016-08-251-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rename Statuseable to HasStatus ## What does this MR do? - Rename all instances of Statuseable in the codebase, to HasStatus - Rename all files from statuseable to has_status ## What are the relevant issue numbers? Closes #21103 See merge request !6003
| * | rename Statuseable to HasStatusDe Wet Blomerus2016-08-251-1/+1
| |/
* | Label list shows all issues (opened or closed) with that labelDouglas Barbosa Alexandre2016-08-251-1/+6
|/
* Merge branch 'expiration-date-on-memberships' into 'master' Douwe Maan2016-08-192-6/+20
|\ | | | | | | | | | | | | Expiration date on memberships Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/17495 See merge request !5876
| * Merge branch 'master' into 'expiration-date-on-memberships'Sean McGivern2016-08-193-0/+24
| |\ | | | | | | | | | # Conflicts: # db/schema.rb
| * \ Merge branch 'master' into expiration-date-on-membershipsSean McGivern2016-08-1813-76/+449
| |\ \
| * | | Ensure last group owner isn't removed on expirySean McGivern2016-08-181-0/+2
| | | |
| * | | Merge branch 'master' into expiration-date-on-membershipsSean McGivern2016-08-1849-292/+1011
| |\ \ \
| * | | | Extract Members::AuthorizedDestroyService from Members::DestroyService.Adam Niedzielski2016-08-042-6/+18
| | | | |
* | | | | Fix notification_service argument error of declined invitation emailsPaco Guzman2016-08-191-2/+0
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | Removing unused access_level parameter. Bug introduced here -> 6d103a2f4764441b1650ba6d790732056c9a8516 access_level parameter wasn’t needed since -> 88c2639356e6e4b4b05d96584768e07a9ce4b048
* | | | Merge branch 'diff-line-comment-vuejs' into 'master' Douwe Maan2016-08-193-0/+24
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Merge branch 'master' into diff-line-comment-vuejsDouwe Maan2016-08-181-1/+5
| |\ \ \ | | | | | | | | | | | | | | | | | | | | # Conflicts: # db/schema.rb
| * \ \ \ Merge branch 'master' into diff-line-comment-vuejsConnor Shea2016-08-184-3/+55
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | Merge branch 'master' into diff-line-comment-vuejsConnor Shea2016-08-179-0/+308
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into diff-line-comment-vuejsConnor Shea2016-08-1618-103/+305
| |\ \ \ \ \
| * | | | | | Address review feedbackDouwe Maan2016-08-161-1/+1
| | | | | | |
| * | | | | | Merge branch 'master' into diff-line-comment-vuejsDouwe Maan2016-08-1216-179/+323
| |\ \ \ \ \ \
| * | | | | | | Actually don't send resolved notifications when deleting a noteDouwe Maan2016-08-041-4/+0
| | | | | | | |
| * | | | | | | Merge branch 'master' into diff-line-comment-vuejsDouwe Maan2016-08-0314-97/+167
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # app/models/discussion.rb # db/schema.rb
| * | | | | | | | Send notification email when all discussions are resolvedDouwe Maan2016-07-282-1/+10
| | | | | | | | |
| * | | | | | | | Add 'Resolved all discussions' system noteDouwe Maan2016-07-283-0/+19
| | | | | | | | |
* | | | | | | | | Merge branch '4273-slash-commands' into 'master'Robert Speicher2016-08-1813-75/+444
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support slash commands in issues / MR description & comments See merge request !5021
| * | | | | | | | Fix behavior around commands with optional arguments4273-slash-commandsDouwe Maan2016-08-181-2/+2
| | | | | | | | |
| * | | | | | | | Fix behavior of label_ids and add/remove_label_idsDouwe Maan2016-08-181-7/+8
| | | | | | | | |
| * | | | | | | | Remove unneeded aliasesDouwe Maan2016-08-181-14/+21
| | | | | | | | |
| * | | | | | | | Address feedbackDouwe Maan2016-08-172-6/+3
| | | | | | | | |
| * | | | | | | | Fix specs and implement fixes based on failing specsDouwe Maan2016-08-175-20/+36
| | | | | | | | |
| * | | | | | | | Merge branch 'master' into 4273-slash-commandsDouwe Maan2016-08-1618-95/+297
| |\ \ \ \ \ \ \ \ | | | |_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # app/services/issues/create_service.rb
| * | | | | | | | Fixed specs and fixes based on failing specsDouwe Maan2016-08-163-48/+73
| | | | | | | | |
| * | | | | | | | Prefer `/reopen` over `/open`, remove `/reassign`Douwe Maan2016-08-121-21/+21
| | | | | | | | |
| * | | | | | | | Allow setting labels, milestones and assignee based on nameDouwe Maan2016-08-121-3/+9
| | | | | | | | |
| * | | | | | | | Force notes poll after commands have been executedDouwe Maan2016-08-121-1/+1
| | | | | | | | |
| * | | | | | | | Refactor slash command definitionDouwe Maan2016-08-126-74/+61
| | | | | | | | |
| * | | | | | | | Simplify the slash commands DSL to store action blocks instead of creating ↵Rémy Coutable2016-08-136-52/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 TodoService#todo_exists? methodRémy Coutable2016-08-132-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | | | | Accept blocks for `.desc` and `.condition` slash commands DSLRémy Coutable2016-08-131-97/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, pass options as instance variables, making the DSL more user-friendly / natural. Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | | | | Make slash commands contextualRémy Coutable2016-08-132-22/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Return only slash commands that make sense for the current noteable - Allow slash commands decription to be dynamic Other improvements: - Add permission checks in slash commands definition - Use IssuesFinder and MergeRequestsFinder - Use next if instead of a unless block, and use splat operator instead of flatten Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | | | | Add support for no-op slash commands that appear in autocompleteRémy Coutable2016-08-131-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first one is /cc Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | | | | Don't extract slash commands inside blockcode, blockquote or HTML tagsRémy Coutable2016-08-132-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve slash command descriptions, support /due tomorrow Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | | | | Add the /title slash commandRémy Coutable2016-08-132-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | | | | New Notes::SlashCommandsService serviceRémy Coutable2016-08-134-50/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for update_issuable permission in Notes::SlashCommandsService Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | | | | Enforce permissions in `{Issues,MergeRequests}::{Close,Reopen}Service`Rémy Coutable2016-08-134-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | | | | | | Support slash commands in noteable description and notesRémy Coutable2016-08-136-45/+266
| | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | Rename TodoService#mark_todos_as_done_by_id{,s}Ahmad Sherif2016-08-181-2/+2
| | | | | | | |
* | | | | | | | Implement TodoService#mark_todos_as_done_by_idAhmad Sherif2016-08-181-1/+5
| |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | Follow-up on 52b0c26
* | | | | | | Merge branch '2451-fix-mentions-in-issue-updates' into 'master' Robert Speicher2016-08-174-4/+56
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Send notification emails when users are newly mentioned in issue or MR edits ## What does this MR do? Introduces "new mention in issue" and "new mention in MR" email notifications. Editing a Mentionable title or description and adding a mention to a user who was not previously mentioned will now send them a notification email, following usual permissions for doing so. ## Why was this MR needed? Issues & MRs may be edited to include mentions to new people. We don't currently send out email notifications of these edits to anyone, although they do create TODOs. This brings email notifications into parity with TODOs. ## What are the relevant issue numbers? Closes #2451 See merge request !5800