gitlab-org--gitlab-foss/config/initializers
Yorick Peterse d470f3d195
Support for rendering/redacting multiple documents
This commit changes the way certain documents are rendered (currently
only Notes) and how documents are redacted. Previously both rendering
and redacting would run on a per document basis. The result of this was
that for every document we'd have to run countless queries just to
figure out if we could display a set of links or not.

This commit changes things around so that redacting Markdown documents
is no longer tied into the html-pipeline Gem. This in turn allows it to
redact multiple documents in a single pass, thus reducing the number of
queries needed.

In turn rendering issue/merge request notes has been adjusted to take
advantage of this new setup. Instead of rendering Markdown somewhere
deep down in a view the Markdown is rendered and redacted in the
controller (taking the current user and all that into account). This has
been done in such a way that the "markdown()" helper method can still be
used on its own.

This particular commit also paves the way for caching rendered HTML on
object level. Right now there's an accessor method Note#note_html which
is used for setting/getting the rendered HTML. Once we cache HTML on row
level we can simply change this field to be a column and call a "save"
whenever needed and we're pretty much done.
2016-06-24 11:46:39 +02:00
..
1_settings.rb add missing import source 2016-06-21 13:35:37 +02:00
2_app.rb
4_ci_app.rb
5_backend.rb Fix a few places where autoloading would fail 2016-05-10 11:51:19 +02:00
active_record_query_trace.rb
attr_encrypted_no_db_connection.rb
backtrace_silencers.rb
bullet.rb
carrierwave.rb Codestyle: make sure we have space around operators 2016-05-13 04:46:56 -03:00
chronic_duration.rb Enable exceptions on ChronicDuration 2016-06-13 11:03:30 +01:00
connection_fix.rb
cookies_serializer.rb
date_time_formats.rb
default_url_options.rb Fix images in emails 2016-06-16 11:47:01 +01:00
devise.rb Codestyle: make sure we have space around operators 2016-05-13 04:46:56 -03:00
devise_password_length.rb.example
disable_email_interceptor.rb
doorkeeper.rb Improve Gitlab::Auth method names 2016-06-10 14:51:16 +02:00
gitlab_shell_secret_token.rb
go_get.rb
gollum.rb
hamlit.rb Restrict hamlit version, remove coffeescript filters. 2016-06-23 15:54:23 -06:00
health_check.rb Support token header for health check token, and general cleanup of the health_check feature. 2016-05-11 17:27:08 -07:00
inflections.rb Create table for award emoji 2016-05-06 10:47:11 +02:00
kaminari_config.rb
metrics.rb Support for rendering/redacting multiple documents 2016-06-24 11:46:39 +02:00
mime_types.rb
mysql_ignore_postgresql_options.rb
omniauth.rb Add leading comment space cop 2016-05-31 19:33:46 -03:00
postgresql_limit_fix.rb
postgresql_opclasses_support.rb
premailer.rb Don't remove IDs via premailer 2016-05-25 16:56:06 -04:00
public_key.rb
rack_attack.rb.example
rack_attack_git_basic_auth.rb
rack_lineprof.rb
relative_url.rb.sample
secret_token.rb
sentry.rb Prevent Rails filtered parameters from leaking to Sentry. 2016-04-28 15:08:23 -06:00
session_store.rb Enable Style/RedundantParentheses rubocop cop 2016-05-30 15:07:18 +02:00
sherlock.rb
sidekiq.rb Avoid autoload issue such as 'Mail::Parsers::AddressStruct' 2016-06-20 12:43:29 +02:00
smtp_settings.rb.sample Change default smpt port to 465 (default smtps port) 2016-02-09 07:30:06 +03:00
static_files.rb
time_zone.rb
trusted_proxies.rb
wrap_parameters.rb