hyrax
hyrax copied to clipboard
Update show.json.jbuilder
Test skipping converting Hyrax::Resource objects back to ActiveFedora::Base objects because both support class.fields.
Hi @cjcolvar, thanks for the test
The commented line:
@curation_concern = Wings::ActiveFedoraConverter.convert(resource: @curation_concern)
Caused a significant delay in generating the json response, so commenting it out considerably improved response times when consuming json from a SPA, which would be my case.
There were missing keys from the generated JSON so the original reason for the conversion seems valid. I'm not sure what keys are dropped and if they're important though.