gitlab-org--gitlab-foss/app/controllers/projects
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
..
application_controller.rb Unify check branch name exist 2016-06-20 21:44:21 +02:00
artifacts_controller.rb Test controllers if they allow to keep artifacts 2016-06-13 11:07:23 +01:00
avatars_controller.rb Add workhorse controller and API helpers 2016-06-06 13:16:30 +02:00
badges_controller.rb
blame_controller.rb
blob_controller.rb
branches_controller.rb Update tests to match new Code tab logic 2016-06-03 10:13:40 +03:00
builds_controller.rb Remove keep_artifacts from BuildsController 2016-06-13 11:03:30 +01:00
commit_controller.rb Added initial version of deployments 2016-06-10 23:36:54 +02:00
commits_controller.rb
compare_controller.rb
container_registry_controller.rb
deploy_keys_controller.rb
environments_controller.rb Improve forms and specs 2016-06-15 12:07:06 +02:00
find_file_controller.rb
forks_controller.rb
git_http_controller.rb Improve Gitlab::Auth method names 2016-06-10 14:51:16 +02:00
graphs_controller.rb
group_links_controller.rb
hooks_controller.rb
imports_controller.rb
issues_controller.rb Support for rendering/redacting multiple documents 2016-06-24 11:46:39 +02:00
labels_controller.rb add :set_priorities to :authorize_admin_labels! 2016-06-06 11:59:49 -05:00
merge_requests_controller.rb Support for rendering/redacting multiple documents 2016-06-24 11:46:39 +02:00
milestones_controller.rb
network_controller.rb
notes_controller.rb Support for rendering/redacting multiple documents 2016-06-24 11:46:39 +02:00
pipelines_controller.rb Rename commit_data in Pipeline to commit 2016-06-21 14:43:37 +02:00
project_members_controller.rb Raise a new Gitlab::Access::AccessDeniedError when permission is not enough to destroy a member 2016-06-18 06:06:34 +02:00
protected_branches_controller.rb
raw_controller.rb Add workhorse controller and API helpers 2016-06-06 13:16:30 +02:00
refs_controller.rb
releases_controller.rb
repositories_controller.rb Add workhorse controller and API helpers 2016-06-06 13:16:30 +02:00
runner_projects_controller.rb Fix typo. It's ivar and the column was called locked 2016-06-15 17:29:07 +08:00
runners_controller.rb Rename according to: 2016-06-20 16:52:05 +08:00
services_controller.rb
snippets_controller.rb
tags_controller.rb Add sorting dropdown to tag page 2016-06-16 13:33:29 -04:00
todos_controller.rb Merge branch 'issuable-todo-improvements' 2016-06-18 00:42:36 +02:00
tree_controller.rb
triggers_controller.rb
uploads_controller.rb
variables_controller.rb
wikis_controller.rb Forbid scripting for wiki files 2016-06-14 11:28:58 +01:00