gitlab-org--gitlab-foss/app/controllers/projects
Stan Hu 8690ca5c28 Eliminate N+1 queries in loading discussions.json endpoint
In #37955,we see that the profile had a number of N+1 queries from repeated
access to `cross_reference_not_visible_for?`. This was optimized in previous
versions of GitLab by rendering all notes at once, counting the number of
visible references, and then using that number to check whether a system note
should be fully redacted.

There was also another N+1 query calling `ProjectTeam#member?`, which did not
take advantage of an optimization in prepare_notes_for_rendering that would
preload the maximum access level per project.

Closes #37955
2017-09-18 06:53:33 -07:00
..
cycle_analytics Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
merge_requests Merge branch '23079-remove-default-scope-in-sortable' into 'master' 2017-09-07 16:15:32 +00:00
registry Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
settings Form for setting project auto devops settings 2017-08-31 22:25:26 +02:00
application_controller.rb Don't show references to Pages when not available 2017-08-31 09:27:42 +02:00
artifacts_controller.rb Do not use artifacts metadata to access single artifact 2017-09-05 12:34:49 +02:00
autocomplete_sources_controller.rb
avatars_controller.rb Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers 2017-06-07 09:45:16 +11:00
badges_controller.rb Rename build to pipeline for status badges 2017-07-21 10:22:09 +02:00
blame_controller.rb
blob_controller.rb Many Repo Fixes 2017-08-15 19:53:41 +00:00
boards_controller.rb Fix specs BACKPORT 2017-09-04 16:55:29 -03:00
branches_controller.rb Merge branch '26890-sort-branches' into 'master' 2017-07-28 15:27:49 +00:00
build_artifacts_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
builds_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
commit_controller.rb WIP: refactor the first-contributor to Issuable 2017-09-06 09:00:57 -04:00
commits_controller.rb Adds cacheless render to Banzai object render 2017-09-06 15:35:35 +01:00
compare_controller.rb Make the labels in the Compare form less confusing 2017-09-15 13:05:30 +02:00
cycle_analytics_controller.rb
deploy_keys_controller.rb created services for keys 2017-09-15 15:35:24 +00:00
deployments_controller.rb Add rescue_from(ActionController::UnknownFormat) in Application Controller 2017-06-20 15:53:23 +02:00
discussions_controller.rb Use the new check_project_feature_available! method in project controllers 2017-06-21 10:56:45 +01:00
environments_controller.rb Re-enable polling for environments 2017-07-06 14:31:24 +01:00
find_file_controller.rb
forks_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
git_http_client_controller.rb Add “Project moved” error to Git-over-HTTP 2017-06-16 14:14:19 -07:00
git_http_controller.rb Add “Project moved” error to Git-over-HTTP 2017-06-16 14:14:19 -07:00
graphs_controller.rb Add option to use CommitLanguages RPC 2017-08-01 10:48:46 +02:00
group_links_controller.rb Resolve "Inconsistent location of members page between groups and projects" 2017-07-07 14:40:41 +00:00
hook_logs_controller.rb Wrong data type when testing webhooks 2017-07-20 15:12:06 +00:00
hooks_controller.rb Wrong data type when testing webhooks 2017-07-20 15:12:06 +00:00
imports_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
issues_controller.rb Eliminate N+1 queries in loading discussions.json endpoint 2017-09-18 06:53:33 -07:00
jobs_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
labels_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
lfs_api_controller.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
lfs_storage_controller.rb
mattermosts_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
merge_requests_controller.rb Merge branch '34509-improves-markdown-rendering-performance-for-commits-list' into 'master' 2017-09-06 17:14:09 +00:00
milestones_controller.rb Native group milestones 2017-07-07 15:08:49 +00:00
network_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
notes_controller.rb Support comments for personal snippets 2017-05-05 15:45:49 +02:00
pages_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
pages_domains_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
pipeline_schedules_controller.rb Remove update|admin_pipeline_schedule from Project, and grant it in PipelineSchedule 2017-07-07 12:11:48 +02:00
pipelines_controller.rb move `lib/ci/charts.rb` into `lib/gitlab/ci/charts.rb` 2017-09-12 22:32:01 +03:00
pipelines_settings_controller.rb Form for setting project auto devops settings 2017-08-31 22:25:26 +02:00
project_members_controller.rb Removes default scope from sortable 2017-09-07 13:01:59 +01:00
prometheus_controller.rb Add rescue_from(ActionController::UnknownFormat) in Application Controller 2017-06-20 15:53:23 +02:00
protected_branches_controller.rb Backport EE refactorings for Protected Tag EE-only functionality 2017-05-31 13:06:29 +01:00
protected_refs_controller.rb Backport EE refactorings for Protected Tag EE-only functionality 2017-05-31 13:06:29 +01:00
protected_tags_controller.rb Backport EE refactorings for Protected Tag EE-only functionality 2017-05-31 13:06:29 +01:00
raw_controller.rb
refs_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
releases_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
repositories_controller.rb
runner_projects_controller.rb Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers 2017-06-07 09:45:16 +11:00
runners_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
services_controller.rb Fix inability to test some project integrations 2017-08-22 11:05:02 -05:00
snippets_controller.rb WIP: refactor the first-contributor to Issuable 2017-09-06 09:00:57 -04:00
tags_controller.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
templates_controller.rb
todos_controller.rb
tree_controller.rb Merge remote-tracking branch 'origin/master' into ide 2017-07-20 17:51:07 +01:00
triggers_controller.rb Remove trigger_schedule_attributes and factory :ci_trigger_for_trigger_schedule 2017-07-13 21:17:47 +09:00
uploads_controller.rb
variables_controller.rb Use variable_params && variable_params_attributes in project variables_controller.rb 2017-07-07 15:46:23 +09:00
wikis_controller.rb Merge branch 'master' into 1827-prevent-concurrent-editing-wiki 2017-07-23 21:26:02 +09:00