-
Notifications
You must be signed in to change notification settings - Fork 2
Update COVIDcast export integration #1252
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: dev
Are you sure you want to change the base?
Conversation
✅ Preview link ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
6ccd6d0
to
7dbe224
Compare
@melange396 @dshemetov this is ready for review! One quick note re: #1244 (comment)
I doublechecked and that declaration relies on another variable within the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, your testing example
https://deploy-preview-1252--cmu-delphi-covidcast.netlify.app/export/?sensor=hhs-confirmed_admissions_influenza_1d_prop_7dav®ion=AK&date=20240426
doesn't seem to be doing the right thing? The URL gets reduced down to
https://deploy-preview-1252--cmu-delphi-covidcast.netlify.app/export/?sensor=hhs-confirmed_admissions_influenza_1d_prop_7dav
which doesn't end up selecting any parameters. Is this just an issue on my machine? I'm on Firefox. I'm expecting the URL to be reduced down to
https://deploy-preview-1252--cmu-delphi-covidcast.netlify.app/export/?data_source=hhs&signal=confirmed_admissions_influenza_1d_prop_7dav®ion=AK&date=20240426
does that happen your machine?
@dshemetov to clarify, my testing example is:
(note the Once on that page, click the "Export Data" link on the "about" panel and it should redirect you to the correct |
Hm, so when I follow your instructions (on Firefox and Chrome), the URL
and then click Export Data, it turns into
Does that not happen for you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still having some issues getting this to work.
import { currentMode } from '../../stores'; | ||
import AboutSection from '../../components/AboutSection.svelte'; | ||
|
||
/** | ||
* @type {import('../../stores/params').SensorParam} | ||
* @type {import("../stores/params").DateParam} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the path here off? It was ../.. before? Same for the two imports below.
it may not be worth adding all this complexity; the signal documentation app now has its own date/location chooser which enables it to use the |
@melange396 that makes sense for the signal documentation app! However we'd like to link to the export page from other parts of the website as well. e.g., https://delphi.cmu.edu/covidcast/indicator/ has "Export Data" links for each indicator: which are intended to do what this PR and #1244 implement - redirect the user to the covidcast export page, where the form is pre-filled according to the currently selected sensor. But currently these links simply discard the |
@rzats Hm, this functionality isn't working for me (same example as in my comment above, same example as in your top comment here; I tried Chrome, Firefox, Safari). Is it working for you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, all the buttons are working for me now. I tried a number of different sources and geos and it looks good to me. Thanks for all the iterations, Rostyslav 👍
Followup to #1244.
Prerequisites:
dev
branchdev
Summary
Fixes some pending issues from #1244:
geo_value
works for lowercase state names.Testing example: