Skip to content

Commit

Permalink
Merge branch 'fix/include-all-metric-attribute' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Oct 20, 2023
2 parents 8a7b30e + 6665fd7 commit b6fa3b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpers/submission_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def submission_include_params
end

if includes.find{|v| v.is_a?(Hash) && v.keys.include?(:metrics)}
includes << LinkedData::Models::Metric.goo_attrs_to_load([:all])
includes << { metrics: [:maxChildCount, :properties, :classesWithMoreThan25Children,
:classesWithOneChild, :individuals, :maxDepth, :classes,
:classesWithNoDefinition, :averageChildCount, :numberOfAxioms,
:entities]}
end

includes
Expand Down

0 comments on commit b6fa3b1

Please sign in to comment.