ooni / ooni/backend

Port backend/legacyapi components over to the ooniapi services pattern

Open
#807 6 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

backend epic
Dominant language
Python
Stars
61
Forks
33
Avg merge
3d 2h
Merged PRs (30d)
3

Description

The components that need to be ported are the following:

Tier0
Tier1
  • data, (aka OONI Data Kraken), where Explorer and other clients access the
    observations data and experiment results;
  • findings, (aka incidents) backend for findings pages on explorer (see: https://github.com/ooni/backend/issues/814);
  • measurements, backend for aggregation and list measurement endpoints (note
    also probe uses this, so it's maybe on the high end of tier1);
Tier2

For best practices in doing so, see: https://github.com/ooni/backend/issues/817

I started in this PR to define a nice pattern for using fastapi in conjunction with PostgreSQL for the new OONI Run v2 API: https://github.com/ooni/backend/pull/805.

And also:

I think we should adopt this for iteratively refactoring and deploying other OONI backend tier1 components.

For example the censorship findings pages should be moved over to postgresql and refactored to use fastapi.

This is also related to the API gateway work such that we are able to expose these refactored endpoints side by side the old ones minimizing the chance of breakage: https://github.com/ooni/devops/issues/7.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.