ego
ego copied to clipboard
BUG - GET /policies/{}/groups endpoint with query does not respond with correct count
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.