This function is used mostly in the API layer with the include parameter, when we do for example /submissions?include=contact or /submissions?include=all, this function goo_attrs_to_load is called.
Having the function not working, causes this sort of issue https://github.com/ontoportal-lirmm/ontologies_api/issues/22, where do fetch all the asked attributes correctly.
All of the hot fixed and ad-hoc code were made in the API layer to handle this, but this function was never fixed.
Doing
OntologySubmission.goo_attrs_to_load([:contact, :ontology])
Should return all the attributes of contact and ontology that are needed to be loaded in a request
But the returned object is
This function is used mostly in the API layer with the
include
parameter, when we do for example/submissions?include=contact
or/submissions?include=all
, this functiongoo_attrs_to_load
is called.Having the function not working, causes this sort of issue https://github.com/ontoportal-lirmm/ontologies_api/issues/22, where do fetch all the asked attributes correctly.
All of the hot fixed and ad-hoc code were made in the API layer to handle this, but this function was never fixed.