This is redundant as users most likely are interested in one region or maybe a handful. This also makes the app startup slow, as the JSON are loaded along with the rest of the JS bundle and are then validated.
Whether to merge all 4 pieces (cases, population, severity and scenario) into one file for that particular region, similar to how Shareable schema works for scenario uploads and URL sharing, or to keep 4 pieces separate (the consideration is that currently in the UI the case counts and age distribution can be changed independently from scenario params)
How to not break schemas too much and to maximize backwards compatibility across different I/O types
π Feature Request
π¦ Context
Currently the data for all countries is being statically bundled and loaded on startup https://github.com/neherlab/covid19_scenarios/tree/master/src/assets/data
This is redundant as users most likely are interested in one region or maybe a handful. This also makes the app startup slow, as the JSON are loaded along with the rest of the JS bundle and are then validated.
π― Describe the feature
We want to split the data into chunks per region.
Decisions tomake:
import(chunk) => Promise<>
), plain HTTP requests from a public S3 bucket (https://github.com/neherlab/covid19_scenarios/issues/744)Shareable
schema works for scenario uploads and URL sharing, or to keep 4 pieces separate (the consideration is that currently in the UI the case counts and age distribution can be changed independently from scenario params)π» Examples
π Possible Solution
Related