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
Developers will find it easier to develop locally if there is a convenient way of obtaining some or all of the coding system databases from production for their local development. Without them site functionality is limited and some production bugs may not be easily reproducible. It's possible but not easy to recreate the databases locally by running code on the source files.
Each coding system has its own read-only SQLite database. These production databases are based on public sources so there is no sensitivity around them. They don't change once created so a dev may only need to do this when setting up local development, or to get new ones. There are also mapping files recorded in the core database (I think).
How will we know when it's done?
There will be scripts, management commands, and/or justfile commands that aid producing coding system databases and mapping data locally. These will be documented in DEVELOPERS.md or elsewhere as appropriate.
What are we doing?
It's easy enough to download all of the coding system databases from production via SCP, albeit it takes several hours and there are many of them. A command that fetches that those aren't present locally or specific ones as specified could be useful. Determine if this should be scheduled for outside of business hours -- does running it place significant demand on the server's network connection?
When they are present locally the database coding system version models still need to point at them for the site to be able to use them. There is code to update these in coding_systems.versioning.models.update_coding_system_database_connections but no convenient to invoke it. Add one (management command + justfile command, for example.)
Also consider how to make it easy to get the mapping data.
Why are we doing this?
Developers will find it easier to develop locally if there is a convenient way of obtaining some or all of the coding system databases from production for their local development. Without them site functionality is limited and some production bugs may not be easily reproducible. It's possible but not easy to recreate the databases locally by running code on the source files.
Each coding system has its own read-only SQLite database. These production databases are based on public sources so there is no sensitivity around them. They don't change once created so a dev may only need to do this when setting up local development, or to get new ones. There are also mapping files recorded in the core database (I think).
How will we know when it's done?
There will be scripts, management commands, and/or
justfile
commands that aid producing coding system databases and mapping data locally. These will be documented inDEVELOPERS.md
or elsewhere as appropriate.What are we doing?
It's easy enough to download all of the coding system databases from production via SCP, albeit it takes several hours and there are many of them. A command that fetches that those aren't present locally or specific ones as specified could be useful. Determine if this should be scheduled for outside of business hours -- does running it place significant demand on the server's network connection?
When they are present locally the database coding system version models still need to point at them for the site to be able to use them. There is code to update these in
coding_systems.versioning.models.update_coding_system_database_connections
but no convenient to invoke it. Add one (management command +justfile
command, for example.)Also consider how to make it easy to get the mapping data.
Defining delivery tasks guidance
The text was updated successfully, but these errors were encountered: