mysociety / citizenconnect

Citizen Connect project for the NHS: reporting problems, leaving reviews
https://www.nhs.uk/careconnect/choices
Other
1 stars 0 forks source link

Figure out a good way (management command, bin script?) to extract and appropriately anonymise data from live for updating other vhosts and local dev #1177

Closed stevenday closed 11 years ago

stevenday commented 11 years ago

It would be nice to have something that did approximately:

It would be great to run one command and get one big .json that we could loaddata into another vhost or our local dev box, to keep them useful and up to date with the live site.

stevenday commented 11 years ago

I've added a command in 6a3fd711ef20b77db750bab9185b7146d1c8c2d4 to dump data out - it can't assign the dev users easily because they're not in the database you'll be dumping from, so this is something better done on/after importing the data from this command I think. I'll add a companion command to do that too.

Since we already have a command to generate problems, on second thoughts I'll leave that out of this.