gitlab-org--gitlab-foss/spec/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 Allow owners to fetch source code in CI builds 2016-11-01 09:37:20 +01:00
boards
chat_names More coverage on service level 2016-11-18 10:00:40 +01:00
ci Merge branch 'feature/environment-teardown-when-branch-deleted' into 'master' 2016-11-17 10:54:57 +00:00
files
groups
issuable Remove default value for project argument on subscribable concern 2016-11-17 15:10:13 -02:00
issues Remove default value for project argument on subscribable concern 2016-11-17 15:10:13 -02:00
labels Pass user instance to Labels::FindOrCreateService or skip_authorization: true 2016-10-28 11:31:45 +02:00
members Make access request specs explicitly enable or disable access requests as required 2016-11-11 15:45:47 +00:00
merge_requests Merge branch 'fix-tests-for-different-host' into 'master' 2016-11-18 17:46:44 +00:00
milestones Optimize Event queries by removing default order 2016-10-27 20:07:11 -03:00
notes Does not raise error when Note not found when processing NewNoteWorker 2016-11-11 22:54:11 -02:00
projects Precalculate user's authorized projects in database 2016-11-18 20:25:45 +02:00
protected_branches
search
slash_commands Remove default value for project argument on subscribable concern 2016-11-17 15:10:13 -02:00
after_branch_delete_service_spec.rb Add test example for after branch delete service 2016-11-15 10:38:08 +01:00
compare_service_spec.rb
create_deployment_service_spec.rb
create_release_service_spec.rb
create_snippet_service_spec.rb
create_tag_service_spec.rb
delete_branch_service_spec.rb Remove redundant call to after branch delete service 2016-11-16 12:23:39 +01:00
delete_merged_branches_service_spec.rb Add button to delete all merged branches 2016-11-09 21:04:03 +01:00
delete_tag_service_spec.rb
delete_user_service_spec.rb
destroy_group_service_spec.rb Write a spec covering the race condition during group deletion. 2016-11-18 14:27:13 +05:30
event_create_service_spec.rb Differentiate the expire from leave event 2016-10-20 00:26:45 +00:00
git_hooks_service_spec.rb
git_push_service_spec.rb Merge branch 'fix-tests-for-different-host' into 'master' 2016-11-18 17:46:44 +00:00
git_tag_push_service_spec.rb Fix lightweight tags not processed correctly by GitTagPushService 2016-10-28 13:53:18 -03:00
import_export_clean_up_service_spec.rb
notification_service_spec.rb Allow subscriptions to be created without a project 2016-11-17 15:10:13 -02:00
repair_ldap_blocked_user_service_spec.rb
repository_archive_clean_up_service_spec.rb
search_service_spec.rb
system_hooks_service_spec.rb
system_note_service_spec.rb Add JIRA remotelinks and prevent duplicated closing messages 2016-11-18 10:03:31 -02:00
test_hook_service_spec.rb
todo_service_spec.rb
update_release_service_spec.rb
update_snippet_service_spec.rb