-
Notifications
You must be signed in to change notification settings - Fork 0
Proof of concept (without tests) #3
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
+2,648
−60
Open
Changes from 89 commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
baaf842
Add script to generate example model output parquet files
david-mears-2 c97109e
Add metadata for model outputs
david-mears-2 7861d0c
Rename column variant_string to variant to match survey data parquet
david-mears-2 581b2e2
wip wip wip wip
david-mears-2 1ed17ca
Make versions soft-coded in metadata endpoint
david-mears-2 4b724b4
Make prevalences parquets include all ancestor region ids, not just r…
david-mears-2 db7bc7c
Implement prevalences endpoint
david-mears-2 fd6f9b6
Update example model outputs generator to (1) go back to 1970 more of…
david-mears-2 efe91a8
Add instrumentation for timing requests
david-mears-2 82f5dbf
Fix survey data requests scoped by admin0
david-mears-2 e8ec6c7
Response optimizations: columnar format and round high-precision floats
david-mears-2 c421893
Rows for survey data, columns for prevalences
david-mears-2 43eb383
Fix keys/names of rounded columns
david-mears-2 da405b1
Extract grout region metadata fetch into a startup script
david-mears-2 f766662
Extract some consts/types
david-mears-2 42fba7c
Extract some validators
david-mears-2 d30dd8c
Extract DuckDB connection
david-mears-2 2cc871a
Extract querying logic
david-mears-2 f3b1525
Refactor querying logic
david-mears-2 c7028a0
Move error handler call to correct place
david-mears-2 34708cb
Finish implementing query param validators and refactor them
david-mears-2 e6e4242
Tidy comments; extract todos into youtrack tickets
david-mears-2 49e5bb6
Reword variable names
david-mears-2 4436c71
Make node types package match canonical node version
david-mears-2 ef7b047
Apply tsconfig to scripts ts files too
david-mears-2 0f7bce3
Tests - iteration 0
david-mears-2 3518254
Tests - iteration 1 (refactor fixture generation)
david-mears-2 681f182
Remove fixture validation
david-mears-2 180fa58
Rename GHA workflow
david-mears-2 4cfec78
Small refactors
david-mears-2 8540cba
Start to type column names; simplify validator test mock
david-mears-2 96d0bea
Alphabetise column types and add unrequestable columns
david-mears-2 1a36c36
Give up having a subset of columns be requestable
david-mears-2 bc49b36
Lots of rewriting tests; remove admin0 format validation
david-mears-2 80d2947
Make exmaple model outputs generation script a bit more clear
david-mears-2 73c3b14
Remove request timing logger
david-mears-2 778bdc7
Update README.md
david-mears-2 1e988de
Fix lint command
david-mears-2 3df6a34
Remove tests
david-mears-2 f74509c
Refactor: make validation-wrapper funcs for two endpoints
david-mears-2 7d5d156
fix f74509c
david-mears-2 0909b70
Remove some gubbins
david-mears-2 5b56e09
Use DuckDB in READ_ONLY mode
david-mears-2 74942cd
Add script to generate example model output parquet files
david-mears-2 a4a0462
Add metadata for model outputs
david-mears-2 22b01a4
Rename column variant_string to variant to match survey data parquet
david-mears-2 e613810
wip wip wip wip
david-mears-2 eef2c79
Make versions soft-coded in metadata endpoint
david-mears-2 da59d72
Make prevalences parquets include all ancestor region ids, not just r…
david-mears-2 dbed7b4
Implement prevalences endpoint
david-mears-2 3dd957e
Update example model outputs generator to (1) go back to 1970 more of…
david-mears-2 8828066
Add instrumentation for timing requests
david-mears-2 d2d3a8c
Fix survey data requests scoped by admin0
david-mears-2 f7d9e53
Response optimizations: columnar format and round high-precision floats
david-mears-2 60cae36
Rows for survey data, columns for prevalences
david-mears-2 b33d32b
Fix keys/names of rounded columns
david-mears-2 cdd5a2c
Extract grout region metadata fetch into a startup script
david-mears-2 761f1c8
Extract some consts/types
david-mears-2 ee4c776
Extract some validators
david-mears-2 180aa2f
Extract DuckDB connection
david-mears-2 daf2409
Extract querying logic
david-mears-2 e7d9b6f
Refactor querying logic
david-mears-2 d551405
Move error handler call to correct place
david-mears-2 aa5bd41
Finish implementing query param validators and refactor them
david-mears-2 e24491d
Tidy comments; extract todos into youtrack tickets
david-mears-2 46579a2
Reword variable names
david-mears-2 d3ee42a
Make node types package match canonical node version
david-mears-2 d69dbc3
Apply tsconfig to scripts ts files too
david-mears-2 4d8b4d0
Tests - iteration 0
david-mears-2 9c04f22
Tests - iteration 1 (refactor fixture generation)
david-mears-2 ad253e3
Remove fixture validation
david-mears-2 15192b1
Rename GHA workflow
david-mears-2 79db61d
Small refactors
david-mears-2 5f6cda4
Start to type column names; simplify validator test mock
david-mears-2 462e98f
Alphabetise column types and add unrequestable columns
david-mears-2 4ebac0e
Give up having a subset of columns be requestable
david-mears-2 77ec32e
Lots of rewriting tests; remove admin0 format validation
david-mears-2 04d26e6
Make exmaple model outputs generation script a bit more clear
david-mears-2 bec9c86
Remove request timing logger
david-mears-2 2ac6ebd
Update README.md
david-mears-2 f9faf17
Fix lint command
david-mears-2 b814116
Remove tests
david-mears-2 061950f
Refactor: make validation-wrapper funcs for two endpoints
david-mears-2 6247295
fix f74509c
david-mears-2 8c08227
Remove some gubbins
david-mears-2 7b2d27c
Use DuckDB in READ_ONLY mode
david-mears-2 9bc5186
Don't lint non-existent file
david-mears-2 5b2f37f
Don't lint non-existent file
david-mears-2 e572a47
Merge remote-tracking branch 'refs/remotes/origin/poc-no-tests' into …
david-mears-2 872cd9d
Extract properties from query params only once
david-mears-2 02f4b2c
Improve date validation for query parameters
david-mears-2 e011d8d
Fix grammatical error in README.md
david-mears-2 2753fa6
Fix endpointConfigs file path in README
david-mears-2 06a62a2
jsonc in README
david-mears-2 e789840
Merge remote-tracking branch 'refs/remotes/origin/poc-no-tests' into …
david-mears-2 d0a2663
Update main entry point to dist/server.js
david-mears-2 e8a9a37
Linting/typing
david-mears-2 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: lint and type check | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| .env | ||
| node_modules/ | ||
| dist/ | ||
| data/admin0-region-metadata.json | ||
| data/**/*.parquet |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "version": "2026.05.08", | ||
| "data_release": "2026.03.17" | ||
| } |
Binary file not shown.
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.