Commit 5e645889 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rs-banzai-requires' into 'master'

Remove redundant `require`s from Banzai files

We're trying to avoid circular dependency errors.

Related: https://gitlab.com/gitlab-org/gitlab-ce/issues/13521

Sentry: https://sentry.gitlap.com/gitlab/gitlabcom/issues/8/

See merge request !3391
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 07a4aaca
...@@ -16,6 +16,7 @@ v 8.6.2 ...@@ -16,6 +16,7 @@ v 8.6.2
- Fix an issue hiding the password form when signed-in with a linked account. !3381 - Fix an issue hiding the password form when signed-in with a linked account. !3381
- Add links to CI setup documentation from project settings and builds pages. !3384 - Add links to CI setup documentation from project settings and builds pages. !3384
- Fix an issue with width of project select dropdown. !3386 - Fix an issue with width of project select dropdown. !3386
- Remove redundant `require`s from Banzai files. !3391
- Fix error 500 with cancel button on issuable edit form. !3392 + !3417 - Fix error 500 with cancel button on issuable edit form. !3392 + !3417
- Fix background when editing a highlighted note. !3423 - Fix background when editing a highlighted note. !3423
- Remove tabstop from the WIP toggle links. !3426 - Remove tabstop from the WIP toggle links. !3426
......
require 'active_support/core_ext/string/output_safety'
module Banzai module Banzai
module Filter module Filter
def self.[](name) def self.[](name)
......
require 'html/pipeline/filter'
require 'uri' require 'uri'
module Banzai module Banzai
......
require 'action_controller'
require 'gitlab_emoji'
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces :emoji: with images. # HTML filter that replaces :emoji: with images.
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML Filter to add a `rel="nofollow"` attribute to external links # HTML Filter to add a `rel="nofollow"` attribute to external links
......
require 'banzai'
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML Filter for parsing Gollum's tags in HTML. It's only parses the # HTML Filter for parsing Gollum's tags in HTML. It's only parses the
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
class MarkdownFilter < HTML::Pipeline::TextFilter class MarkdownFilter < HTML::Pipeline::TextFilter
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces milestone references with links. # HTML filter that replaces milestone references with links.
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML filter that removes references to records that the current user does # HTML filter that removes references to records that the current user does
......
require 'active_support/core_ext/string/output_safety'
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# Base class for GitLab Flavored Markdown reference filters. # Base class for GitLab Flavored Markdown reference filters.
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML filter that gathers all referenced records that the current user has # HTML filter that gathers all referenced records that the current user has
......
require 'html/pipeline/filter'
require 'uri' require 'uri'
module Banzai module Banzai
......
require 'html/pipeline/filter'
require 'html/pipeline/sanitization_filter'
module Banzai module Banzai
module Filter module Filter
# Sanitize HTML # Sanitize HTML
......
require 'html/pipeline/filter'
require 'rouge/plugins/redcarpet' require 'rouge/plugins/redcarpet'
module Banzai module Banzai
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML filter that adds an anchor child element to all Headers in a # HTML filter that adds an anchor child element to all Headers in a
......
require 'html/pipeline/filter'
require 'uri' require 'uri'
module Banzai module Banzai
......
require 'html/pipeline/filter'
require 'yaml'
module Banzai module Banzai
module Filter module Filter
class YamlFrontMatterFilter < HTML::Pipeline::Filter class YamlFrontMatterFilter < HTML::Pipeline::Filter
......
require 'html/pipeline'
module Banzai module Banzai
module Pipeline module Pipeline
class BasePipeline class BasePipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class WikiPipeline < FullPipeline class WikiPipeline < FullPipeline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment