gitlab-org--gitlab-foss/spec/controllers/projects
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
..
ci
clusters Rename ClusterUpdateAppWorker to ClusterPatchAppWorker 2019-03-05 15:21:29 +00:00
merge_requests Fix Projects::MergeRequests::DiffsController specs 2019-02-18 12:13:08 +01:00
prometheus
registry
serverless
settings Refactor model and spec 2019-03-01 14:51:54 +00:00
tags
artifacts_controller_spec.rb
autocomplete_sources_controller_spec.rb Prevent disclosing project milestone titles 2019-02-25 10:55:15 -03:00
avatars_controller_spec.rb
badges_controller_spec.rb
blame_controller_spec.rb
blob_controller_spec.rb Move diff_line preparation into presenter 2019-03-07 16:12:36 +08:00
boards_controller_spec.rb Remove redirecting to last visited board 2019-03-13 20:33:35 +08:00
branches_controller_spec.rb
clusters_controller_spec.rb
commit_controller_spec.rb
commits_controller_spec.rb
compare_controller_spec.rb
cycle_analytics_controller_spec.rb
deploy_keys_controller_spec.rb
deployments_controller_spec.rb
discussions_controller_spec.rb
environments_controller_spec.rb Add name_without_type to environments.json 2019-02-26 19:13:09 +00:00
error_tracking_controller_spec.rb Add list_projects endpoint to error tracking 2019-02-06 16:27:18 +00:00
find_file_controller_spec.rb
forks_controller_spec.rb
git_http_controller_spec.rb Reject HEAD requests to info/refs endpoint 2019-03-19 11:23:51 -07:00
graphs_controller_spec.rb Load repository language from the DB if detected 2019-02-25 15:15:16 +01:00
group_links_controller_spec.rb Change policy regarding group visibility 2019-02-20 11:08:13 +01:00
hooks_controller_spec.rb
imports_controller_spec.rb
issues_controller_spec.rb
jobs_controller_spec.rb
labels_controller_spec.rb
mattermosts_controller_spec.rb
merge_requests_controller_spec.rb Allow ref name caching CommitService#find_commit 2019-03-27 14:46:39 -05:00
milestones_controller_spec.rb
mirrors_controller_spec.rb
notes_controller_spec.rb Only return commands_changes used in frontend 2019-03-18 13:28:35 -05:00
pages_controller_spec.rb Allow maintainers to remove pages 2019-02-25 11:43:19 +00:00
pages_domains_controller_spec.rb Fix access to pages domain settings 2019-02-12 12:18:17 +00:00
pipeline_schedules_controller_spec.rb
pipelines_controller_spec.rb
pipelines_settings_controller_spec.rb
project_members_controller_spec.rb
protected_branches_controller_spec.rb
protected_tags_controller_spec.rb
raw_controller_spec.rb
refs_controller_spec.rb
releases_controller_spec.rb
repositories_controller_spec.rb
runners_controller_spec.rb
services_controller_spec.rb
snippets_controller_spec.rb
tags_controller_spec.rb
templates_controller_spec.rb
todos_controller_spec.rb
tree_controller_spec.rb
uploads_controller_spec.rb
variables_controller_spec.rb
wikis_controller_spec.rb