datashift_spree icon indicating copy to clipboard operation
datashift_spree copied to clipboard

How to avoid duplicating?

Open savrand opened this issue 10 years ago • 1 comments

Running command bundle exec thor datashift_spree:load:products -i path and all is imported to DB perfectly, but with loading again duplicates appear. How can I run the command so that it would update existing products and variants? and added new if they appeared in the file?

savrand avatar Aug 20 '14 12:08 savrand

i don't think this is currently an option. there is no smart lookup fo existing entries

my own workflow was always to load in Test, tweak the spreadhseet till happy then do a single upload

to Prod so not been a requirement

Should be fairly simple to add config criteria to ID which fields should be used as the 'primary' key and then during the load stage check whetehr DB entry already exists with those 'primary' fields from the spreadsheet

  cheers tom

albums   : http://aqwan.bandcamp.com all music:http://soundcloud.com/aqwan


From: savrand [email protected] To: autotelik/datashift_spree [email protected] Sent: Wednesday, 20 August 2014, 13:03 Subject: [datashift_spree] How to avoid duplicating? (#27)

Running command bundle exec thor datashift_spree:load:products -i path and all is imported to DB perfectly, but with loading again duplicates appear. How can I run the command so that it would update existing products and variants? and added new if they appeared in the file? — Reply to this email directly or view it on GitHub.

autotelik avatar Aug 20 '14 13:08 autotelik