adds repository_items to smart annotation import

This commit is contained in:
zmagod 2018-06-19 11:58:22 +02:00
parent fbcc788597
commit d68ae63c40
2 changed files with 3 additions and 1 deletions

View file

@ -48,7 +48,7 @@ class TeamExporter
end
yield if block_given?
dir = FileUtils.mkdir_p(File.join(dir_name, a.id.to_s)).first
if defined?(S3_BUCKET)
if ENV['S3_BUCKET']
s3_asset =
S3_BUCKET.object(a.public_send(attachment_name).path.remove(%r{^/}))
file_name = a.public_send(attachment_name).original_filename

View file

@ -202,6 +202,8 @@ class TeamImporter
@experiment_mappings[orig_id]
when 'tsk'
@my_module_mappings[orig_id]
when 'rep_item'
@repository_row_mappings[orig_id]
end
next unless new_id
new_id_encoded = new_id.base62_encode