ego icon indicating copy to clipboard operation
ego copied to clipboard

BUG - GET /policies/{}/groups endpoint with query does not respond with correct count

Open rtisma opened this issue 5 years ago • 0 comments

Say there are 10 permissions for a group, and only one of the groups contains the keyword Apple in the name. Executing /policies/{}/groups?query=Apple&offset=0&limit=100 should return only 1 element, so the response should look like

{
  "offset": 0,
  "limit": 100,
  "count": 1,
  "resultSet: [ # only 1 element in the result set]
}

The actual response is as expected, except the count is incorrectly set to 10 instead of 1. The count in the response represents the total amount of results without paging.

rtisma avatar Jan 18 '21 19:01 rtisma