gitlab-org--gitlab-foss/spec/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
appearances_helper_spec.rb
application_helper_spec.rb
application_settings_helper_spec.rb
auth_helper_spec.rb
auto_devops_helper_spec.rb
avatars_helper_spec.rb
award_emoji_helper_spec.rb
blame_helper_spec.rb
blob_helper_spec.rb
boards_helper_spec.rb
broadcast_messages_helper_spec.rb
button_helper_spec.rb
calendar_helper_spec.rb
ci_status_helper_spec.rb
clusters_helper_spec.rb
commits_helper_spec.rb
components_helper_spec.rb
dashboard_helper_spec.rb Resolve CE/EE diffs in zero_authorized_projects 2019-05-11 06:25:17 +01:00
defer_script_tag_helper_spec.rb
diff_helper_spec.rb
emails_helper_spec.rb Include MR information if possible when emailing notification of closing an issue 2019-05-16 11:59:02 +00:00
events_helper_spec.rb
explore_helper_spec.rb
form_helper_spec.rb
git_helper_spec.rb
gitlab_routing_helper_spec.rb
graph_helper_spec.rb
groups_helper_spec.rb
hooks_helper_spec.rb
icons_helper_spec.rb
import_helper_spec.rb
instance_configuration_helper_spec.rb
issuables_helper_spec.rb
issues_helper_spec.rb
labels_helper_spec.rb
markup_helper_spec.rb
members_helper_spec.rb
merge_requests_helper_spec.rb
milestones_helper_spec.rb
milestones_routing_helper_spec.rb
namespaces_helper_spec.rb
nav_helper_spec.rb Resolve CE/EE diffs in app/views/layouts view 2019-05-11 23:38:41 +01:00
notes_helper_spec.rb
notifications_helper_spec.rb
page_layout_helper_spec.rb Fix page_description helper performance 2019-05-22 16:56:12 +01:00
pagination_helper_spec.rb
preferences_helper_spec.rb
profiles_helper_spec.rb
projects_helper_spec.rb Resolve CE/EE diffs in new proj member import 2019-05-10 23:00:36 +01:00
rss_helper_spec.rb
runners_helper_spec.rb
search_helper_spec.rb
sidekiq_helper_spec.rb
snippets_helper_spec.rb
sorting_helper_spec.rb
storage_helper_spec.rb
submodule_helper_spec.rb
tab_helper_spec.rb
time_helper_spec.rb
todos_helper_spec.rb
tree_helper_spec.rb
user_callouts_helper_spec.rb
users_helper_spec.rb
version_check_helper_spec.rb
visibility_level_helper_spec.rb
wiki_helper_spec.rb