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

Feature init checks #47

Merged
merged 19 commits into from
Feb 7, 2020
Merged

Feature init checks #47

merged 19 commits into from
Feb 7, 2020

Conversation

ckoerber
Copy link
Member

@ckoerber ckoerber commented Feb 7, 2020

Added model, database and migration consistency checks which are run on import of new EspressoDB projects.

This addresses #46

New features

  • Added new submodule espressodb.management.checks which gathers cross-checks (e.g., migration checks)
  • New project's init function call the run_all_checks() method if the environment flag ESPRESSODB_INIT_CHECKS='1' is set. This function calls migration checks.
  • Migration checks compare whether the sate of models, migrations and the database is consistent
  • Updated unit tests and documentation for new features.

Changes to existing code

  • The previous example folder contained, besides the my_project example project, other unit tests. These tests were moved in the new tests folder.
  • EspressoDB's new project init function has been updated to call run_all_checks(). To ensure backward compatibility, projects created before version 1.1.0 will have to manually update this function to make use of the new init check feature (after updating EspressoDB).

@ckoerber ckoerber merged commit be09776 into v1.1.0 Feb 7, 2020
@ckoerber ckoerber mentioned this pull request Feb 10, 2020
@ckoerber ckoerber deleted the feature-init-checks branch February 20, 2020 02:50
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

Successfully merging this pull request may close these issues.

None yet

1 participant