gitlab-org--gitlab-foss/app/helpers
Sean McGivern f9f9147290 Fix page_description helper performance
This helper is used for extracting part of the issue / MR / whatever
description for use in the description meta tag:

1. To do that, we look at the source of the Markdown description.
2. We then strip out all HTML tags.
3. And then take the first 30 words.

Doing that can be really slow - especially as Markdown is supposed to be
treated as plain text. There are many better ways to do this, but the
immediate performance fix is to swap steps 2 and 3. This does mean that
the description may be less than 30 words (or even empty), but it is
much faster when the description is very long.
2019-05-22 16:56:12 +01:00
..
groups Resolve CE/EE diffs in new group member view 2019-05-20 23:22:43 +01:00
projects
accounts_helper.rb
active_sessions_helper.rb
appearances_helper.rb
application_helper.rb
application_settings_helper.rb
auth_helper.rb
auto_devops_helper.rb
avatars_helper.rb
award_emoji_helper.rb
blame_helper.rb
blob_helper.rb
boards_helper.rb
branches_helper.rb
breadcrumbs_helper.rb
broadcast_messages_helper.rb
builds_helper.rb
button_helper.rb
calendar_helper.rb
ci_status_helper.rb
ci_variables_helper.rb
clusters_helper.rb
commits_helper.rb
compare_helper.rb
components_helper.rb
conversational_development_index_helper.rb
cookies_helper.rb
count_helper.rb
dashboard_helper.rb Resolve CE/EE diffs in zero_authorized_projects 2019-05-11 06:25:17 +01:00
defer_script_tag_helper.rb
deploy_tokens_helper.rb
diff_helper.rb
dropdowns_helper.rb
emails_helper.rb Include MR information if possible when emailing notification of closing an issue 2019-05-16 11:59:02 +00:00
emoji_helper.rb
environment_helper.rb
environments_helper.rb
events_helper.rb Rename methods that conflict in Rails 5.2 2019-05-12 23:42:06 -05:00
explore_helper.rb
favicon_helper.rb
form_helper.rb
git_helper.rb
gitlab_routing_helper.rb
graph_helper.rb
groups_helper.rb
hooks_helper.rb
icons_helper.rb
ide_helper.rb
import_helper.rb
instance_configuration_helper.rb
issuables_helper.rb
issues_helper.rb
javascript_helper.rb
kerberos_spnego_helper.rb
labels_helper.rb
lazy_image_tag_helper.rb
markup_helper.rb
mattermost_helper.rb
members_helper.rb
merge_requests_helper.rb
milestones_helper.rb
milestones_routing_helper.rb
mirror_helper.rb
namespaces_helper.rb
nav_helper.rb Resolve CE/EE diffs in app/views/layouts view 2019-05-11 23:38:41 +01:00
notes_helper.rb
notifications_helper.rb
numbers_helper.rb
page_layout_helper.rb Fix page_description helper performance 2019-05-22 16:56:12 +01:00
pagination_helper.rb
performance_bar_helper.rb
pipeline_schedules_helper.rb
preferences_helper.rb
profiles_helper.rb
projects_helper.rb Resolve CE/EE diffs in new proj member import 2019-05-10 23:00:36 +01:00
repository_languages_helper.rb
rss_helper.rb
runners_helper.rb
safe_params_helper.rb
search_helper.rb
selects_helper.rb
services_helper.rb
sidekiq_helper.rb
snippets_helper.rb
sorting_helper.rb
storage_helper.rb Fix an error in projects admin when statistics are missing 2019-05-16 14:59:21 +02:00
submodule_helper.rb
system_note_helper.rb
tab_helper.rb
tags_helper.rb
time_helper.rb
todos_helper.rb
tree_helper.rb
triggers_helper.rb
user_callouts_helper.rb
users_helper.rb
version_check_helper.rb
visibility_level_helper.rb
webpack_helper.rb
wiki_helper.rb
workhorse_helper.rb