Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change removes CouchDB, django-sboard and everything that is related to them. For data scraping, CouchDB was replaces with MySQL via ManoseimasPipeline. Now all scraped data will be added to tables specified in ManoseimasPipeline.models attribute. Each model have `key` and `value` attributes that mimics CouchDB documents. If there are still places where CouchDB is uses, all those places have to be replaced by `scrapy.models` models. Website search was, previously based on CouchDB now replaced with Haystack Search. After refactoring I checked these places: - Made sure, that all tests pass. - Tried these commands and made sure they work: bin/scrapy crawl --loglevel DEBUG mps bin/scrapy crawl --loglevel DEBUG sittings bin/django recompute_stats - Manually tried these parts of the page: - Front page - Website search - Widget - MP profile - Fraction profile - Wrote more tests for mps_v2, widget and manoseimas apps. - Tried to import production database locally and run migrations on it. Everything listed above, more or less work. But this listed below does not work: - There is no user profile, this should be implemented with this #151 - Widget profile does not work, but this was already broken, before refactoring, when members of parliament was moved from CouchDB to MySQL. - Compatibility test does not work, but this will be implemented here #155
- Loading branch information
Showing
188 changed files
with
6,501 additions
and
8,110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.