gitlab-org--gitlab-foss/config
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
..
environments Customize ActionMailer preview path 2016-05-25 16:56:06 -04:00
initializers Support for rendering/redacting multiple documents 2016-06-24 11:46:39 +02:00
locales Minor fixes after a final look at the diff. 2016-05-11 10:30:47 +05:30
application.rb Replace raphael-rails with raphael.js so it can be split from the rest of the JavaScript. The gem isn't maintained anymore anyway. Added a network folder with an application.js including raphael components, since that's the only page using it currently. 2016-06-10 09:28:07 -06:00
aws.yml.example
boot.rb Enable the Rubocop DeprecatedClassMethods cop 2016-05-08 15:33:34 -06:00
database.yml.env
database.yml.mysql
database.yml.postgresql
dependency_decisions.yml Add LGPLv2 to license whiltelist 2016-06-07 10:14:18 -07:00
environment.rb
gitlab.teatro.yml Remove wall_enabled field from Project 2016-05-08 15:47:42 -04:00
gitlab.yml.example Move keep to ArtifactsController 2016-06-13 11:03:30 +01:00
license_finder.yml Resolve feedback. 2016-06-06 13:39:36 -06:00
mail_room.yml Don't require Gitlab::Redis in mail_room.yml if it's already defined 2016-06-10 13:44:45 +02:00
newrelic.yml
resque.yml.example
routes.rb Merge branch 'feature/runner-lock-on-project' into 'master' 2016-06-21 10:08:42 +00:00
secrets.yml.example
sidekiq.yml.example
unicorn.rb.example
unicorn.rb.example.development