autotelik / datashift

Full Excel/CSV Import/Export facilities for Rails
http://www.autotelik.co.uk
Other
136 stars 75 forks source link

Map records with ID #27

Closed DriesS closed 9 years ago

DriesS commented 9 years ago

I exported my list of products ( not spree but custom made application) that have all an ID, when I import the excel file again with my changes ( description ), he tells me that there is a duplicate entry with ID x.

Is it possible with datashift to map an existing record with the ID, so when the ID exists that he updates the row with that specific ID with the values? We want to use the excel file to keep the products up to date on the website because the client is working internaly with this excel sheet.

autotelik commented 9 years ago

Hi ... sorry I had never got round to implementing update, only create, as was not a requirement for me

But I've actually started working with Rails/Spree again recently so will look at this

which thor tasks are you using exactly ?

thanks tom

DriesS commented 9 years ago

Hi @autotelik

I use this command :

 bundle exec thor datashift:import:excel model=Product input=products.xls verbose=true 
autotelik commented 9 years ago

Created new 'feature' to monitor this so closing