Project

General

Profile

Actions

Bug #20933

closed

Subtotal is being incorrectly set in tasks controller index

Added by Walden Raines about 7 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The subtotal is being set to the count of the results which is incorrect. This results in behavior where pagination is unusable because the subtotal ends up being the total number of results if less than the per page value or the per page value otherwise. In the latter case it is impossible to go to page two in the UI because we use the subtotal to calculate pagination.

Other controllers in katello don't exhibit this behavior. I believe the subtotal should be the number of items that match a particular search.

https://github.com/theforeman/foreman-tasks/blob/master/app/controllers/foreman_tasks/api/tasks_controller.rb#L138


Related issues 1 (0 open1 closed)

Blocks Katello - Bug #20393: Foreman tasks table should be using index method instead of bulk_searchClosedDan Seethaler06/25/2017Actions
Actions

Also available in: Atom PDF