Project

General

Profile

Actions

Bug #3784

closed

API v2 subtotal in list reports shows wrong value

Added by Martin Bacovsky over 10 years ago. Updated over 10 years ago.

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

Description

GET "/api/reports?search=host.id+%3D+vm1.mbacovsk.redhat.com"

Retrieved data: {
"total" => 359,
"subtotal" => 359,
"page" => 1,
"per_page" => 20,
"search" => "host.id = vm1.mbacovsk.redhat.com",
"sort" => {
"by" => nil,
"order" => nil
},
"results" => [
...

In the results there is 20 records

Actions #1

Updated by Dominic Cleal over 10 years ago

  • Status changed from New to Need more information

From http://theforeman.org/manuals/1.3/index.html#5.1.2JSONResponseFormatforCollections, this appears correct. It seems subtotal is the number of objects, not affected by pagination.

Actions #2

Updated by Martin Bacovsky over 10 years ago

  • Status changed from Need more information to Closed

You are right, I had bad assumption about the attribute

Actions

Also available in: Atom PDF