-
Notifications
You must be signed in to change notification settings - Fork 67
Switch to new flusurv
API endpoint
#1278
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
Open
nmdefries
wants to merge
61
commits into
dev
Choose a base branch
from
ndefries/flusurv-new-endpoint
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
d99d2d0
initial switch to new API endpoint; doesn't account for format change
nmdefries 70c3e16
separate fetch fn for whole api obj
nmdefries 3580f3f
get_current_issue to use existing json response
nmdefries 9cb1da4
cleanup names and comments
nmdefries 9bf3c82
store extracted rates by strata name rather than position
nmdefries cea25ab
define function to convert json obs to dict grouped by location and e…
nmdefries 24dc088
auto-map from valueids to ordinal and label-based group names
nmdefries 26eff97
add new strata to sql insert statement by name, not order
nmdefries 229a96c
pass seasonids around to use in requests for location-specific data
nmdefries 1e942a5
include old and new example API responses
nmdefries f8a6706
flusurv tests
nmdefries d9581ac
Merge branch 'dev' into ndefries/flusurv-new-endpoint
nmdefries 9ac2918
pass metadata around to reduce API calls
nmdefries aa3dd8c
add season label as a descriptive column
nmdefries ca7e478
move example API responses to make it clear they are not for prod use
nmdefries b979910
Merge branch 'dev' into ndefries/flusurv-new-endpoint
nmdefries c1614a1
review cleanup
nmdefries 19a5b42
capitalize constant max_age
nmdefries 2f18451
move paren to subtract from # of dates
nmdefries d64c4c0
move n_exected_groups and big groupid comment to global
nmdefries c7829ee
convert asserts to if-raise
nmdefries c91b7e8
for robust group checking, list all expected groups and do set diff
nmdefries 03926dd
separate data fetching fns into metadata and location classes
nmdefries c5d8d4e
programmatically create location-networkid map; create constants file
nmdefries 9ed92d8
switch missing data assert to exception
nmdefries 1c9e730
Merge branch 'dev' into ndefries/flusurv-new-endpoint
nmdefries eb920cb
mock metadata and api objs for tests
nmdefries b191602
stop doing recent season filtering
nmdefries b7ba101
warn when no location data returned
nmdefries e1d9d06
test metadata attributes together
nmdefries 772e127
correct local module name to load classes from
nmdefries 991fde1
map some long race groups to abbreviated names
nmdefries 5d00dbb
programmatically create sql query to avoid ordering issues
nmdefries 5cedb30
return empty result with right format when no data available
nmdefries e7ad06e
warning prefix
nmdefries 75283d7
add tests for geo-abbr conversion and location fetching
nmdefries 276944a
don't error for missing groups -- some are expected
nmdefries 6c531a6
Merge branch 'dev' into ndefries/flusurv-new-endpoint
nmdefries 9431489
fn to add empty sex breakdowns to UT
nmdefries 205c061
with UT sex subsets getting filled, error on missing groups again
nmdefries 5248a97
Merge branch 'dev' into ndefries/flusurv-new-endpoint
nmdefries 9de7d64
Update flusurv schema and docs with new age, sex, and race groups (#1…
nmdefries 40212bb
Revert "Update flusurv schema and docs with new age, sex, and race gr…
melange396 cf2fcec
add new age rate signals
nmdefries 16634f8
add new columns to flusurv endpoint spec
nmdefries 8be1074
add schema migration script
nmdefries 87ecfdb
Merge branch 'dev' into ndefries/flusurv-new-endpoint
nmdefries 76c0f00
move base url to constants
nmdefries c9f279f
add max age as CLI arg
nmdefries 9dd1435
add flu a/b to DB table
nmdefries a93e3b1
hardcode valueid->signal name; add flu signals
nmdefries 059d7c5
remove ordinal conditional blocks from _groupid_to_name definition
nmdefries 9be73a5
add back female col to sql schema
nmdefries 9db5935
make error types more specific
nmdefries e651646
add new cols to integration test
nmdefries 6c80297
remove trailing comma
nmdefries c88c6fc
specify flusurv return fields
nmdefries ab41fa0
warn on unexpected or missing keys and fill in
nmdefries 5938b46
use unexpected key's ids as suffix; drop UT sex group handling
nmdefries 38c6338
cast ids to str
nmdefries de9a277
drop trailing location
nmdefries File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.