-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't bunde the data #744
Comments
Hello, Would it be possible to schedule a meeting about how you want the data implemented? My group and I were thinking about using an Amazon S3 bucket to store the data, but we wanted to coordinate with you guys since you'll be the ones in charge of the S3 bucket and managing it. |
sure, let's discuss. How about tomorrow (Thu) late afternoon CEST, morning East Coast? |
That sounds good. Do you want to hold the meeting over Zoom, and what exact time would you like to meet?
…________________________________
From: Richard Neher <[email protected]>
Sent: Wednesday, July 1, 2020 3:04 AM
To: neherlab/covid19_scenarios <[email protected]>
Cc: Rai, Rohan <[email protected]>; Comment <[email protected]>
Subject: Re: [neherlab/covid19_scenarios] Don't bunde the data (#744)
sure, let's discuss. How about tomorrow (Thu) late afternoon CEST, morning East Coast?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#744 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKI6K4GX5GH65Z7SF6JKYCLRZLUY5ANCNFSM4N64YCZA>.
|
@r-s-rai Hello, sorry for missing the call. I've setup a S3 bucket + cloudfront distribution + domain. So the data is ready to be fetched from: This is just the contents of the CORS is enabled in both S3 and Cloudfront. However preflight ( Note however that this simple solution would introduce all kinds of new issues:
So the entire adventure is probably more complicated than swapping the imports with requests. Okay, sounds bad, but are there any other alternatives? I don't know. Let me know if you have any questions or if you encounter any problems (especially with the AWS setup). cc @rneher |
@r-s-rai -- as you see in Ivan's comments above, the operation turns out to be slightly trickier than anticipated. We suggest starting first with just replacing bundling of the jsons by fetching. from there, one could then move towards fetching the case counts one-by-one. |
Hello Ivan, Would it be possible to schedule a meeting with you sometime soon to discuss the code? Thank you, Rohan Rai |
Hello Rai I think it’ll be a really nice idea to discuss thanks DaveedaKinG |
🙋 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:
covid19_scenarios/src/io/defaults/getAgeDistributionData.ts
Line 3 in 00fbc71
This is an easy solution
but is not very practical:
😯 Describe the feature
We want to evaluate different mechanisms of loading and updating the data.
The new mechanism should:
💻 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
The text was updated successfully, but these errors were encountered: