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
48 stars 28 forks source link

Add first_revision_date_created to OONI Run v2 API #812

Closed hellais closed 3 months ago

hellais commented 4 months ago

We should return as part of the get OONI Run v2 link request a first_revision_date_created key that tells us what's the timestamp of the first revision date_created key.

This will allow OONI Run frontend to not need to query the list run links endpoint and have to parse the field from there and can instead to everything in a single request.

hellais commented 3 months ago

We ended up option for not doing this and instead worked on the OONI Run v2 improvements described in here: https://github.com/ooni/backend/pull/813.

The tl;dr as to why, is that we already have this information stored as part of the nettest revisions and we can get away without having an additional field/column by changing slightly the semantics of the API.