-
Notifications
You must be signed in to change notification settings - Fork 32
Several oonimeasurements fixes #1012
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9782190
Working on test to reproduce bug
LDiazN a63886f
Remove useless date parsing; add test for broken query
LDiazN bde45c6
Fix bad comparision between model and {}
LDiazN 0d0ea2a
Measurement body is already str, no need for translation
LDiazN ab117cd
Emulate monolith behavior of returning probe_asn as int
LDiazN c7ada7e
Add fixture to test measurement body fetch
LDiazN 4fb1286
Port monolith measurement_meta endpoint function
LDiazN fffbf9f
Port basic usage test for measurements meta
LDiazN 5046c0f
Add test from old version
LDiazN 5755a63
Add test to validate report id
LDiazN 447a925
Black reformat
LDiazN e1b1fc2
Port more tests from the monolith
LDiazN f41f65e
black reformat
LDiazN 4f7031e
Remove unused imports
LDiazN 864b570
Add since parameter and fix bad date filtering
LDiazN c8b50cf
Add test to check that default filters don't retrieve anything older …
LDiazN 5c13772
Fix datetime parsing
LDiazN 64d51a2
Black reformat
LDiazN d5ea53b
trigger ci
LDiazN b63a188
trigger ci
LDiazN 3785837
Add test for missing report_id or measurement_uid
LDiazN fb8c66a
move validate function closer to where it's needed
LDiazN f1f6084
Add test for bad report_id detection
LDiazN 189bc06
Extend measurement_meta test to include query by uid
LDiazN 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
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
3 changes: 2 additions & 1 deletion
3
ooniapi/services/oonimeasurements/tests/migrations/3_clickhouse_populate_jsonl.sql
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,2 +1,3 @@ | ||
| INSERT INTO jsonl (report_id, input, s3path, linenum) VALUES ('20210709T004340Z_webconnectivity_MY_4818_n1_YCM7J9mGcEHds2K3', 'https://www.backtrack-linux.org/', 'raw/20210709/00/MY/webconnectivity/2021070900_MY_webconnectivity.n0.2.jsonl.gz', 35); | ||
| INSERT INTO jsonl (report_id, input, s3path, linenum, measurement_uid) VALUES ('20250709T074913Z_webconnectivity_US_10796_n1_XDgk16bsGyJbx6Jl','https://freenetproject.org/','raw/20250709/07/US/webconnectivity/2025070907_US_webconnectivity.n1.7.jsonl.gz',623,'20250709075147.833477_US_webconnectivity_8f0e0b49950f2592') | ||
| INSERT INTO jsonl (report_id, input, s3path, linenum, measurement_uid) VALUES ('20250709T074913Z_webconnectivity_US_10796_n1_XDgk16bsGyJbx6Jl','https://freenetproject.org/','raw/20250709/07/US/webconnectivity/2025070907_US_webconnectivity.n1.7.jsonl.gz',623,'20250709075147.833477_US_webconnectivity_8f0e0b49950f2592'); | ||
| INSERT INTO jsonl (report_id, input, s3path, linenum, measurement_uid) VALUES ('20250709T074749Z_webconnectivity_US_10796_n1_oljUoi3ZVNHUzjdp', 'https://www.quora.com/', 'raw/20250709/07/US/webconnectivity/2025070907_US_webconnectivity.n1.7.jsonl.gz', 187, '20250709074932.361231_US_webconnectivity_52be70d41f91a6cc'); |
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.