Merge pull request #422 from okriuchykhin/ok_SCI_897

Remove sample type and group from smart annotation [SCI-897]
This commit is contained in:
okriuchykhin 2017-01-18 16:26:25 +01:00 committed by GitHub
commit 7f6ceef9e9

View file

@ -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