summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Small refactor and syntax fixes.2fa-api-checkPatricio Cano2016-08-185-6/+5
|
* Removed unnecessary service for user retrieval and improved API error message.Patricio Cano2016-08-184-34/+3
|
* Added documentation and CHANGELOG itemPatricio Cano2016-08-186-5/+6
|
* Added checks for 2FA to the API `/sessions` endpoint and the Resource Owner ↵Patricio Cano2016-08-187-1/+79
| | | | Password Credentials flow.
* Merge branch '4273-slash-commands' into 'master'Robert Speicher2016-08-1856-136/+2613
|\ | | | | | | | | | | Support slash commands in issues / MR description & comments See merge request !5021
| * Fix behavior around commands with optional arguments4273-slash-commandsDouwe Maan2016-08-185-42/+63
| |
| * Fix behavior of label_ids and add/remove_label_idsDouwe Maan2016-08-181-7/+8
| |
| * Remove unneeded aliasesDouwe Maan2016-08-188-117/+109
| |
| * Address feedbackDouwe Maan2016-08-174-23/+19
| |
| * Fix specs and implement fixes based on failing specsDouwe Maan2016-08-1711-84/+75
| |
| * Merge branch 'master' into 4273-slash-commandsDouwe Maan2016-08-16238-892/+4066
| |\ | | | | | | | | | | | | # Conflicts: # app/services/issues/create_service.rb
| * | Fixed specs and fixes based on failing specsDouwe Maan2016-08-1613-428/+365
| | |
| * | Prefer `/reopen` over `/open`, remove `/reassign`Douwe Maan2016-08-122-24/+24
| | |
| * | Allow setting labels, milestones and assignee based on nameDouwe Maan2016-08-121-3/+9
| | |
| * | Force notes poll after commands have been executedDouwe Maan2016-08-124-33/+35
| | |
| * | Autocomplete based on names and aliasesDouwe Maan2016-08-121-0/+16
| | |
| * | Link to slash commands documentation from form hintsDouwe Maan2016-08-123-4/+11
| | |
| * | Disable slash commands on edit formsDouwe Maan2016-08-125-7/+13
| | |
| * | Fix autocomplete on commit and issue/MR edit pagesDouwe Maan2016-08-123-7/+8
| | |
| * | Refactor slash command definitionDouwe Maan2016-08-1211-164/+190
| | |
| * | Only autocomplete commands at the beginning of a lineDouwe Maan2016-08-121-2/+11
| | |
| * | Simplify the slash commands DSL to store action blocks instead of creating ↵Rémy Coutable2016-08-1316-159/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-134-3/+19
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | Accept blocks for `.desc` and `.condition` slash commands DSLRémy Coutable2016-08-133-154/+171
| | | | | | | | | | | | | | | | | | | | | 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-1310-65/+394
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-135-14/+35
| | | | | | | | | | | | | | | | | | 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-136-16/+98
| | | | | | | | | | | | | | | | | | Improve slash command descriptions, support /due tomorrow Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | Add the /title slash commandRémy Coutable2016-08-136-12/+89
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | New Notes::SlashCommandsService serviceRémy Coutable2016-08-1310-251/+387
| | | | | | | | | | | | | | | | | | 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-139-21/+178
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | Support slash commands in noteable description and notesRémy Coutable2016-08-1331-58/+1552
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge branch ↵Jacob Schatz2016-08-184-4/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '3225-ace-editor-causing-404-errors-every-time-you-try-to-edit-a-file-in-the-webui' into 'master' Fix Ace syntax highlighting with compiled assets ## What does this MR do? Update ACE to 4.1.0 to allow modes (syntax highlighting files for particular languages) to be lazily loaded. ## Are there points in the code the reviewer needs to double check? Don't think so. ## Why was this MR needed? Syntax highlighting in the file editor only worked in development and test modes, not in production! ## What are the relevant issue numbers? Closes #3225. ## Screenshots (if relevant) First, the test setup - add these lines to `development.rb`: ```ruby config.assets.debug = false config.assets.compile = false config.assets.digest = true ``` Then, before starting the server, run `bundle exec rake assets:clobber assets:precompile`. Before: ![image](/uploads/486198e273019f8969d2e90560d82928/image.png) There is an error in the console because `/assets/ace/mode-ruby.js` was not found (it's only available when assets are compiled on demand). After: ![image](/uploads/6aa0d69b7efdfd6fe6aa22b9a49e9716/image.png) This loads `/assets/ace/mode-ruby-3915f95a6cc47306b1305e4dcb7aca25b2ef9c49b18ec6011707135b6575d8f3.js`, which works because the precompile step included it and told ACE where to find it. ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~ - ~~API support added~~ - Tests - ~~Added for this feature/bug~~ - [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 !5501
| * | | Fix Ace syntax highlighting with compiled assets3225-ace-editor-causing-404-errors-every-time-you-try-to-edit-a-file-in-the-webuiSean McGivern2016-08-174-4/+5
| | | |
* | | | Merge branch '13664-abuse-report-page-should-have-a-maximum-width' into ↵Jacob Schatz2016-08-188-24/+172
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Abuse Reports message truncation ## What does this MR do? Adds dynamic message truncation to abuse reports ## Are there points in the code the reviewer needs to double check? Is the new UI OK? ## Why was this MR needed? Admin UX ## What are the relevant issue numbers? Closes #13664. ## Screenshots (if relevant) **UPDATED:** ![Screen_Shot_2016-07-07_at_03.02.43](/uploads/2e1a1122e0194f8ffa48054c18523ccd/Screen_Shot_2016-07-07_at_03.02.43.png) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] 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) Closes #13664 See merge request !5032
| * | | | Moved truncation method chain to utility method13664-abuse-report-page-should-have-a-maximum-widthLuke Bennett2016-08-182-2/+5
| | | | |
| * | | | Review changesLuke Bennett2016-08-142-5/+8
| | | | |
| * | | | Some more styling tweaks and added jasmine testLuke Bennett2016-08-145-8/+74
| | | | |
| * | | | Reverted collapsible design for HazelsLuke Bennett2016-08-146-227/+95
| | | | |
| * | | | Added new but unaccepted design pattern, it is only pushed for future ↵Luke "Jared" Bennett2016-08-143-47/+25
| | | | | | | | | | | | | | | | | | | | reference on the slim chance that a similar pattern is used
| * | | | Updated collapsibleLuke "Jared" Bennett2016-08-143-53/+37
| | | | |
| * | | | Review changesLuke "Jared" Bennett2016-08-142-18/+25
| | | | |
| * | | | Final table styling changesLuke "Jared" Bennett2016-08-141-4/+7
| | | | |
| * | | | Started on abuse reports message truncationLuke "Jared" Bennett2016-08-144-1/+209
| | | | |
| * | | | Altered abuse report UILuke "Jared" Bennett2016-08-142-41/+69
| | | | |
* | | | | Merge branch '18334-truncate-award-emoji-users' into 'master' Jacob Schatz2016-08-186-28/+116
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Truncated long user lists in award emoji tooltips ## What does this MR do? Truncates award emoji tooltips so that they only show 10 users maximum. Further users are indicated by appending "and X more." ## Are there points in the code the reviewer needs to double check? Is 10 too little, should it be raised? My test cases rely on join() to build the expected output. This feels a little iffy is it alright? ## Why was this MR needed? Some issues have a large number of thumbs causing tooltips to be very large. ## What are the relevant issue numbers? closes #18334, closes #19542 ## Screenshots (if relevant) ##### Before ![Screenshot_from_2016-06-20_19-49-12](/uploads/d7a14dd87bb3da2acd7c0818de99852b/Screenshot_from_2016-06-20_19-49-12.png) ##### After ![Screenshot_from_2016-06-20_19-50-58](/uploads/f7f05c44594bfe8cec7dfd48802753a6/Screenshot_from_2016-06-20_19-50-58.png) Truncation point modified for purposes of screenshot ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] API support added - [x] Tests - [x] Added for this feature/bug - [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 !4780
| * | | | | Replace resetTooltip with bootstrap's fixTitleJack Davison2016-08-171-14/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * resetTooltip totally destroyed and regenerated the tooltip while fixTitle simply replaces the text in the existing element. * resetTooltip also called an asyncronous function with no suitable callback resulting in a messy setTimout workaround. fixTitle is syncronous.
| * | | | | Fix duplicate "me" in award emoji tooltipJack Davison2016-08-172-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Works by explicitly deleting out-of-date data attributes * No longer directly assigns to data-original-title
| * | | | | Award tooltips refer to current user as "You"Jack Davison2016-08-175-25/+25
| | | | | |
| * | | | | Switch to using to_sentence to construct tooltipsJack Davison2016-08-174-14/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Code in ruby now uses Array#to_sentence to construct award tooltips * Coffeescript uses a combination of regexes for the same result
| * | | | | Truncates 9-10 users with current user in frontJack Davison2016-08-172-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * If the current user is not in the list output will have 1-9 users * If the current user is in the list output will be "me, " + 0-9 users