ooni / backend

Everything related to OONI backend infrastructure: ooni/api, ooni/pipeline, ooni/sysadmin, collector, bouncers and test-helpers
BSD 3-Clause "New" or "Revised" License
50 stars 29 forks source link

[Feature] Make API accept multiple domains and ASNs #637

Closed fortuna closed 1 year ago

fortuna commented 1 year ago

I'd like to analyze a country, but restrict to a fixed set of domains, and only for some ASes (the top ones). Existing options are bad:

The domain SQL filter can be easily changes to a IN operator here: https://github.com/ooni/api/blob/8aa24669cc0e5aae3b31bd35a2b371ef11a97f77/newapi/ooniapi/measurements.py#L825

Same for the probe_asn filter at https://github.com/ooni/api/blob/8aa24669cc0e5aae3b31bd35a2b371ef11a97f77/newapi/ooniapi/measurements.py#L777

hellais commented 1 year ago

Thanks for requesting this, it is indeed a much needed feature!

Closing this in favour of the existing issue: https://github.com/ooni/backend/issues/584