Skip to content

Commit

Permalink
include all metrics attribues in the submissions endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Oct 20, 2023
1 parent 37408c5 commit 6665fd7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helpers/submission_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ def submission_include_params
if includes.find{|v| v.is_a?(Hash) && v.keys.include?(:contact)}
includes << {:contact=>[:name, :email]}
end

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

includes
end

Expand Down

0 comments on commit 6665fd7

Please sign in to comment.