mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Add report elements to samples migration [SCI-2505]
This commit is contained in:
parent
cb7023c18e
commit
e6671cf015
1 changed files with 7 additions and 0 deletions
|
@ -105,6 +105,13 @@ namespace :samples_to_repository_migration do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Update report elements
|
||||||
|
team.reports.each do |r|
|
||||||
|
r.report_elements.where(type_of: 7).each do |e|
|
||||||
|
e.update_attributes(type_of: 17, repository_id: repository.id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Now update smart annotations
|
# Now update smart annotations
|
||||||
migration_service.update_smart_annotations(team, sample_mappings)
|
migration_service.update_smart_annotations(team, sample_mappings)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue