def import_single_row(data)
begin
product_name = URI.parse(data['source_url']).host.split('.').last(2).join('.').upcase
rescue
error 'Skipping ' + data['repo_label'] + ' ' + to_singular(:repositories) + ' import, invalid source_url.'
report_summary :skipped, :repositories
return
end
product_hash = mk_product_hash(data, product_name)
composite_id = [data['org_id'].to_i, product_name]
product_id = create_entity(:products, product_hash, composite_id)['id']
repo_hash = mk_repo_hash data, product_id
repo = create_entity(:repositories, repo_hash, data['id'].to_i)
return unless option_synchronize?
with_synced_repo(repo)
end