Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
47b64f2d
Commit
47b64f2d
authored
Apr 09, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepend EE modules in the last line for Banzai
parent
e86e63fa
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
lib/banzai/filter/epic_reference_filter.rb
lib/banzai/filter/epic_reference_filter.rb
+2
-2
lib/banzai/issuable_extractor.rb
lib/banzai/issuable_extractor.rb
+2
-2
lib/banzai/pipeline/gfm_pipeline.rb
lib/banzai/pipeline/gfm_pipeline.rb
+2
-2
lib/banzai/pipeline/post_process_pipeline.rb
lib/banzai/pipeline/post_process_pipeline.rb
+2
-2
lib/banzai/pipeline/single_line_pipeline.rb
lib/banzai/pipeline/single_line_pipeline.rb
+2
-2
lib/banzai/reference_parser/epic_parser.rb
lib/banzai/reference_parser/epic_parser.rb
+2
-2
No files found.
lib/banzai/filter/epic_reference_filter.rb
View file @
47b64f2d
...
...
@@ -4,8 +4,6 @@ module Banzai
module
Filter
# The actual filter is implemented in the EE mixin
class
EpicReferenceFilter
<
IssuableReferenceFilter
prepend_if_ee
(
'EE::Banzai::Filter::EpicReferenceFilter'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
self
.
reference_type
=
:epic
def
self
.
object_class
...
...
@@ -20,3 +18,5 @@ module Banzai
end
end
end
Banzai
::
Filter
::
EpicReferenceFilter
.
prepend_if_ee
(
'EE::Banzai::Filter::EpicReferenceFilter'
)
lib/banzai/issuable_extractor.rb
View file @
47b64f2d
...
...
@@ -9,8 +9,6 @@ module Banzai
# so we can avoid N+1 queries problem
class
IssuableExtractor
prepend_if_ee
(
'EE::Banzai::IssuableExtractor'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
attr_reader
:context
ISSUE_REFERENCE_TYPE
=
'@data-reference-type="issue"'
...
...
@@ -59,3 +57,5 @@ module Banzai
end
end
end
Banzai
::
IssuableExtractor
.
prepend_if_ee
(
'EE::Banzai::IssuableExtractor'
)
lib/banzai/pipeline/gfm_pipeline.rb
View file @
47b64f2d
...
...
@@ -3,8 +3,6 @@
module
Banzai
module
Pipeline
class
GfmPipeline
<
BasePipeline
prepend_if_ee
(
'EE::Banzai::Pipeline::GfmPipeline'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
# These filters transform GitLab Flavored Markdown (GFM) to HTML.
# The nodes and marks referenced in app/assets/javascripts/behaviors/markdown/editor_extensions.js
# consequently transform that same HTML to GFM to be copied to the clipboard.
...
...
@@ -77,3 +75,5 @@ module Banzai
end
end
end
Banzai
::
Pipeline
::
GfmPipeline
.
prepend_if_ee
(
'EE::Banzai::Pipeline::GfmPipeline'
)
lib/banzai/pipeline/post_process_pipeline.rb
View file @
47b64f2d
...
...
@@ -3,8 +3,6 @@
module
Banzai
module
Pipeline
class
PostProcessPipeline
<
BasePipeline
prepend_if_ee
(
'EE::Banzai::Pipeline::PostProcessPipeline'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
def
self
.
filters
@filters
||=
FilterArray
[
*
internal_link_filters
,
...
...
@@ -34,3 +32,5 @@ module Banzai
end
end
end
Banzai
::
Pipeline
::
PostProcessPipeline
.
prepend_if_ee
(
'EE::Banzai::Pipeline::PostProcessPipeline'
)
lib/banzai/pipeline/single_line_pipeline.rb
View file @
47b64f2d
...
...
@@ -3,8 +3,6 @@
module
Banzai
module
Pipeline
class
SingleLinePipeline
<
GfmPipeline
prepend_if_ee
(
'EE::Banzai::Pipeline::SingleLinePipeline'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
def
self
.
filters
@filters
||=
FilterArray
[
Filter
::
HtmlEntityFilter
,
...
...
@@ -41,3 +39,5 @@ module Banzai
end
end
end
Banzai
::
Pipeline
::
SingleLinePipeline
.
prepend_if_ee
(
'EE::Banzai::Pipeline::SingleLinePipeline'
)
lib/banzai/reference_parser/epic_parser.rb
View file @
47b64f2d
...
...
@@ -4,8 +4,6 @@ module Banzai
module
ReferenceParser
# The actual parser is implemented in the EE mixin
class
EpicParser
<
IssuableParser
prepend_if_ee
(
'::EE::Banzai::ReferenceParser::EpicParser'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
self
.
reference_type
=
:epic
def
records_for_nodes
(
_nodes
)
...
...
@@ -14,3 +12,5 @@ module Banzai
end
end
end
Banzai
::
ReferenceParser
::
EpicParser
.
prepend_if_ee
(
'::EE::Banzai::ReferenceParser::EpicParser'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment