Skip to content

Conversation

@mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jul 19, 2023

This takes the capabilities from AlchemyCMS/alchemy_cms#2523 and allows pre-loading object graphs on ingredient's related objects.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I think the specs fail because we now always return public version elements.

mamhoff added 2 commits July 20, 2023 17:20
This adds a `.preload_relations` object to serializers and leverages
that and the Rails preloader service object to preload ActiveRecord
object graphs below the related object of ingredients.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mamhoff still want to work on this?

)
end

def preload_ingredients(scope)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed essence support. This can probably be removed now.

end

# These overrides have to be in place until
# https://github.com/stas/jsonapi.rb/pull/91
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this has been merged, can this be removed?

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.

3 participants