Split app data per region and load on demand #743
Labels
help wanted
Extra attention is needed
IMPORTANT
Take this immediately!
s:data
Scope: related to data retrieval, parsing, transformation, storage, update
s:ui
Scope: related to user experience, user interface, usability, accessibility
t:feat
Type: request of a new feature, functionality, enchancement
🙋 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 (Don't bunde the data #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
The text was updated successfully, but these errors were encountered: