openfoodfacts / openfoodfacts-query

This extracts key product data from MongoDB into a Postgres database to speed up OFF
GNU Affero General Public License v3.0
0 stars 0 forks source link

Logs edit events in openfoodfacts-query #33

Open alexgarel opened 6 months ago

alexgarel commented 6 months ago

Problem

We started https://github.com/openfoodfacts/openfoodfacts-events/ but discussing together we realize it would be better to store events in openfoodfacts-query as it would enable crossing events with facets.

Solution

Log events in openfoodfacts-query.

Add a table that correspond to the changes.sto with useful information: date, user, device, changed fields.

Add events from redis stream.

Add an API to query that with filtering options.

After that we might want to log more events: