Skip to content

Don't bunde the dataΒ #744

@ivan-aksamentov

Description

@ivan-aksamentov

πŸ™‹ Feature Request

πŸ”¦ Context

Currently all the data (default scenarios, case counts, age and severity distributions)
https://github.com/neherlab/covid19_scenarios/tree/master/src/assets/data
is being bundled into the app directly with webpack, using static import. For example:

import ageDistributionRaw from '../../assets/data/ageDistribution.json'

This is an easy solution

  • one line of code to load the data
  • data is always guaranteed to be present

but is not very practical:

😯 Describe the feature

We want to evaluate different mechanisms of loading and updating the data.
The new mechanism should:

  • allow for independent releases of the app and data
  • ensure robustness of data loading
  • not change the schemas too much, to allow backwards compat for existing URLs and file imports/exports

πŸ’» Examples

πŸ’ Possible Solution

For example, we could load the data to the public S3 bucket and the load it with a plain HTTP request and validating it afterwards.

We are open for other proposals.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    IMPORTANTTake this immediately!good first issueGood for newcomershelp wantedExtra attention is neededs:confScope: related to configurations:dataScope: related to data retrieval, parsing, transformation, storage, updates:infraScope: related to infrastructure, continuous integration, deploymentt:featType: request of a new feature, functionality, enchancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions