Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update show.json.jbuilder #6122

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Update show.json.jbuilder #6122

wants to merge 2 commits into from

Conversation

cjcolvar
Copy link
Member

Test skipping converting Hyrax::Resource objects back to ActiveFedora::Base objects because both support class.fields.

cjcolvar added 2 commits July 25, 2023 15:02
Test skipping converting Hyrax::Resource objects back to ActiveFedora::Base objects because both support class.fields.
@rodyoukai
Copy link
Contributor

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.

@cjcolvar
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants