gitlab-org--gitlab-foss/app/services
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
..
auth Merge branch 'unauthenticated-container-registry-access' into 'security' 2016-11-09 12:28:29 +01:00
boards Rename Labels::CreateService to Labels::FindOrCreateService 2016-10-19 14:58:28 -02:00
chat_names Change last_used_at to use touch 2016-11-17 16:29:16 +01:00
ci Merge branch 'feature/environment-teardown-when-branch-deleted' into 'master' 2016-11-17 10:54:57 +00:00
commits Reduce duplication in Commits::{CherryPickService,RevertService} 2016-09-15 16:30:27 +02:00
files multi-file commit 2016-10-05 17:42:52 +00:00
groups
issuable Add bulk update support for merge requests list 2016-09-08 11:52:20 +03:00
issues Process commits in a separate worker 2016-11-07 13:11:44 +01:00
labels Pass user instance to Labels::FindOrCreateService or skip_authorization: true 2016-10-28 11:31:45 +02:00
members Implement CreateMembers service to make controller thin 2016-11-01 10:17:04 +02:00
merge_requests Do not create a MergeRequestDiff record when source branch is deleted 2016-11-16 11:33:20 +01:00
milestones Ensure validation messages are shown within the milestone form 2016-09-19 09:29:12 +01:00
notes Does not raise error when Note not found when processing NewNoteWorker 2016-11-11 22:54:11 -02:00
oauth2
projects Precalculate user's authorized projects in database 2016-11-18 20:25:45 +02:00
protected_branches Implement third round of review comments from @DouweM. 2016-10-24 11:33:38 +05:30
search
slash_commands Remove default value for project argument on subscribable concern 2016-11-17 15:10:13 -02:00
wiki_pages
after_branch_delete_service.rb Improve name of service that stops CI environments 2016-11-14 13:57:09 +01:00
akismet_service.rb Reduce duplication in AkismetService 2016-09-20 08:19:32 +03:00
audit_event_service.rb
base_service.rb multi-file commit 2016-10-05 17:42:52 +00:00
compare_service.rb Refactor straight compare diff code 2016-10-12 16:32:57 +03:00
create_branch_service.rb
create_deployment_service.rb Fix environments specs 2016-10-17 21:06:10 +02:00
create_release_service.rb
create_snippet_service.rb
create_tag_service.rb
delete_branch_service.rb Remove redundant call to after branch delete service 2016-11-16 12:23:39 +01:00
delete_merged_branches_service.rb Add button to delete all merged branches 2016-11-09 21:04:03 +01:00
delete_tag_service.rb Fix lightweight tags not processed correctly by GitTagPushService 2016-10-28 13:53:18 -03:00
delete_user_service.rb Fix bug where destroying a namespace would not always destroy projects 2016-08-11 15:36:35 -07:00
destroy_group_service.rb Fix a race condition that allowed soft-deleted groups to remain in the database. 2016-11-18 14:27:13 +05:30
event_create_service.rb Differentiate the expire from leave event 2016-10-20 00:26:45 +00:00
git_hooks_service.rb
git_push_service.rb Add service that runs after branch removed hooks 2016-11-11 10:33:16 +01:00
git_tag_push_service.rb Fix lightweight tags not processed correctly by GitTagPushService 2016-10-28 13:53:18 -03:00
gravatar_service.rb
ham_service.rb Further refactor and syntax fixes. 2016-08-15 17:20:57 -05:00
import_export_clean_up_service.rb using shared path for project import uploads and refactored gitlab remove export worker 2016-08-04 12:51:55 +02:00
issuable_base_service.rb Remove default value for project argument on subscribable concern 2016-11-17 15:10:13 -02:00
notification_service.rb Refactoring notification service to find subscriptions per project 2016-11-17 15:10:13 -02:00
repair_ldap_blocked_user_service.rb
repository_archive_clean_up_service.rb using shared path for project import uploads and refactored gitlab remove export worker 2016-08-04 12:51:55 +02:00
spam_service.rb Further refactor and syntax fixes. 2016-08-15 17:20:57 -05:00
system_hooks_service.rb Enable Lint/StringConversionInInterpolation cop and autocorrect offenses 2016-10-03 16:09:57 +02:00
system_note_service.rb Use SELECT 1, instead SELECT COUNT(*) to ask for notes existency 2016-10-04 10:45:49 +02:00
test_hook_service.rb Simplify the name for data builder, feedback: 2016-08-12 16:09:29 +08:00
todo_service.rb Make guests unable to view MRs 2016-10-11 16:51:26 +03:00
update_release_service.rb
update_snippet_service.rb
user_agent_detail_service.rb Further refactor and syntax fixes. 2016-08-15 17:20:57 -05:00
user_project_access_changed_service.rb Precalculate user's authorized projects in database 2016-11-18 20:25:45 +02:00