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

Refactor Fetching structure #368

Merged
merged 2 commits into from
Jan 26, 2015
Merged

Conversation

tdooner
Copy link
Member

@tdooner tdooner commented Jan 26, 2015

The main idea is to separate the downloading of the data from the
processing of it, under the assumption that the Cal-Access data will be
similar enough that it can be massaged into something looking like it
came from Socrata without too much hassle.

So, there are Downloaders (of which there will be two - Socrata and
Cal-Access) and Fetchers (a bad name, but they process the downloaded
data).

Also, this adds a preliminary amount of test coverage for the most basic
processing conditions, and hopefully this will give us all some
motivation to be more conscious about writing tests when we find bugs. I
ripped out FactoryGirl and replaced it with parsing raw JSON dumps,
which seems easier to understand.

The main idea is to separate the downloading of the data from the
processing of it, under the assumption that the Cal-Access data will be
similar enough that it can be massaged into something looking like it
came from Socrata without too much hassle.

So, there are Downloaders (of which there will be two - Socrata and
Cal-Access) and Fetchers (a bad name, but they process the downloaded
data).

Also, this adds a preliminary amount of test coverage for the most basic
processing conditions, and hopefully this will give us all some
motivation to be more conscious about writing tests when we find bugs. I
ripped out FactoryGirl and replaced it with parsing raw JSON dumps,
which seems easier to understand.
@tdooner
Copy link
Member Author

tdooner commented Jan 26, 2015

Cool, travis CI works!

tdooner added a commit that referenced this pull request Jan 26, 2015
@tdooner tdooner merged commit 5cf9a3c into openoakland:master Jan 26, 2015
@tdooner tdooner deleted the refactor_fetching branch January 26, 2015 05:27
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