From e45749d3b2a5fc69eb0d65f75fd530e205205905 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 18 Jan 2017 14:46:53 +0100 Subject: [PATCH] Remove sample type and group from smart annotation [SCI-897] --- app/utilities/smart_annotation.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/utilities/smart_annotation.rb b/app/utilities/smart_annotation.rb index dcd7414c8..c8c816122 100644 --- a/app/utilities/smart_annotation.rb +++ b/app/utilities/smart_annotation.rb @@ -99,13 +99,7 @@ class SmartAnnotation )} #{I18n.t('by')} #{truncate( sanitize(sample_res.user.full_name, length: Constants::NAME_TRUNCATION_LENGTH) - )} #{if sample_res.sample_type - ', ' + truncate(sanitize(sample_res.sample_type.name), - length: Constants::NAME_TRUNCATION_LENGTH) - end} #{if sample_res.sample_group - ', ' + truncate(sanitize(sample_res.sample_group.name), - length: Constants::NAME_TRUNCATION_LENGTH) - end}" + )}" sam['type'] = 'sam' samples_list << sam end