Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | DRY up caching in AbstractReferenceFilter | Sean McGivern | 2017-08-07 | 1 | -40/+20 |
| | | | | | We had a lot of copied and pasted code, when the different elements were very small and easy to get wrong. | ||||
* | Support references to group milestones | Sean McGivern | 2017-08-07 | 2 | -11/+64 |
| | | | | | Group milestones can only be referred to by name, not IID. They also do not support cross-project references. | ||||
* | Don't bother going through an entire Banzai pipeline for empty textrs-minor-banzai-perf | Robert Speicher | 2017-08-03 | 1 | -0/+2 |
| | | | | | | | | | | This bails out of `cacheless_render` immediately unless the provided text is present, since there's no point. This is a slight improvement in our test performance. Across the creation of 1,000 `Namespace` records, which caches the `description` field and which is blank by default in its factory, this saves about four seconds, which... sure. Why not. | ||||
* | Rename more path_with_namespace -> full_path or disk_path | Gabriel Mazetto | 2017-08-01 | 1 | -1/+1 |
| | |||||
* | Rename many path_with_namespace -> full_path | Gabriel Mazetto | 2017-08-01 | 2 | -3/+3 |
| | |||||
* | Resolve "Lazy load images on the Frontend" | Tim Zallmann | 2017-07-24 | 5 | -2/+20 |
| | |||||
* | Support both internal and external issue trackers | Jarka Kadlecova | 2017-07-24 | 2 | -4/+8 |
| | |||||
* | Merge branch 'acet-fix-tooltip-placement' into 'master' | Jacob Schatz | 2017-07-06 | 1 | -0/+2 |
|\ | | | | | | | | | | | | | Fix markdown preview tooltip cut off issue Closes #31748 See merge request !12367 | ||||
| * | Banzai: Add tooltip attributes to reference filter.acet-fix-tooltip-placement | Fatih Acet | 2017-07-03 | 1 | -0/+2 |
| | | |||||
* | | Create and use project path helpers that only need a project, no namespace | Douwe Maan | 2017-07-05 | 7 | -8/+7 |
|/ | |||||
* | Improve support for external issue referencesadam-external-issue-references-spike | Adam Niedzielski | 2017-06-30 | 4 | -49/+5 |
| | |||||
* | Enable Style/DotPosition Rubocop :cop: | Grzegorz Bizon | 2017-06-21 | 3 | -6/+6 |
| | |||||
* | Don't return nil for missing objects from parser cachedm-fix-parser-cache | Douwe Maan | 2017-06-14 | 1 | -1/+1 |
| | |||||
* | Merge branch '25934-project-snippet-vis' into 'security-9-2' | DJ Mountney | 2017-06-08 | 9 | -10/+14 |
| | | | | | | Fix visibility when referencing snippets See merge request !2101 | ||||
* | Fix /unsubscribe slash command creating extra todos33032-invalid-you-directly-addressed-yourself-todo-when-using-unsubscribe | Sean McGivern | 2017-05-30 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | The /unsubscribe slash command means that we check if the current user is subscribed to the issuable without having an explicit subscription. That means that we use the UserParser to find references to them in the notes. The UserParser (and all parsers inheriting from BaseParser) use RequestStore to cache ActiveRecord objects, so that we don't need to load the User object each time, if we're parsing references a bunch of times in the same request. However, it was always returning _all_ of the previously cached items, not just the ones matching the IDs passed. This would mean that we did two runs through with UserParser if you were mentioned in a comment, and then mentioned someone else in your comment while using /unsubscribe: 1. Because /unsubscribe was used, we see if you were mentioned in any comments. 2. Because you mentioned someone, we find them - but we would also get back your user, even if you didn't mention yourself. This would have the effect of creating a mention or directly addressed todo for yourself incorrectly. The fix is simple: only return values from the cache matching the IDs passed. | ||||
* | Merge branch '29852-latex-formatting' into 'master' | Robert Speicher | 2017-05-24 | 3 | -0/+31 |
|\ | | | | | | | | | | | | | Fix LaTeX formatting for AsciiDoc wiki Closes #29852 See merge request !11212 | ||||
| * | Fix LaTeX formatting for AsciiDoc wiki | Jarka Kadlecova | 2017-05-24 | 3 | -0/+31 |
| | | |||||
* | | Catch all URI errors in ExternalLinkFilterdm-catch-uri-errors | Douwe Maan | 2017-05-18 | 1 | -1/+1 |
|/ | |||||
* | Merge branch 'bvl-security-9-1-validate-urls-in-markdown-using-uri' | Robert Speicher | 2017-05-10 | 1 | -18/+18 |
| | | | | | | (security-9-1) Add correct `rel` attributes to external links when rendering markdown See merge request !2097 | ||||
* | Merge branch 'bvl-security-9-1-markup-pipeline' | Robert Speicher | 2017-05-10 | 1 | -0/+13 |
| | | | | | | (security-9-1) Render asciidoc & other markup using banzai in a pipeline See merge request !2098 | ||||
* | Backport of multiple_assignees_feature [ci skip] | Valery Sizov | 2017-05-04 | 1 | -1/+1 |
| | |||||
* | Remove N+1 queries when checking nodes visible to userfix-n-plus-one-project-features | Sean McGivern | 2017-05-02 | 1 | -1/+2 |
| | | | | | | | N in this case is low, as it's the number of distinct projects referenced from MRs, rather than the number of MRs referenced (issues use their own optimization). Still, on issues or MRs which are often referenced from MRs, it will save a few queries. | ||||
* | Merge branch 'blackst0ne/gitlab-ce-fix_emoji_parser' | Sean McGivern | 2017-04-27 | 1 | -1/+4 |
|\ | |||||
| * | Fix rendering emoji inside a string | blackst0ne | 2017-04-25 | 1 | -1/+4 |
| | | |||||
* | | issues_for_nodes => issuables_for_nodes31280-skip-issueables-without-project | Lin Jen-Shin | 2017-04-26 | 1 | -3/+3 |
| | | |||||
* | | Follow feedback on the review | Lin Jen-Shin | 2017-04-26 | 1 | -4/+4 |
| | | |||||
* | | Skip issuable without a project in IssuableExtractor#extract | Lin Jen-Shin | 2017-04-25 | 1 | -1/+5 |
| | | | | | | | | Closes #31280 | ||||
* | | Start versioning cached markdown fields | Nick Thomas | 2017-04-21 | 1 | -14/+7 |
| | | |||||
* | | Remove a use of module_function | Nick Thomas | 2017-04-21 | 1 | -12/+10 |
| | | |||||
* | | Merge branch 'issuable-state-custom-links' into 'master' | Sean McGivern | 2017-04-20 | 1 | -2/+2 |
|\ \ | | | | | | | | | | | | | | | | | | | Do not append issuable state to links with custom anchor Closes #30916 See merge request !10782 | ||||
| * | | Do not append issuable state to links with custom anchorissuable-state-custom-links | Adam Niedzielski | 2017-04-19 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | Closes #30916 Change the presentation from [closed] to (closed) | ||||
* | | | Merge branch 'plantuml-filter-after-highlight' into 'master' | Sean McGivern | 2017-04-20 | 1 | -4/+4 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | Fix PlantUML integration in GFM Closes #30557 See merge request !10651 | ||||
| * | | Fix PlantUML integration in GFMplantuml-filter-after-highlight | Adam Niedzielski | 2017-04-19 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | Fixes #30557 Use "lang" attribute instead of "class" in PlantumlFilter. | ||||
* | | | Display issuable state only in notes and issuable description | Adam Niedzielski | 2017-04-19 | 1 | -0/+2 |
|/ / | | | | | | | Closes #30964 | ||||
* | | Fix regression in rendering Markdown references that do not existsh-fix-base-parser | Stan Hu | 2017-04-15 | 1 | -1/+2 |
| | | | | | | | | Closes #30972 | ||||
* | | Fix appending state to issuable referencesfix-appending-state-to-issuable-references | Adam Niedzielski | 2017-04-13 | 1 | -2/+2 |
|/ | | | | | | | Closes #30874. Ignore nodes with no children. Append directly to the node instead of the last child of the node to avoid inheriting formatting from the last child | ||||
* | Reuse "merge_requests_for_nodes" in "MergeRequestParser"merge-request-parser-merge-requests-for-nodes | Adam Niedzielski | 2017-04-10 | 1 | -11/+30 |
| | |||||
* | Add indication for closed or merged issuables in GFMadam-finish-5993-closed-issuable | Adam Buckland | 2017-04-07 | 9 | -40/+124 |
| | | | | | | | | | | | | | | | Example: for issues that are closed, the links will now show '[closed]' following the issue number. This is done as post-process after the markdown has been loaded from the cache as the status of the issue may change between the cache being populated and the content being displayed. In order to avoid N+1 queries problem when rendering notes ObjectRenderer populates the cache of referenced issuables for all notes at once, before the post processing phase. As a part of this change, the Banzai BaseParser#grouped_objects_for_nodes method has been refactored to return a Hash utilising the node itself as the key, since this was a common pattern of usage for this method. | ||||
* | Merge branch '30125-markdown-security' | Robert Speicher | 2017-04-05 | 5 | -25/+16 |
| | | | | | | Remove class from SanitizationFilter whitelist See merge request !2079 | ||||
* | Merge branch 'make_user_mentions_case_insensitive' into 'master' | Sean McGivern | 2017-03-29 | 1 | -2/+2 |
|\ | | | | | | | | | | | | | Make user mentions case-insensitive Closes #24493 See merge request !10285 | ||||
| * | Make user mentions case-insensitive | blackst0ne | 2017-03-29 | 1 | -2/+2 |
| | | |||||
* | | Get rid of a third N+1 query problem | Rémy Coutable | 2017-03-28 | 1 | -1/+3 |
| | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | | Get rid of second N+1 query problem | Rémy Coutable | 2017-03-28 | 1 | -0/+4 |
| | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | | Get rid of a first N+1 query problem | Rémy Coutable | 2017-03-28 | 1 | -2/+21 |
|/ | | | | | | | Use the same approach in Banzai::Filter::MergeRequestReferenceFilter as we do with issues. Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Merge branch 'fix-links-target-blank' into 'security' | Jacob Schatz | 2017-03-20 | 2 | -2/+3 |
| | | | | | | Adds rel="noopener noreferrer" to all links with target="_blank" See merge request !2071 | ||||
* | Use Enumerable#index_by where possibledm-use-index-by | Douwe Maan | 2017-03-16 | 3 | -13/+3 |
| | |||||
* | remove all references to the .es6 in our config files and documentationremove-es6-extension-configuration | Mike Greiling | 2017-03-15 | 1 | -2/+2 |
| | |||||
* | Copy code as GFM from diffs, blobs and GFM code blocks | Douwe Maan | 2017-03-14 | 1 | -12/+1 |
| | |||||
* | use a magic default :global symbol instead of nil | http://jneen.net/ | 2017-03-09 | 1 | -1/+1 |
| | | | | to make sure we mean the global permissions | ||||
* | Merge branch '26371-native-emojis-v3' into 'master' | Filipa Lacerda | 2017-03-07 | 1 | -53/+11 |
|\ | | | | | | | | | | | | | Add emoji images - Base Native Unicode Emojis Closes #26371 See merge request !9569 |