gitlab-org--gitlab-foss/app
Yorick Peterse 73bf9413b9
Refactor Project.with_feature_available_for_user
This method used to use a UNION, which would lead to it performing the
same query twice; producing less than ideal performance. Further, in
certain cases ActiveRecord could get confused and mess up the variable
bindings, though it's not clear how/why exactly this happens.

Fortunately we can work around all of this by building some of the WHERE
conditions manually, allowing us to use a simple OR statement to get all
the data we want without any of the above problems.
2017-06-16 13:49:09 +02:00
..
assets Merge branch 'translation/9.3/french' into 'master' 2017-06-16 11:35:14 +00:00
controllers Merge branch 'help-landing-page-customizations' into 'master' 2017-06-14 17:16:50 +00:00
finders Refactor ProjectsFinder#init_collection 2017-06-16 13:49:09 +02:00
helpers Merge branch 'feature/unify-email-layouts' into 'master' 2017-06-15 20:15:31 +00:00
mailers use common devise layout and use heading style 2017-06-13 22:36:45 +02:00
models Refactor Project.with_feature_available_for_user 2017-06-16 13:49:09 +02:00
policies Allow to access pipelines even if they are disabled, but only present jobs and commit statuses without giving ability to access them 2017-06-13 09:52:48 +02:00
presenters Display issue state in issue links section of merge request widget 2017-06-09 10:21:56 +02:00
serializers Expose correct path to group 2017-06-16 08:54:20 +00:00
services Merge branch 'backport-ee-cache-invalidation-to-ce' into 'master' 2017-06-16 09:01:43 +00:00
uploaders Fix filename method of GitlabUploader to return always real filename 2017-06-13 00:37:12 +02:00
validators Rename `Gitlab::Git::EncodingHelper` to `Gitlab::EncodingHelper` 2017-06-01 21:21:14 +00:00
views Update ruby metrics endpoint text to be clearer 2017-06-15 22:00:47 +00:00
workers Add the ability to perform background migrations 2017-06-12 13:24:04 +02:00