fiqus / coophub

Cooperatives repos over the world! 🌈🌎
https://coophub.io
MIT License
57 stars 28 forks source link

Schemaization of the data #47

Closed pbrudnick closed 4 years ago

pbrudnick commented 4 years ago

This PR is the first step before adding new data sources (like gitlab, see #4).

The idea is to use Organization and Repository schemas with their own structs. The cache will be pushed with those structs.

The cache_warmer should be refactored into a generic builder and each client data source (github/gitlab) having its own way of getting data but always mapping into our schemas.