Skip to content
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

pub_covid_hosp_state_timeseries to use as_of parameter #219

Merged
merged 8 commits into from
Nov 28, 2023

Conversation

nmdefries
Copy link
Contributor

Closes #209

Note: the server code is designed to handle as_of and issues, but not lag.

Copy link
Contributor

@dshemetov dshemetov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, couple non-blocking suggestions

R/endpoints.R Outdated Show resolved Hide resolved
)
}

if (sum(!is.null(issues), !is.null(as_of)) > 1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion(non-blocking, separate issue): just learned about rlang::check_exclusive, definitely easier to read

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's this snag though: r-lib/rlang#1647

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, the sum-!is.null approach is standard across endpoints, so will leave it as-is here.

Opened issue #222

@nmdefries nmdefries merged commit c97093c into dev Nov 28, 2023
@nmdefries nmdefries deleted the ndefries/hosp-state-take_as_of branch November 28, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

covid_hosp_state_timeseries silently ignores as_of parameter
2 participants