642 Commits

Author SHA1 Message Date
Rodolphe Marques
72ca5e9dde fixed some pep8 issues 2016-12-16 13:06:16 +01:00
Rodolphe Marques
c1a5d5e86f Merge remote-tracking branch 'origin/master' into docker-mongo 2016-12-16 12:54:42 +01:00
ryan
dcba5421f1 schema fixes 2016-12-16 12:19:10 +01:00
ryan
243c739d2b config changes 2016-12-16 12:18:41 +01:00
Sylvain Bellemare
3922b2d4fa Fix unspents endpoint 2016-12-15 17:17:18 +01:00
tim
09cbba8886 Notes, TODOs and formating 2016-12-15 17:17:18 +01:00
tim
8e8bc90742 Add unspents endpoint 2016-12-15 17:17:18 +01:00
tim
f78c90ada8 Add to_uri for TransactionLink 2016-12-15 17:17:18 +01:00
Rodolphe Marques
3cfe8cb160 fixed typo 2016-12-14 13:28:37 +01:00
Rodolphe Marques
14a2c13a06 Removed get_old_transactions
Fixed tests.
2016-12-14 13:12:47 +01:00
Rodolphe Marques
976a3e8254 Merge remote-tracking branch 'origin/master' into feat/905/abstract-db-changefeed 2016-12-14 12:43:47 +01:00
Ryan Henderson
f725279a51 remove old tx recovery on block process start (#903) 2016-12-14 12:33:47 +01:00
Rodolphe Marques
530681c905 Re-added the get_changefeed methos in the pipelines.
Fixed tests.
Fixed typos.
2016-12-13 15:11:25 +01:00
Rodolphe Marques
d246a1498f Added some tests for changefeed generics
pepify import
googlify docstring
2016-12-13 12:46:52 +01:00
Sylvain Bellemare
5d0c7fabf9 Add a bit of logging 2016-12-13 11:59:57 +01:00
Sylvain Bellemare
a902f895fa Update function names to match the generic ones 2016-12-13 11:59:57 +01:00
Sylvain Bellemare
bd886553d4 Add missing blank line 2016-12-13 11:59:57 +01:00
Sylvain Bellemare
14d5564349 Fix some problem with class attribute and property 2016-12-13 11:59:57 +01:00
Sylvain Bellemare
1f996c1746 Import ConnectionFailure exception 2016-12-13 11:59:57 +01:00
Sylvain Bellemare
d3d42747b7 Add mongodb backend 2016-12-13 11:59:57 +01:00
Sylvain Bellemare
11d0f4bff5 Import modules of registered (dispatch) functions 2016-12-13 11:59:57 +01:00
ryan
f9285fdb29 add schema 2016-12-13 11:59:57 +01:00
ryan
f3cc167edb refactor 2016-12-13 11:59:57 +01:00
ryan
ca94574150 more queries 2016-12-13 11:59:57 +01:00
ryan
2152c245ff more mongocalls 2016-12-13 11:59:57 +01:00
ryan
4877f5b03a more mongocalls 2016-12-13 11:59:57 +01:00
ryan
eb18d576e9 more mongocalls 2016-12-13 11:59:57 +01:00
ryan
aa08227740 add some mongodb setup 2016-12-13 11:59:57 +01:00
Sylvain Bellemare
caeea09d33 Put std lib import at the top 2016-12-13 11:50:04 +01:00
Rodolphe Marques
007b574eb8 fixed missing import 2016-12-13 11:27:29 +01:00
Rodolphe Marques
e303e355db Delete outdated pipelines/utils.py
Reorganized and fixed tests.
2016-12-13 11:17:24 +01:00
Rodolphe Marques
134f9e85a0 Updated vote pipeline to use the changefeed abstraction
Fixed tests.
2016-12-13 11:16:37 +01:00
Rodolphe Marques
f09285d32f Fixed some code typos
Changed election pipeline to use the new changefeed abstraction
2016-12-13 11:16:29 +01:00
Rodolphe Marques
8266dfadb0 Fixed typos
Fixed failing test
2016-12-13 11:15:49 +01:00
Rodolphe Marques
dbf53c80e7 Removed rethinkdb dependencies in pipelines.block 2016-12-13 11:15:26 +01:00
Rodolphe Marques
341f43267a Initial implementation of the changefeed abstraction 2016-12-13 11:14:25 +01:00
Sylvain Bellemare
b2c6474d35 Parametrize backend config 2016-12-13 10:22:39 +01:00
Sylvain Bellemare
8a68e24e69 Abstract db layer cherrypick docs (#932)
* Add README.md to tests/ to describe test structure and pytest customizations

* Add package-level docstrings to backends

* Add README.md explaining the backend architecture

* Small improvements to docstrings in backend modules

* Restructure the backend automodule docs

* Add more docstrings to backend connections

* Add init to base backend Connection class to document expected interface

* Reword the backend/README.md docs
2016-12-12 18:28:43 +01:00
Sylvain Bellemare
24a701096d Filter out block id 2016-12-12 17:38:41 +01:00
Brett Sun
5f9c0f7b1b Fix docstring rst errors in the backend modules 2016-12-12 16:07:41 +01:00
Brett Sun
345fc27a39 Remove durability from all database-related calls 2016-12-12 16:07:41 +01:00
Sylvain Bellemare
b9cfc5d9a2 Sync up with master 2016-12-12 15:53:56 +01:00
vrde
2a820b46f3 Add connection Class 2016-12-12 15:53:56 +01:00
vrde
6814b06c7b Add db connection info to logging 2016-12-12 15:53:56 +01:00
vrde
a634aea5a7 Add logging statement 2016-12-12 15:53:56 +01:00
Brett Sun
b51a59e503 Use as the argument name for for clarity 2016-12-12 15:53:56 +01:00
Brett Sun
ad65e86131 Rename to in schema function arguments to for consistency 2016-12-12 15:53:56 +01:00
Brett Sun
3555b7ef94 Add argument to allow an existing connection to be reused when initializing the database 2016-12-12 15:53:56 +01:00
Brett Sun
27eaae01a7 Fix base connection's run query interface 2016-12-12 15:53:56 +01:00
Brett Sun
32b6c50d63 Fix usage of backend functions that weren't getting a connection passed in 2016-12-12 15:48:48 +01:00