gitlab-org--gitlab-foss/spec/controllers/groups
Bob Van Landuyt 5a335c4d95 Remove the selects when counting the last page
The last page of the first collection is only loaded into memory when
it is being viewed. If it isn't loaded into memory, the `#size` call
triggers a count query.

This `#count` would generate an invalid query if our custom preloaded
counts are included by adding a separate `as count_column` alias on
top of the count aliases. Removing the selects in this case will make
sure a valid `COUNT(*)` is generated.
2017-11-17 16:20:47 +01:00
..
settings Refactor have_http_status into have_gitlab_http_status in the specs 2017-10-20 10:13:18 +02:00
avatars_controller_spec.rb
children_controller_spec.rb Remove the selects when counting the last page 2017-11-17 16:20:47 +01:00
group_members_controller_spec.rb Refactor have_http_status into have_gitlab_http_status in the specs 2017-10-20 10:13:18 +02:00
labels_controller_spec.rb Refactor have_http_status into have_gitlab_http_status in the specs 2017-10-20 10:13:18 +02:00
milestones_controller_spec.rb Refactor have_http_status into have_gitlab_http_status in the specs 2017-10-20 10:13:18 +02:00
variables_controller_spec.rb Refactor have_http_status into have_gitlab_http_status in the specs 2017-10-20 10:13:18 +02:00