gitlab-org--gitlab-foss/app/models/concerns
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
..
access_requestable.rb
awardable.rb
cache_markdown_field.rb
case_sensitivity.rb
expirable.rb
faster_cache_keys.rb
has_status.rb
importable.rb
internal_id.rb
issuable.rb Refactoring Subscribable concern to accept a project 2016-11-17 15:10:12 -02:00
mentionable.rb
milestoneish.rb
note_on_diff.rb
participable.rb
project_features_compatibility.rb Fix project features default values 2016-11-01 11:03:56 -02:00
protected_branch_access.rb
referable.rb
select_for_project_authorization.rb Precalculate user's authorized projects in database 2016-11-18 20:25:45 +02:00
sortable.rb Fix and improve Sortable.highest_label_priority 2016-10-27 21:26:56 -03:00
spammable.rb
strip_attribute.rb
subscribable.rb Allow users to subscribe to a group label at group or project level 2016-11-17 15:10:13 -02:00
taskable.rb add "x of y tasks completed" on issuable 2016-10-28 14:01:36 -02:00
token_authenticatable.rb Use separate email-friendly token for incoming email and let incoming 2016-11-07 15:55:42 +00:00