Closed Agnul97 closed 4 months ago
Attention: Patch coverage is 15.38462%
with 22 lines
in your changes are missing coverage. Please review.
Project coverage is 16.81%. Comparing base (
fc97b10
) to head (e3ba726
). Report is 15 commits behind head on develop.
Brief description of the PR. I fixed the problem by noticing that, in the rest-api method for the call GET /{scopeId}/roles/{roleId}/users, the limit and offsets parameters were used also in the 2 queries to the "access_info" and "access_role" tables, before querying for the "user" table. This was having unwanted side effects for how we set the limitExceeded parameter and how offsets are used for the pagination.
Other than this, I refactored a bit the code moving a lot of logic inside the new roleService method userIdsByRoleId. I created a test for it as well