gitlab-org--gitlab-foss/app/views
Sean McGivern f9c456bd0c Make performance bar enabled checks consistent
Previously, we called the `peek_enabled?` method like so:

    prepend_before_action :set_peek_request_id, if: :peek_enabled?

Now we don't have a `set_peek_request_id` method, so we don't need that
line. However, the `peek_enabled?` part had a side-effect: it would also
populate the request store cache for whether the performance bar was
enabled for the current request or not.

This commit makes that side-effect explicit, and replaces all uses of
`peek_enabled?` with the more explicit
`Gitlab::PerformanceBar.enabled_for_request?`. There is one spec that
still sets `SafeRequestStore[:peek_enabled]` directly, because it is
contrasting behaviour with and without a request store enabled.

The upshot is:

1. We still set the value in one place. We make it more explicit that
   that's what we're doing.
2. Reading that value uses a consistent method so it's easier to find in
   future.
2019-08-28 17:25:02 +01:00
..
abuse_report_mailer
abuse_reports
admin Remove inline JS in links 2019-08-21 05:43:04 +08:00
award_emoji
ci Change misleading pipeline status tooltip 2019-08-23 21:28:46 +00:00
clusters
dashboard
devise Merge branch '46548-open-source-alternative-to-recaptcha-for-gitlab-com-registration' into 'master' 2019-08-14 22:04:42 +00:00
discussions
doorkeeper Remove inline JS in links 2019-08-21 05:43:04 +08:00
email_rejection_mailer
errors Remove inline JS in links 2019-08-21 05:43:04 +08:00
events
explore
groups UI for disabling group/project email notification 2019-08-17 05:56:48 +00:00
help Resolve "Add externalization and fix regression in shortcuts helper modal" 2019-08-12 18:55:04 +00:00
ide
import Update GitHub CI/CD import page to use PAT only 2019-08-22 23:20:19 +00:00
instance_statistics
invites
issues
kaminari/gitlab
layouts Merge branch 'sh-fix-piwik-template' into 'master' 2019-08-27 00:52:30 +00:00
notify
peek Make performance bar enabled checks consistent 2019-08-28 17:25:02 +01:00
profiles fix: remove double % from layout width description 2019-08-24 14:15:15 -07:00
projects Merge branch 'setting_mirror_repos_too_big' into 'master' 2019-08-26 21:43:41 +00:00
repository_check_mailer
search Load search result counts asynchronously 2019-08-12 22:01:15 +02:00
sent_notifications
shared Merge branch 'fe-fix-issuable-sidebar-icon-of-notification-disabled' into 'master' 2019-08-23 22:01:11 +00:00
sherlock
snippets
u2f
users Add "Starred projects" tab to user overview 2019-08-07 20:49:14 +02:00