gitlab-org--gitlab-foss/app/helpers
Yorick Peterse daad7144ec
Support Markdown rendering using multiple projects
This refactors the Markdown pipeline so it supports the rendering of
multiple documents that may belong to different projects. An example of
where this happens is when displaying the event feed of a group. In this
case we retrieve events for all projects in the group. Previously we
would group events per project and render these chunks separately, but
this would result in many SQL queries being executed. By extending the
Markdown pipeline to support this out of the box we can drastically
reduce the number of SQL queries.

To achieve this we introduce a new object to the pipeline:
Banzai::RenderContext. This object simply wraps two other objects: an
optional Project instance, and an optional User instance. On its own
this wouldn't be very helpful, but a RenderContext can also be used to
associate HTML documents with specific Project instances. This work is
done in Banzai::ObjectRenderer and allows us to reuse as many queries
(and results) as possible.
2018-04-11 14:10:19 +02:00
..
accounts_helper.rb
appearances_helper.rb Backport changes in EE MR 4972: System Header and Footer 2018-04-02 14:27:12 +00:00
application_helper.rb Check if at least one filter is set on dashboard 2018-04-03 20:19:09 +02:00
application_settings_helper.rb Show gitaly address instead of disk path 2018-03-23 13:01:40 +01:00
auth_helper.rb Moved o_auth/saml/ldap modules under gitlab/auth 2018-02-28 16:53:02 +01:00
auto_devops_helper.rb Refactor AutoDevopsHelper.missing_auto_devops_domain? 2018-02-02 23:06:13 +01:00
avatars_helper.rb Extract method to improve readability. 2018-02-13 18:04:52 +01:00
award_emoji_helper.rb
blame_helper.rb Fix division by zero for blame age map 2017-08-24 22:27:31 -05:00
blob_helper.rb fixed ide_edit_button not existing 2018-03-20 17:00:56 +00:00
boards_helper.rb Allow assigning and filtering issuables by ancestor group labels 2018-04-04 15:40:29 +00:00
branches_helper.rb Add overview of branches and a filter for active/stale branches 2018-03-06 21:28:14 +09:00
breadcrumbs_helper.rb Merge branch 'icons-update-nav-bars' into 'master' 2017-09-29 13:32:17 +00:00
broadcast_messages_helper.rb
builds_helper.rb Use relative _path helper URLs in the GitLab UI 2017-12-07 11:19:37 -06:00
button_helper.rb Fixed clone buttons adding description when append_link is false 2017-12-05 17:39:18 -06:00
ci_status_helper.rb Replace ci_status_path with pipeline_path 2017-11-14 12:45:43 +01:00
clusters_helper.rb Hardcode clusters helper in CE 2017-12-18 14:35:08 +01:00
commits_helper.rb Implement a new SHA partial for commit lists 2018-04-06 13:35:07 +00:00
compare_helper.rb Stop using branch_names.include? and use branch_exists? 2017-10-10 14:56:04 +00:00
components_helper.rb
conversational_development_index_helper.rb
dashboard_helper.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
defer_script_tag_helper.rb Resolve "Specific Async Script Loading by using a Page Variable" 2017-08-03 20:31:53 +00:00
deploy_tokens_helper.rb Handle limit for datetime attributes on MySQL 2018-04-06 22:28:44 -05:00
diff_helper.rb Render modified icon for moved file 2018-02-13 18:12:19 +00:00
dropdowns_helper.rb Move "Move to different project" to sidebar 2017-09-03 22:03:17 -05:00
emails_helper.rb Backport changes in EE MR 4972: System Header and Footer 2018-04-02 14:27:12 +00:00
emoji_helper.rb
environment_helper.rb
environments_helper.rb
events_helper.rb Resolve "DashboardController#activity.json is slow due to SQL" 2017-11-06 16:52:56 +00:00
explore_helper.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
external_wiki_helper.rb
form_helper.rb Bring one group board to CE 2018-03-03 12:56:17 -03:00
git_helper.rb
gitlab_routing_helper.rb Address some comments with running a pipeline schedule 2017-12-12 15:07:23 -08:00
graph_helper.rb Don't use rugged in Repository#refs_hash 2018-02-07 15:07:03 +01:00
groups_helper.rb Projects and groups badges settings UI 2018-04-08 10:20:05 +00:00
hooks_helper.rb
icons_helper.rb Multi File Editor File icons 2018-01-03 10:08:14 +00:00
import_helper.rb Fix provider server URL used when listing repos to import 2018-03-12 16:01:43 -05:00
instance_configuration_helper.rb Added ssh fingerprint, gitlab ci and pages information in an instance configuration page 2017-10-25 23:51:26 +03:00
issuables_helper.rb Check if at least one filter is set on dashboard 2018-04-03 20:19:09 +02:00
issues_helper.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
javascript_helper.rb remove deprecated page_specific_javascript_bundle_tag 2018-03-12 14:19:51 -05:00
kerberos_spnego_helper.rb
labels_helper.rb Allow assigning and filtering issuables by ancestor group labels 2018-04-04 15:40:29 +00:00
lazy_image_tag_helper.rb Another Change for cleanup 2017-10-05 17:49:11 +02:00
markup_helper.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
mattermost_helper.rb
members_helper.rb Refactor member view by using presenter 2017-12-11 18:30:56 +01:00
merge_requests_helper.rb Allow a user to select allow maintainer to push 2018-03-07 15:12:31 +01:00
milestones_helper.rb Add tooltip for milestone due date to issue and merge request lists 2017-09-20 07:11:49 +11:00
milestones_routing_helper.rb replace is_group_milestone? with group_milestone? 2017-08-29 11:14:41 +03:00
namespaces_helper.rb Fix bug rendering group icons when forking 2018-03-28 14:09:32 +01:00
nav_helper.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
notes_helper.rb Refactor discussions/notes code 2018-04-03 16:03:00 +00:00
notifications_helper.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
numbers_helper.rb Add 1000+ counters (instead of inifnite) to jobs controller 2017-10-06 14:43:48 +02:00
page_layout_helper.rb Update styling and use Gitlab::Utils.to_boolean 2018-03-27 13:13:48 -05:00
pagination_helper.rb Use Prev/Next pagination for exploring projects 2017-08-14 13:53:42 +02:00
performance_bar_helper.rb
pipeline_schedules_helper.rb Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
preferences_helper.rb 'Assigned Issues' and 'Assigned Merge Requests' as dashboard user choices 2018-03-27 12:16:12 +00:00
profiles_helper.rb Moved o_auth/saml/ldap modules under gitlab/auth 2018-02-28 16:53:02 +01:00
projects_helper.rb Add HTTPS-only pages 2018-03-22 19:58:36 +01:00
rss_helper.rb
runners_helper.rb
search_helper.rb Replace deprecated name_with_namespace with full_name in app and spec 2018-03-05 16:15:26 +02:00
selects_helper.rb Remove unused push_code_to_protected_branches 2018-01-05 23:45:12 +08:00
sentry_helper.rb
services_helper.rb Merge branch 'jej/mattermost-notification-confidentiality-10-6' into 'security-10-6' 2018-04-05 08:41:56 +02:00
sidekiq_helper.rb Enable RuboCop Style/RegexpLiteral 2018-02-01 02:06:07 +09:00
snippets_helper.rb Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
sorting_helper.rb Enable sorting by name in the Groups dropdown 2017-12-20 19:34:50 +00:00
storage_health_helper.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
storage_helper.rb
submodule_helper.rb Enable RuboCop Style/RegexpLiteral 2018-02-01 02:06:07 +09:00
system_note_helper.rb Fix locked and unlocked icons 2017-09-27 13:35:42 +01:00
tab_helper.rb Remove title attribute from sidebar elements 2017-09-13 14:30:31 +01:00
tags_helper.rb
time_helper.rb
todos_helper.rb Replace deprecated name_with_namespace with full_name in app and spec 2018-03-05 16:15:26 +02:00
tree_helper.rb Fix links to subdirectories of a directory with a plus character in its path 2018-04-04 17:18:52 +02:00
triggers_helper.rb
user_callouts_helper.rb Restore feature_highlight code 2018-02-05 12:10:09 -06:00
users_helper.rb Port read_cross_project ability from EE 2018-02-22 17:11:36 +01:00
version_check_helper.rb use Gitlab::UserSettings directly as a singleton instead of including/extending it 2018-02-02 18:39:55 +00:00
visibility_level_helper.rb use Gitlab::UserSettings directly as a singleton instead of including/extending it 2018-02-02 18:39:55 +00:00
webpack_helper.rb alias create and update actions to new and edit 2018-02-16 12:47:23 -06:00
wiki_helper.rb Allow moving wiki pages from the UI 2018-02-05 17:17:21 +00:00
workhorse_helper.rb Add option to suppress archive commit sha 2018-04-04 16:56:18 -04:00