usgo/agagd

Existing Fixtures are Out of Sync with Database Models

michaelhiiva opened this issue · 1 comments

Summary of the Bug

Two Points:

  • The current make_fake_fixtures.py generates data which does not align with current agagd models.
  • No data is generated on startup from for the agagd app in docker-compose.

Steps to Reproduce the Behaviour

Point 1

  1. Run the current $ docker-compose up as is.

Point 2

  1. Load the make_fake_fixtures.py onto the app container.

From within the container:

  1. Create the fixtures using i.e., $ python make_fake_fixtures.py 10 10 10 > /tmp/fake_fixtures.json
  2. Load the fixtures into the db $ python manage.py loaddata /tmp/fake_fixtures.json

The Expected Behaviour

Running $ docker-compose up should provide some basic data so that there is a visible graph, player information, tournaments, etc.

Resolved with #125.