gitlab-org--gitlab-foss/spec
Yorick Peterse ab738645a7
Memoize a user's personal projects count
The method User#projects_limit_left would run "personal_projects.count"
but such a query is not memoized. As a result multiple calls to
User#projects_limit_left would result in multiple COUNT(*) queries being
executed.

To work around this this commit adds User#personal_projects_count which
simply memoizes the result of the COUNT(*) in an instance variable.
2017-08-07 12:38:32 +02:00
..
bin
config
controllers fix #3686 make tarball download url to end with extension 2017-08-03 16:44:48 +00:00
db/production Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true 2017-07-27 14:31:53 +02:00
factories Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
features clean up merge request widget UI 2017-08-07 13:20:33 +10:00
finders Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
fixtures Fix the /projects/:id/repository/branches endpoint to handle dots in the branch name when the project full patch contains a `/` 2017-07-27 14:29:31 +02:00
helpers Improve checking if projects would be returned 2017-08-07 12:38:27 +02:00
initializers Use described_class when possible 2017-07-27 14:31:53 +02:00
javascripts Merge branch '33095-mr-widget-ui' into 'master' 2017-08-07 08:37:45 +00:00
lib Merge branch 'mattermost_fixes' into 'master' 2017-08-07 09:00:27 +00:00
mailers Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
migrations Migrate MR commits and diffs to new tables 2017-08-03 13:20:26 +01:00
models Memoize a user's personal projects count 2017-08-07 12:38:32 +02:00
policies Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
presenters Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
requests Merge branch '32300__expose_more_attributes' into 'master' 2017-08-07 09:52:37 +00:00
routing fix #3686 make tarball download url to end with extension 2017-08-03 16:44:48 +00:00
rubocop/cop
serializers Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
services Merge branch 'refactor.notification-recipient-builders' into 'master' 2017-08-04 09:54:52 +00:00
sidekiq/cron
support Merge branch '2902-standalone-ee-dir-ce' into 'master' 2017-08-04 16:15:03 +00:00
tasks Don't call load_tasks as this would load the tasks twice 2017-08-02 19:02:01 +02:00
unicorn
uploaders Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
validators Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
views Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
workers Don't include EmailHelpers manually, pick with rspec 2017-08-03 21:55:48 +08:00
factories_spec.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Don't send rejection mails for all auto-generated mails 2017-08-03 00:40:10 +08:00