socrata / datasync

Desktop / Console application for updating Socrata datasets automatically.
http://socrata.github.io/datasync/
MIT License
80 stars 33 forks source link

Have a way for the Metadata job to only update metadata fields with new data #70

Open shua123 opened 10 years ago

shua123 commented 10 years ago

The way it is right now, if I want to update just one or two of the metadata fields, I have to first load all the metadata from the dataset otherwise it will overwrite with blanks. I would like to be able to just update the one or two fields and have the rest stay as they are.

I think this is essentially asking for the opposite of commit 299be7d901db1a9e67c8193a9acc49963a5b205c

shua123 commented 10 years ago

I hacked a version of DataSync to kind of handle this for my specific use case (updating the Dataset Contact Email for most datasets). The code is not in a commit-able state right now as I had to temporarily comment out some things that you would normally want for other job-types but I'll try to walk through what I did on here in case anyone is needing to do something similar.