Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test data for development #5

Open
mounte opened this issue Jan 2, 2014 · 4 comments
Open

Test data for development #5

mounte opened this issue Jan 2, 2014 · 4 comments

Comments

@mounte
Copy link
Contributor

mounte commented Jan 2, 2014

When developing using offline database there are some missing data that currently affect the behaviour of the application (for instance missing icons in the database ==> javascript error etc.)

I suggest that some database population code should be added (as a rake task or via the db/seeds.rb) (to some extent one could use faker and populator, see: http://railscasts.com/episodes/126-populating-a-database) so we know that when running db:create db:migrate db:seed (or db:create db:migrate bookio:populatedev) we all have the same environment.

Since I just started reviewing and getting to know the code I dont think I am the right person to do so in the most efficient way but on the otherside it might be a good "first" task for me.

What do you say? Or am I totally on the wrong side of this, maybe you already have some seeding-script hanging around that I couldnt find :)

@joakimbengtson
Copy link

We all use the same database, even when running offline? (Help me out here @meg768)

Anyway, it should be possible to create a database with fake content, so if @mounte wants to start this, its a good idea. Further on we want to add any number of (fake) reservations for load testing and simulating volume usage.

@mounte
Copy link
Contributor Author

mounte commented Jan 15, 2014

I will look into seeding database after the weekend.
Any special wishes? Otherwise I will just seed pseudo-random data.

@joakimbengtson
Copy link

I will add your e-mail (daniel@bookio.com) as a user to my test database, if you then login (www.bookio.com/booker) you can see the data i use. Maybe the scripts should build this database from scratch?

On 15 jan 2014, at 23:16, Daniel Wedlund notifications@github.com wrote:

I will look into seeding database after the weekend.
Any special wishes? Otherwise I will just seed pseudo-random data.


Reply to this email directly or view it on GitHub.

@kovecsesdani
Copy link
Contributor

Thank you very much.
Joakim, if you will have time I would like to talk you about product
development and marketing on skype.
cheers! :)

Kövecses-Varga Dániel
kovecsesdani@gmail.com
+36705060457
2014.01.16. 10:50 ezt írta ("Joakim Bengtson" notifications@github.com):

I will add your e-mail (daniel@bookio.com) as a user to my test database,
if you then login (www.bookio.com/booker) you can see the data i use.
Maybe the scripts should build this database from scratch?

On 15 jan 2014, at 23:16, Daniel Wedlund notifications@github.com
wrote:

I will look into seeding database after the weekend.
Any special wishes? Otherwise I will just seed pseudo-random data.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-32458789
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants