RedHatInsights / insights-api-common-rails

Header, Encryption, RBAC, Serialization, Pagination and other common behavior for Insights microservices built with Rails
Apache License 2.0
3 stars 25 forks source link

Remove the limits and offset to get data in single call #175

Closed mkanoor closed 4 years ago

mkanoor commented 4 years ago

The RBAC team has changed the get_principal_access API to return all data in a single call and not use pagination. The data returned is still in the pagination format for backward compatibility

The old url used to look like http://rbac.rbac-ci.svc:8080/api/rbac/v1/access/?application=\u0026limit=500\u0026offset=0

The new URL without the limit and offset looks like

http://rbac.rbac-ci.svc:8080/api/rbac/v1/access/?application=

This change doesn't effect the catalog and approval services

The PR from the RBAC service that brought in this change is https://github.com/RedHatInsights/insights-rbac/pull/195