legiongis / hmsf-md

Arches project for the Heritage Monitoring Scouts program, maintained by Florida Public Archaeology Network
https://hms.fpan.us
1 stars 0 forks source link

Remove fixture loading from migrations, place in new `setup_hms` management command #252

Closed mradamcox closed 1 year ago

mradamcox commented 1 year ago

Over the years, different patterns have been employed for managing the loading of data that is needed to run the app. Specifically, the Management Area fixtures, and some map overlays as well.

We should consider moving these load operations out of migrations (where they currently reside) and into a new setup_hms command that could be run to complete a database initialization after the normal setup_db Arches command has been run.

This will make the migrations run much more quickly overall, allowing for a more streamline unit test pattern to be put in place.