backend
backend copied to clipboard
Exporting CSV data
We can export csv files based on OONI measurement data for each country which could include the following columns:
- URL: Add all of the (country-specific) tested URLs under this column.
- Q1-Year: Add a value which describes whether each URL was blocked or not. Such values can include "Blocked (DNS, HTTP, etc.), Not blocked, Unknown".
- Q1-Year number of tests: How many times was each URL tested in that period (Q1-Year)
- Number of different vantage points: In how many different vantage points was each URL tested in within that period (Q1-Year)
- Q2-Year: Same steps as above, but repeated for all the subsequent quarterly periods.
@agrabeli and @FedericoCeratto will discuss these requirements and understand if they are still relevant, if so integrate the input into existing or future features for the API.
How important is this issue? I have tried to assign it a priority and struggled a bit, then settled for priority/medium (@agrabeli).
I think we now support this in the aggregation API. We just need some UI for it.
Exporting measurements in CSV format remains very important (as political scientists/human rights defenders can more easily work with CSV files than with JSON). If we can add a UI to automate and simplify the export of CSVs (particularly since it's supported by the aggregation API), that would be marvelous!
Maybe another approach could be that of offering the ability to export in CSV client-side directly inside of the MAT toolkit page.
We should discuss this during the backend meeting so we can move it forward a bit.
@hellais @FedericoCeratto We now support the export of CSV data, but I'm not sure if we want to keep this ticket open (to make improvements)?
We can close the ticket for now.