Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Sample data for development #13

Closed
jglovier opened this issue Aug 15, 2014 · 10 comments
Closed

Sample data for development #13

jglovier opened this issue Aug 15, 2014 · 10 comments
Assignees
Labels
help wanted indicates that an issue is open for contributions

Comments

@jglovier
Copy link
Member

As we are building out and designing for new components, having a data migration/sync solution in place would add a lot of efficiency to our development process.

@jkleinsc can you get something like this setup? It would be especially useful for me as I'm doing style work on the patient details section, etc.

@jglovier
Copy link
Member Author

Bump. Any progress on this? This would be hugely helpful for UI work.

@jglovier jglovier changed the title data migration for development Sample data for development May 28, 2015
@tangollama
Copy link
Member

Thought: we could create an administration function that loaded a set data into a database for this purpose. I think this 100% makes sense, since we're trying to make "make it easy to develop in" a goal.

@tangollama tangollama added the help wanted indicates that an issue is open for contributions label Aug 5, 2015
@tangollama tangollama modified the milestone: HospitalRun 1.0 Oct 14, 2015
@tangollama tangollama removed this from the HospitalRun 1.0 milestone Nov 30, 2015
@jglovier
Copy link
Member Author

jglovier commented Dec 7, 2015

Bump. With the new influx of folks interested in helping out, having seed data would be really helpful for local dev. And still would be really helpful for me as I'm working on the UI. 😁

@jglovier
Copy link
Member Author

jglovier commented Dec 7, 2015

help-me-obiwan

@jkleinsc
Copy link
Member

jkleinsc commented Dec 7, 2015

We should be able to use pouchdb-load and pouchdb-dump-cli to do this.
Basically, we just need someone to do the following:

  1. Setup a new empty instance of HospitalRun frontend
  2. Populate that instance with sample data.
  3. Run pouchdb-dump-cli to dump out the current couchdb. e.g. pouchdb-dump http://localhost:5984/main -u hradmin -p test | cat > sample_data.txt.
  4. Create a node utility that uses pouchdb-load to load the dump.

@jglovier
Copy link
Member Author

jglovier commented Dec 8, 2015

@jkleinsc okay, I'll run through steps 1-3 and then probably will need help with step 4.

@jkleinsc
Copy link
Member

@jglovier did you get anywhere with this? If not I am going to run with it.

@jglovier
Copy link
Member Author

@jkleinsc I did, but haven't found time to get it finished. If you feel like you want to tackle it and can get it done before I will, go for it. I'm not sure I'll have a chance to pick it back up in the next few days.

@jkleinsc
Copy link
Member

I've got a working solution and it turn out way better than I was originally envisioning. Expect an update soon
load-db

@jglovier
Copy link
Member Author

more-cowbell

billybonks pushed a commit to billybonks/hospitalrun-frontend that referenced this issue Jan 14, 2016
Also added sample db dump.
Resolves HospitalRun#13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted indicates that an issue is open for contributions
Projects
None yet
Development

No branches or pull requests

3 participants