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

Add a script to populate the db #3

Open
ezio-melotti opened this issue Mar 1, 2017 · 1 comment
Open

Add a script to populate the db #3

ezio-melotti opened this issue Mar 1, 2017 · 1 comment

Comments

@ezio-melotti
Copy link
Member

ezio-melotti commented Mar 1, 2017

Currently after starting the container and running rd-admin init, the db is empty.
There should be a script to easily populate the db, able to quickly:

  1. create a few users with different permissions (a Coordinator, a Developer, and a regular user)
  2. create a few issues with a few messages each
  3. create a specific number of users/issues/messages/etc with specific parameters
  4. perhaps import an issue from bpo

This script might also be exploited by the tests.

ezio-melotti added a commit to ezio-melotti/docker-bpo that referenced this issue Mar 10, 2017
ezio-melotti added a commit to ezio-melotti/docker-bpo that referenced this issue Mar 10, 2017
@ezio-melotti
Copy link
Member Author

#7 addresses the first point.
I think this might be enough, since creating new users from rd-admin is easy. Issues and messages are also easy to create from rd-admin and/or from the tracker (once it's initialized and has a few issues), so implementing the points 2-3 might be unnecessary.
I now think that implementing 4 is a good idea that can also replace 2-3, but should be developed as a separate script.

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

No branches or pull requests

1 participant