gitlab-org--gitlab-foss/spec/controllers
Stan Hu db759c5d9c Allow ref name caching CommitService#find_commit
For a given merge request, it's quite common to see duplicate FindCommit
Gitaly requests because the Gitaly CommitService caches the request by
the commit SHA, not by the ref name. However, most of the duplicate
requests use the ref name, so the cache is never actually used in
practice. This leads to unnecessary requests that slow performance.

This commit allows certain callers to bypass the ref name to
OID conversion in the cache. We don't do this by default because it's
possible the tip of the branch changes during the commit, which
would cause the caller to get stale data.

This commit also forces the Ci::Pipeline to use the full ref name
so that caching can work for merge requests.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57083
2019-03-27 14:46:39 -05:00
..
admin Fix undefined variable error on json project views 2019-03-18 21:27:28 -03:00
boards Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
concerns Bump fog-aws to 3.3.0 and associated dependencies 2019-02-28 22:51:03 -08:00
dashboard Fix undefined variable error on json project views 2019-03-18 21:27:28 -03:00
explore Fix undefined variable error on json project views 2019-03-18 21:27:28 -03:00
google_api Validate session key when authorizing with GCP to create a cluster 2019-02-19 17:21:08 +11:00
groups Remove redirecting to last visited board 2019-03-13 20:33:35 +08:00
import Improve the GitHub and Gitea import feature table interface 2019-02-13 00:15:57 +00:00
instance_statistics Resolve "Remove usage ping payload from Cohorts, add to Settings" 2018-09-06 12:43:14 +00:00
ldap Update specs to rails5 format 2018-12-19 10:04:31 +11:00
oauth Update specs to rails5 format 2018-12-19 10:04:31 +11:00
profiles Move language setting to preferences 2019-02-20 22:58:53 +00:00
projects Allow ref name caching CommitService#find_commit 2019-03-27 14:46:39 -05:00
snippets Update specs to rails5 format 2018-12-19 10:04:31 +11:00
users Update specs to rails5 format 2018-12-19 10:04:31 +11:00
abuse_reports_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
application_controller_spec.rb Fix ETag caching not being used for AJAX requests 2019-02-26 12:54:31 +01:00
autocomplete_controller_spec.rb Filter merge requests by target branch 2019-03-09 12:22:58 +00:00
dashboard_controller_spec.rb Merge branch 'security-fix-pat-web-access' into 'master' 2018-11-28 19:13:59 -05:00
graphql_controller_spec.rb Add API access check to Graphql 2019-03-27 14:59:02 +00:00
groups_controller_spec.rb Security Dashboard as default view for groups 2019-03-14 12:55:46 +00:00
health_check_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
health_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
help_controller_spec.rb Fix broken links on help page 2019-02-11 23:41:58 +01:00
invites_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
metrics_controller_spec.rb Remove healthchecks from prometheus endpoint 2018-07-12 17:37:51 +00:00
notification_settings_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
omniauth_callbacks_controller_spec.rb Move out link\unlink ability checks to a policy 2019-03-19 15:38:16 +03:00
passwords_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
profiles_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
projects_controller_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
registrations_controller_spec.rb Introduce ApplicationSettingImplementation yay 2019-03-19 13:01:37 +08:00
root_controller_spec.rb Fix tests 2018-11-13 15:27:42 +08:00
search_controller_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
sent_notifications_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
sessions_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
snippets_controller_spec.rb Check snippet attached file to be moved is within designated directory 2019-02-21 16:44:44 +08:00
uploads_controller_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
user_callouts_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
users_controller_spec.rb Eliminate most N+1 queries loading UserController#calendar_activities 2019-03-01 10:57:09 -08:00