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

Percolate errors from different micro services #180

Closed mkanoor closed 4 years ago

mkanoor commented 4 years ago

https://projects.engineering.redhat.com/browse/SSP-1437

Since Catalog interacts with multiple micro services, RBAC, Approval, Topology etc, we need to percolate errors from the other services upto the caller. Since the IPP recommends using JSON-API's error format which is an array of error objects. This PR handles errors coming from openapi-generated clients and converts them into error objects.

Screen Shot 2020-04-14 at 6 15 06 PM