katharsis-framework icon indicating copy to clipboard operation
katharsis-framework copied to clipboard

Introduce repository calls from the serialization

Open ieugen opened this issue 9 years ago • 1 comments

Right now Katharsis makes calls to the repository for Serializing a Resource to JSON API document. This complicates the code and should not be the case since we should have access to all the data when we do serialization.

The response should be ready. Removing that infrastructure code from the serialization code will improve maintainability.

I believe we need to remove all infrastructure code dealing with Respositories from the jackson module.

ieugen avatar Aug 09 '16 15:08 ieugen

First of all, write down please where these calls are being made. As was discussed on the meeting, all additional calls to a repositories are in auxiliary class IncludeLookupSetter which is called in every controller which returns data.

patrykorwat avatar Aug 09 '16 20:08 patrykorwat