130c8a5198
Precalculate authorized projects in database ## What does this MR do? It caches user's authorized projects in database instead of using multiple unions, which should simplify and speed-up things since this operation (getting authorized projects) is used a lot. ## Are there points in the code the reviewer needs to double check? Did we miss a scenario where we need to refresh the list of projects? ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~ - [ ] ~~API support added~~ - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? #23150 See merge request !6839 |
||
---|---|---|
.. | ||
concerns | ||
repository_check | ||
admin_email_worker.rb | ||
authorized_projects_worker.rb | ||
build_coverage_worker.rb | ||
build_email_worker.rb | ||
build_finished_worker.rb | ||
build_hooks_worker.rb | ||
build_success_worker.rb | ||
clear_database_cache_worker.rb | ||
delete_merged_branches_worker.rb | ||
delete_user_worker.rb | ||
email_receiver_worker.rb | ||
emails_on_push_worker.rb | ||
expire_build_artifacts_worker.rb | ||
expire_build_instance_artifacts_worker.rb | ||
git_garbage_collect_worker.rb | ||
gitlab_shell_worker.rb | ||
group_destroy_worker.rb | ||
import_export_project_cleanup_worker.rb | ||
irker_worker.rb | ||
merge_worker.rb | ||
new_note_worker.rb | ||
pipeline_hooks_worker.rb | ||
pipeline_metrics_worker.rb | ||
pipeline_notification_worker.rb | ||
pipeline_process_worker.rb | ||
pipeline_success_worker.rb | ||
pipeline_update_worker.rb | ||
post_receive.rb | ||
process_commit_worker.rb | ||
project_cache_worker.rb | ||
project_destroy_worker.rb | ||
project_export_worker.rb | ||
project_service_worker.rb | ||
project_web_hook_worker.rb | ||
prune_old_events_worker.rb | ||
remove_expired_group_links_worker.rb | ||
remove_expired_members_worker.rb | ||
remove_unreferenced_lfs_objects_worker.rb | ||
repository_archive_cache_worker.rb | ||
repository_fork_worker.rb | ||
repository_import_worker.rb | ||
requests_profiles_worker.rb | ||
stuck_ci_builds_worker.rb | ||
system_hook_worker.rb | ||
trending_projects_worker.rb | ||
update_merge_requests_worker.rb |