From 6665fd7df24f5d187267da04ebb95f92b7ccf3bb Mon Sep 17 00:00:00 2001 From: Syphax bouazzouni Date: Fri, 20 Oct 2023 14:56:41 +0200 Subject: [PATCH] include all metrics attribues in the submissions endpoints --- helpers/submission_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/helpers/submission_helper.rb b/helpers/submission_helper.rb index 07f82138..b79737d0 100644 --- a/helpers/submission_helper.rb +++ b/helpers/submission_helper.rb @@ -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