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

Improve database seeding #37

Merged
merged 7 commits into from
Jan 16, 2018
Merged

Improve database seeding #37

merged 7 commits into from
Jan 16, 2018

Commits on Jan 15, 2018

  1. Improve database seeding

    https://eaflood.atlassian.net/browse/WC-167
    
    We need some seed data for the database for the dev environment and for running acceptance tests against. This change switches from loading all seeds in a single script to storing seeds as multiple JSON files and then loading them. This approach should make it easier to add and modify seeds.
    irisfaraway committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    bce20f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dc80fc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6c3956e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    06e9e67 View commit details
    Browse the repository at this point in the history
  5. Handle seeds with and without regIdentifiers

    Seeds with regIdentifiers are loaded first. Then ones without regIdentifiers are loaded and assigned new regIdentifiers to 'fill in the gaps'. This change includes a refactor of the CanGenerateRegIdentifier concern to continue incrementing the counter if it would clash with a regIdentifier which was added out of sequence.
    irisfaraway committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    39c6ddd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    117a254 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2dbfc86 View commit details
    Browse the repository at this point in the history