From 3a93734c4de5c6858f2bc55fd9e2780a52a860f4 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helpers/submission_helper.rb b/helpers/submission_helper.rb index 07f82138..c68e8567 100644 --- a/helpers/submission_helper.rb +++ b/helpers/submission_helper.rb @@ -13,6 +13,11 @@ 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 << LinkedData::Models::Metric.goo_attrs_to_load([:all]) + end + includes end