summaryrefslogtreecommitdiff
path: root/lib/banzai
Commit message (Collapse)AuthorAgeFilesLines
* Correctly escape UTF-8 path elements for uploadsNick Thomas2018-01-181-3/+3
|
* Fix links to uploaded files on wiki pagesNick Thomas2018-01-161-0/+4
|
* Ensure that emails contain absolute, rather than relative, links to user uploadsNick Thomas2018-01-111-4/+11
|
* Copy Mermaid graphs as GFMdm-copy-mermaid-as-gfmDouwe Maan2018-01-051-10/+1
|
* Gracefully handle garbled URIs in Markdownsh-catch-invalid-uri-markdownStan Hu2017-12-221-1/+1
| | | | | | | There are certain inputs that look like valid URIs that are accepted by URI but not Addressable::URI. Handle the case where the latter fails. Closes #41442
* Use relative URLs when linking to uploaded filesNick Thomas2017-12-223-68/+39
|
* Merge branch 'jprovazn-ignore-anchors' into 'master'Sean McGivern2017-12-081-0/+1
|\ | | | | | | | | | | | | Use prefix for TableOfContents filter hrefs Closes #38473 See merge request gitlab-org/gitlab-ce!15806
| * Use prefix for TableOfContents filter hrefsJan Provaznik2017-12-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | TableOfContents filter generates hrefs for each header in markdown, if the header text consists from digits and redacted symbols only, e.g. "123" or "1.0 then the auto-generated href has the same format as issue references. If the generated id contains only digits, then 'anchor-' prefix is prepended to the id. Closes #38473
* | fix the missing reference to #references_per_projectmicael.bergeron2017-12-071-1/+1
| |
* | adding view and feature specsmicael.bergeron2017-12-071-0/+1
| |
* | add support for the commit reference filtermicael.bergeron2017-12-072-16/+35
| |
* | add support for commit (in mr) to reference filtermicael.bergeron2017-12-072-10/+20
| |
* | Merge branch 'ce-backport-3615' into 'master'Sean McGivern2017-12-0713-132/+163
|\ \ | | | | | | | | | | | | Refactor banzai to support referencing from group context See merge request gitlab-org/gitlab-ce!15766
| * | Refactor banzai to support referencing from group contextce-backport-3615Jarka Kadlecova2017-12-0613-132/+163
| |/
* | Support uploads for groupsJarka Kadlecova2017-12-071-2/+16
|/
* Merge branch 'jk-group-mentions-fix' into 'master'Sean McGivern2017-11-231-1/+2
|\ | | | | | | | | | | | | Fix link text from group context Closes gitlab-ee#4100 See merge request gitlab-org/gitlab-ce!15565
| * Fix link text from group contextJarka Kadlecova2017-11-231-1/+2
| |
* | Merge branch 'feature_add_mermaid' into 'master'Phil Hughes2017-11-223-14/+42
|\ \ | |/ |/| | | | | | | | | Add support of Mermaid Closes #3711 See merge request gitlab-org/gitlab-ce!15107
| * Add support of MermaidVitaliy @blackst0ne Klachkov2017-11-223-14/+42
| |
* | Adds Rubocop rule for line break after guard clauseJacopo2017-11-164-0/+6
|/ | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* Fix GFM reference links for closed milestonesbugfix_banzai_closed_milestonesVitaliy @blackst0ne Klachkov2017-11-071-1/+1
|
* Resolve "DashboardController#activity.json is slow due to SQL"Francisco Javier López2017-11-069-58/+86
|
* CE port of code changed for epicsjk-epic-changes-ce-portJarka Kadlecova2017-11-023-11/+41
|
* Merge branch 'security-10-1' into '10-1-stable'Jen-Shin Lin2017-10-171-2/+12
| | | | | Security fixes for 10.1 RC See merge request gitlab/gitlabhq!2209
* Create idea of read-only databasetc-geo-read-only-ideaToon Claes2017-10-061-6/+1
| | | | | | | | | | | | In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo secondary node). But in GitLab CE it also might be useful to have the "read-only" idea around. So port it back to GitLab CE. Also having the principle of read-only in GitLab CE would hopefully lead to less errors introduced, doing write operations when there aren't allowed for read-only calls. Closes gitlab-org/gitlab-ce#37534.
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-10-031-18/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gem/sm/bump-google-api-client-gem-from-0-8-6-to-0-13-6 * upstream/master: (186 commits) Resolve "Precompiled assets with digest strings are ignored in CI" Fix navigation dropdown close animation on mobile screens Add (partial) index on Labels.template Add grpc.log for Gitaly Fix gitaly-proto version in Gemfile.lock refactor issues_controller_spec `update` action Remove edit action for issues Add documentation to summarise project archiving Fix for Gitaly nil encoding issue Fix broken certificate-authority-data with kubectl >= 1.8.0 Improve performance of filtering notes in NotesController Bump gitaly-proto version to v0.39.0 Fix specs for project creation and update services Add CHANGELOG Doesn't check if path exists on disk when renaming a hashed project [ci skip] Fix archive spec descrptions Only copy old/new code when selecting left/right side of parallel diff Fix gitlab-rake gitlab:import:repos task Send extra Gitaly params for `send_git_archive` if needed Update GitLab Pages to v0.6.0 ...
| * Make Redcarpet Markdown renderer thread-safeStan Hu2017-10-021-18/+14
| | | | | | | | | | | | | | | | | | | | The Redcarpet library is not thread-safe as described in https://github.com/vmg/redcarpet/issues/570. Since we instantiate the Redcarpet renderer in a class variable, multiple Sidekiq threads can access the work buffer and corrupt the state. We work around this issue by memoizing the renderer on a thread basis. Closes #36637
* | Strip before passing to addressable, otherwise it's invalidLin Jen-Shin2017-09-281-1/+2
|/
* Re-allow `name` attribute on user-provided anchor HTMLRobert Speicher2017-09-221-1/+2
|
* Eliminate N+1 queries referencing issuessh-project-feature-eager-loadStan Hu2017-09-181-1/+2
| | | | | | | | To load issue 1, we see that in #38033 that about 835 ms of the SQL queries were due to loading ProjectFeature. We should be able to cut this down by eagerly loading this information. Closes #38033
* Remove ImageLazyLoadFilter from EmailPipeline37629-lazy-image-loading-breaks-notification-mails-for-an-added-screenshotRobert Speicher2017-09-122-1/+8
|
* Merge branch 'rs-issue-36104' into 'security-9-5'Douwe Maan2017-09-071-0/+3
| | | | | [9.5] Disallow the `name` attribute on all user-provided markup See merge request gitlab/gitlabhq!2166
* Merge branch 'rs-issue-36098' into 'security-9-5'Robert Speicher2017-09-071-1/+21
| | | | | [9.5] Limit `style` attribute on `th` and `td` elements to specific properties See merge request gitlab/gitlabhq!2155
* Merge branch 'anakashima/gitlab-ce-fix_wiki_toc_indent' into 'master'Sean McGivern2017-09-061-18/+72
|\ | | | | | | | | Wiki table of contents are now properly nested to reflect header level See merge request !13909
| * Refactor table of contents buildingRobert Speicher2017-09-061-19/+11
| |
| * Refactor `HeaderNode#find_parent`Robert Speicher2017-09-061-6/+7
| | | | | | | | | | Now the instance variable assignment is all contained within `#initialize`, and the `children.push` behavior is more explicit.
| * Refactor TableOfContentsFilter's nested table of contentsRobert Speicher2017-09-061-42/+64
| | | | | | | | Most of the logic is now self-contained within the `HeaderNode` class.
| * Fix indentation level in Wiki's TOC items to regard header levelAkihiro Nakashima2017-09-061-4/+43
| |
* | Adds cacheless render to Banzai object render34509-improves-markdown-rendering-performance-for-commits-listTiago Botelho2017-09-064-8/+16
| |
* | Adds CommitDescriptionRendererTiago Botelho2017-09-061-0/+7
|/
* Merge branch 'rs-more-public-send-whitelists' into 'master'Rémy Coutable2017-08-164-6/+6
|\ | | | | | | | | Whitelist or fix additional `Gitlab/PublicSend` cop violations See merge request !13467
| * Whitelist or fix additional `Gitlab/PublicSend` cop violationsrs-more-public-send-whitelistsRobert Speicher2017-08-144-6/+6
| | | | | | | | | | An upcoming update to rubocop-gitlab-security added additional violations.
* | Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher2017-08-151-2/+2
|/
* DRY up caching in AbstractReferenceFilterSean McGivern2017-08-071-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 milestonesSean McGivern2017-08-072-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-perfRobert Speicher2017-08-031-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_pathGabriel Mazetto2017-08-011-1/+1
|
* Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-012-3/+3
|
* Resolve "Lazy load images on the Frontend"Tim Zallmann2017-07-245-2/+20
|
* Support both internal and external issue trackersJarka Kadlecova2017-07-242-4/+8
|