You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, languages are pre-loaded into the startup database. This is a hassle sometimes, as changing a language's stories (e.g the Tutorial) can cause the entire DB file to change, even though it's only data that's changed. The data exists in the language def files, there's no need for that thrash to impact the db diffs as well. This will also simplify database versioning, I think.
To do:
add a system flag, something like 'shouldLoadDemoData', which is only set for the new database
on app startup, check that flag, and load from the appropriate def files
once app is started, remove 'shouldLoadDemoData' flag
if any data exists, nothing should happen even if 'shouldLoadDemoData' flag is present - can't write over existing stuff
get all tests passing again
look into speeding up the language defs load -- can probably just load all of the yaml only and cache it in a dict
move all existing tests from stub file to the test_demo.py
add any remaining tests
remove stub test file test_issue_534 ... for db demo redesign
change the LoadDemoData flag, should only be present or deleted
add message, "loading sample data"
test release with new kind of empty db, try install and see if works
delete install, remove mecab, do install, see if a lang is marked as a preload but its parser isn't supported then we shouldn't do that
try running install with a copy of my own prod data
change db.reset to use new baseline stuff, remove old baseline stuff
remove db.reset inv task?
fix docs, have to re-baseline
change the db.demo functions to a service object, simplifies importing
remove empty.db, db_export_empty(c), def db_wipe(c), test for db wipe?, check for "wipe", "empty"
final beta release and fresh install?
The text was updated successfully, but these errors were encountered:
Started work in issue_534_change_initial_demo_data_load branch. Currently 127 pytest tests fail, as the baseline db no longer has the demo languages and books. pytest -xand fix the rest.
Currently, languages are pre-loaded into the startup database. This is a hassle sometimes, as changing a language's stories (e.g the Tutorial) can cause the entire DB file to change, even though it's only data that's changed. The data exists in the language def files, there's no need for that thrash to impact the db diffs as well. This will also simplify database versioning, I think.
To do:
The text was updated successfully, but these errors were encountered: