| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| |
| |
| | |
Extract EE-specific lines from Banzai pipelines
See merge request gitlab-org/gitlab-ce!20636
|
| | | |
|
| |\ \
| |/
|/|
| |
| |
| |
| |
| |
| | |
'master'
Include full image URL in webhooks for uploaded images
Closes #20720
See merge request gitlab-org/gitlab-ce!18109
|
| | |\ |
|
| | | | |
|
| | | | |
|
| | |/
|/|
| |
| |
| |
| | |
Compile often used regexps only once outside of the loop.
This commit improves the performance of large wiki pages with many, many references.
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
update html-pipeline 2.7.1 -> 2.8
Closes #48571
See merge request gitlab-org/gitlab-ce!20348
|
| | | |
| | |
| | |
| | | |
I never liked the hacky `customized?` method anyway, so this is cleaner.
|
| | | |
| | |
| | |
| | | |
Fixes ActionView::Template::Error (can't modify frozen Hash) #48415
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Resolve "Render SHA in merge request commit reference with mono spaced font"
Closes #44994
See merge request gitlab-org/gitlab-ce!20228
|
| | | | | |
|
| | |/ /
|/| | |
|
| |/ / |
|
| | |
| |
| |
| |
| |
| |
| | |
`Nokogiri::XML::Node#ancestors` appears to be much slower than
`HTML::Pipeline::Filter#has_ancestor?` for these purposes. We already use
`#has_ancestor?` elsewhere, so this change also makes this filter more
consistent with other banzai filters.
|
| |\ \
| | |
| | |
| | |
| | | |
[master] Fix xss for Markdown elements where [[_TOC_]] is enabled
See merge request gitlab/gitlabhq!2400
|
| | | | |
|
| |\ \ \
| |_|/
|/| |
| | |
| | | |
[master] Update sanitize gem to 4.6.5 to fix HTML injection vulnerability
See merge request gitlab/gitlabhq!2399
|
| | | | |
|
| |/ / |
|
| |/
|
|
| |
milestone scope
|
| | |
|
| | |
|
| |
|
|
|
| |
This reduces the number of queries necessary when displaying the
activity page of a group.
|
| |
|
|
|
|
| |
ApplicationSetting.current where applicable
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Since !18150 abstract reference filter supports also `group`
as a resource parent (not only `project`). Some reference filters,
which inherit from abstract filter, depend on parent being `project`
when checking a reference.
This patch adds explicit check of parent class to the given filters.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This refactors the Markdown pipeline so it supports the rendering of
multiple documents that may belong to different projects. An example of
where this happens is when displaying the event feed of a group. In this
case we retrieve events for all projects in the group. Previously we
would group events per project and render these chunks separately, but
this would result in many SQL queries being executed. By extending the
Markdown pipeline to support this out of the box we can drastically
reduce the number of SQL queries.
To achieve this we introduce a new object to the pipeline:
Banzai::RenderContext. This object simply wraps two other objects: an
optional Project instance, and an optional User instance. On its own
this wouldn't be very helpful, but a RenderContext can also be used to
associate HTML documents with specific Project instances. This work is
done in Banzai::ObjectRenderer and allows us to reuse as many queries
(and results) as possible.
|
| |\
| |
| |
| |
| |
| |
| | |
Add support for patch link extension for commit links on GFM
Closes #17939
See merge request gitlab-org/gitlab-ce!18229
|
| | | |
|
| |/
|
|
|
|
|
| |
Updates notes-related services and rendering so this code can be
easily used for group-scoped resources (specifically Epics).
Related to gitlab-ee!5205
|
| |\
| |
| |
| |
| | |
Render MR commit SHA instead "diffs" when viable on GFM
See merge request gitlab-org/gitlab-ce!18141
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
We displayed the correct text as the link text (without double-encoding), but
didn't do the same for the actual link target, so any link containing an
ampersand would break when auto-linked.
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
| |
Now the issuable reference check works only in project scope, if we
reference an issuable from a non-project resource (e.g. epics), then
project is not set, and there is mismatch in generated issue references.
This patch enables issuable reference state check also from group scope.
Closes gitlab-ee#4683
Related to #30916
|
| | |
|
| | |
|
| |\
| |
| |
| |
| | |
Add CommonMark markdown engine
See merge request gitlab-org/gitlab-ce!14835
|
| | | |
|
| | | |
|
| |\ \
| |/
|/|
| |
| |
| |
| | |
Render htmlentities correctly for links not supported by Rinku
Closes #41719
See merge request gitlab-org/gitlab-ce!17180
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Rinku 2.0.0 (the version we use) will remove the last character of a link if
it's a closing part of a punctuation pair (different types of parentheses and
quotes), unless both of the below are true:
1. The matching pair has different start and end characters.
2. There are equal numbers of both in the matched string (they don't have to be
balanced).
|
| | | |
|