gitlab-org--gitlab-foss/app/workers
Douwe Maan 130c8a5198 Merge branch 'feature/precalculate-authorized-projects' into 'master'
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
2016-11-18 19:42:17 +00:00
..
concerns Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
repository_check Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
admin_email_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
authorized_projects_worker.rb Precalculate user's authorized projects in database 2016-11-18 20:25:45 +02:00
build_coverage_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
build_email_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
build_finished_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
build_hooks_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
build_success_worker.rb Fix tests and add has_environment? 2016-11-17 12:08:28 +01:00
clear_database_cache_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
delete_merged_branches_worker.rb Add button to delete all merged branches 2016-11-09 21:04:03 +01:00
delete_user_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
email_receiver_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
emails_on_push_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
expire_build_artifacts_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
expire_build_instance_artifacts_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
git_garbage_collect_worker.rb Refine Git garbage collection 2016-11-04 14:30:11 +01:00
gitlab_shell_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
group_destroy_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
import_export_project_cleanup_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
irker_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
merge_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
new_note_worker.rb Does not raise error when Note not found when processing NewNoteWorker 2016-11-11 22:54:11 -02:00
pipeline_hooks_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
pipeline_metrics_worker.rb Renamed pipeline column and fixed permissions for builds in events controller 2016-11-17 08:22:58 +01:00
pipeline_notification_worker.rb include PipelineQueue, feedback: 2016-10-24 17:39:04 +08:00
pipeline_process_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
pipeline_success_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
pipeline_update_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
post_receive.rb remove extra spaces from app/workers/post_receive.rb 2016-11-01 21:46:37 +00:00
process_commit_worker.rb Process commits in a separate worker 2016-11-07 13:11:44 +01:00
project_cache_worker.rb Don't schedule ProjectCacheWorker unless needed 2016-10-25 16:02:36 +02:00
project_destroy_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
project_export_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
project_service_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
project_web_hook_worker.rb Merge branch 'master' into 'add-retry-limit-project-webhook' 2016-10-31 15:00:30 +00:00
prune_old_events_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
remove_expired_group_links_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
remove_expired_members_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
remove_unreferenced_lfs_objects_worker.rb Remove unreferenced LFS objects from DB and fs 2016-10-28 19:39:20 +02:00
repository_archive_cache_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
repository_fork_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
repository_import_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
requests_profiles_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
stuck_ci_builds_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
system_hook_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
trending_projects_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00
update_merge_requests_worker.rb Re-organize queues to use for Sidekiq 2016-10-21 18:17:07 +02:00