Actions
Bug #25487
closed'subtotal' is incorrect in API responses
Difficulty:
Triaged:
No
Bugzilla link:
Description
When requesting an endpoint with a search parameter, the subtotal shows the results returned, rather than responses found.
i.e.
curl -k -u admin:changeme -H "Content-Type: application/json" 'localhost:3000/api/v2/hosts?search=%20os_major%20%3D%20%207'
{
"total": 72,
"subtotal": 20,
"page": 1,
"per_page": 20,
"search": " os_major = 7",
"sort": {
"by": null,
"order": null
},
...
The subtotal is 20, which is the results returned and not the actual number of results returned by the search query.
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6254 added
Updated by Tomer Brisker about 6 years ago
- Found in Releases 1.18.2, 1.19.0 added
Updated by Tomer Brisker about 6 years ago
- Related to Bug #24712: Foreman (1.18?) slow API call against fact_values endpoint added
Updated by The Foreman Bot about 6 years ago
- Pull request https://github.com/theforeman/foreman/pull/6299 added
Updated by John Mitsch about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 660e9794af46b3f614b54fe0f2c9375a169f3613.
Actions