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
Fix evalcast:::get_forecast_dates
bug
#587
Conversation
* redirect get_forecast_dates in covidhub_predictions to zoltr.
For now, I think it's fine to combine the changes here with the html fix in case anyone is still using The |
Do we know whether covidhub and zoltar always have the same results? If not, it's probably better to just do the xpath fix, and keep this zoltar mix-and-match as an emergency backup plan. |
evalcast:::get_forecast_dates
bug
The GitHub REST API also provides a stable way of grabbing file names from a repo, e.g. this chunk uses the API to get names of changed files. It would be more work to implement and needs authentication. |
Thanks for the link @nmdefries! Did some digging in that so I understand it better. Here are my notes. You can get the files/folders present in a repo with the
So to find the dates, you'd need to make the request above, find the hash for |
An alternative approach to the same ends as in #586.
Probably more long term safe, but maybe moving too fast in deprecating
get_covidhub_forecast_dates
. A more complete version of this work would switch us completely to using zoltr, while putting in the html parse fix, to continue to support code that continues to useget_covidhub_forecast_dates
. I just don't have the bandwidth to take that on right now, especially since the zoltr get predictions function appears to be broken now.cc @nmdefries @brookslogan for input.