Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemaization of the data #47

Merged
merged 7 commits into from
Feb 15, 2020
Merged

Schemaization of the data #47

merged 7 commits into from
Feb 15, 2020

Conversation

pbrudnick
Copy link
Member

@pbrudnick pbrudnick commented Jan 3, 2020

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.

Copy link
Member

@diegomanuel diegomanuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dump loading and tests were fixed, should be ready to approval/merge!

lib/coophub.ex Outdated Show resolved Hide resolved
lib/coophub/repos.ex Show resolved Hide resolved
lib/coophub/repos.ex Show resolved Hide resolved
lib/coophub/repos.ex Show resolved Hide resolved
@diegomanuel diegomanuel assigned pbrudnick and unassigned pbrudnick Feb 15, 2020
@diegomanuel diegomanuel changed the title Schemaization of the data (WIP) Schemaization of the data Feb 15, 2020
… parsed) into a given struct module. Using it from Coophub.Repos.Warmer and CoophubWeb.Fixtures.
Copy link
Member

@diegomanuel diegomanuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine and can be merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants