705 Commits

Author SHA1 Message Date
libscott
e08bf52fa7 Merge pull request #1018 from bigchaindb/change-tx-version
Change version in tx model to 0.9
2017-01-13 12:07:23 +01:00
Rodolphe Marques
e52cb40edb Some more tests for mongodb code (#1036)
* Some more tests for mongodb code

Cleanup connection code

* pep8 fixes
2017-01-13 10:25:45 +01:00
Rodolphe Marques
5abe6dd7ea Added tests to the mongodb changefeed (#1035)
* Added tests to the mongodb changefeed

* pep8 and typo fixes
2017-01-13 10:18:58 +01:00
libscott
ece5581eb3 Merge branch 'master' into 1021/http_api_root 2017-01-12 15:26:10 +01:00
Sylvain Bellemare
29c10e30a9 Resolves #1004 2017-01-12 04:05:59 -05:00
Dimitri De Jonghe
03d46b40f9 Merge pull request #1026 from bigchaindb/feat/api/statuses
implement statuses endpoint
2017-01-12 09:55:34 +01:00
Sylvain Bellemare
c036b1490b Inherit from BigchainDBError for common exceptions 2017-01-11 07:48:28 -05:00
Sylvain Bellemare
fdf2a85c97 Add a BigchaindDB base exception class 2017-01-11 07:48:28 -05:00
diminator
ceeba0e89a
logical xor & status flag 2017-01-11 13:45:47 +01:00
Rodolphe Marques
c91eff70e5 Feat/960/test mongodb queries (#1030)
* Created tests to mongodb queries

Small fix to queries

* cleanup pytest markers
2017-01-10 16:49:30 +01:00
diminator
322d6bde12
(fix): each import on its own line 2017-01-10 14:45:29 +01:00
diminator
15b91fea99
clean up links wrapper 2017-01-09 17:37:01 +01:00
diminator
8fa231c040
include _links in transaction status payload 2017-01-09 17:14:22 +01:00
Rodolphe Marques
c6ea345d86 Updated mongodb queries to work with new transaction model. 2017-01-09 13:49:55 +01:00
Rodolphe Marques
7f05974f0f Added a secondary index with uniqueness constraint in backlog.
Several test fixes
2017-01-09 13:25:42 +01:00
Rodolphe Marques
595f7dc701 several fixes to mongodb queries 2017-01-09 13:25:27 +01:00
diminator
7124adcd34
implement statuses endpoint 2017-01-06 15:55:07 +01:00
Scott Sadler
990d863dc7 tests for informational endpoints 2017-01-06 14:46:40 +01:00
Scott Sadler
80f3bb3809 /api/v1/ informational endpoint 2017-01-06 14:46:40 +01:00
libscott
f9ed5690a7 Merge pull request #1022 from bigchaindb/flask_routes
Collect http routes into single module
2017-01-06 13:50:56 +01:00
libscott
32930ab4d3 Remove blank line at end of file 2017-01-06 13:43:12 +01:00
Scott Sadler
1d234d3811 collect http routes into single module 2017-01-05 13:31:05 +01:00
Rodolphe Marques
8e99d18fd6 Merge pull request #994 from bigchaindb/feat/927/implement-mongodb-changefeed
[WIP] Implement mongodb changefeed
2017-01-04 17:10:46 +01:00
Rodolphe Marques
1b3c909d51 Fixed mongodb queries
Fixed some tests
2017-01-04 15:43:17 +01:00
Scott Sadler
48b90407bd change version in tx model to 0.9. The idea is that we will go with the server version until we hit 1.0 where we should be stable, then re-evaluate. 2017-01-04 15:10:15 +01:00
Rodolphe Marques
ea4d01dec0 Simplify code.
Pop the `_id` when receiving the document on the changefeed
2017-01-04 13:27:08 +01:00
Rodolphe Marques
0d11c3a7a8 simplify update transaction 2017-01-03 15:54:06 +01:00
Rodolphe Marques
3529bf9114 Fixed mongodb queries to work with pipelines.
Added some logging to the pipeline processes
2017-01-03 15:09:23 +01:00
Brett Sun
8fa3245309 Rename any *util.py to *utils.py (#991) 2016-12-22 17:39:39 +01:00
Brett Sun
438958fdea Rename builtin-in input override in commands (#988)
* Rename commands.bigchain.input to input_on_stderr to avoid confusion

* Allow input_on_stderr to not take a prompt

* Fix tests broken by renaming of commands.bigchaindb.input
2016-12-22 17:03:53 +01:00
Rodolphe Marques
0fdcff90f9 Remove uniqueness constraint of mongodb secondary indexes. 2016-12-22 15:49:20 +01:00
Rodolphe Marques
0f88776537 small fixes to the mongodb changefeed 2016-12-22 15:43:22 +01:00
Rodolphe Marques
a0952df9fb fixed mongodb queries to return genesis block and last voted block 2016-12-22 14:30:19 +01:00
Rodolphe Marques
9f738cd58d re-enable changefeed for mongodb 2016-12-22 14:18:31 +01:00
Scott Sadler
04a78aacec Merge remote-tracking branch 'origin/master' into inputs-outputs 2016-12-22 13:45:02 +01:00
Rodolphe Marques
00458cfa68 Initial implementation of the mongodb changefedd 2016-12-22 12:07:36 +01:00
Brett Sun
9319583ab4 Remove Asset and AssetLink (#982)
* Remove asset.validate_asset and move its validation checks to other areas

* Move Asset.get_asset_id to Transaction

* Remove Asset and AssetLink models

* Add test against creating TRANSFER transactions with bad asset
2016-12-22 10:19:21 +01:00
Rodolphe Marques
9c0d696b7e Better unittests
Simplify code
2016-12-21 16:52:57 +01:00
Rodolphe Marques
1dd6c748b9 Merge remote-tracking branch 'origin/master' into feat/980/initialise-replica-set-mongo 2016-12-21 15:54:02 +01:00
Rodolphe Marques
4a14c7c8f1 Initialize replica set for mongodb when running bigchaindb init 2016-12-21 15:53:25 +01:00
Sylvain Bellemare
18d5a49097 Take env var value if set for db port 2016-12-20 20:37:28 +01:00
Rodolphe Marques
83d37d699f Merge pull request #979 from bigchaindb/bug-mongodb-write-block
fix mongodb write_block
2016-12-20 19:07:15 +01:00
Rodolphe Marques
71bb63376f fix mongodb write_block without thouching mongodb code 2016-12-20 18:04:38 +01:00
libscott
7e33f2bd52 Tx ID as Asset ID (#926)
* Allow AssetLinks to be used in place of Assets in the Transaction Model and enforce `Transaction.transfer()` to only take an AssetLink

* Remove AssetLink's inheritance from Asset

* Remove id from the Asset model

* Fix get_txids_by_asset_id query for rethinkdb after removing asset's uuid

Because `CREATE` transactions don't have an asset that contains an id
anymore, one way to find all the transactions related to an asset is to
query the database twice: once for the `CREATE` transaction and another
for the `TRANSFER` transactions.

* Add TODO notice for vote test utils to be fixtures

* Update asset model documentation to reflect usage of transaction id

* Fix outdated asset description in transaction schema
2016-12-20 17:28:15 +01:00
Scott Sadler
d80de928a5 wording change in Transaction.create documentation 2016-12-20 14:15:05 +01:00
Rodolphe Marques
61cfe1b370 Merge pull request #971 from bigchaindb/feat/959/test-mongodb-schema
Created tests for mongodb schema
2016-12-20 13:56:32 +01:00
libscott
b2cb426097 Merge pull request #962 from bigchaindb/remove-asset-keywords
Remove asset keywords
2016-12-20 10:02:42 +01:00
Rodolphe Marques
050990aac1 Created tests for mongodb schema
Removed some unused secondary indexes
2016-12-19 15:45:02 +01:00
Scott Sadler
3f2966072e change creators to tx_signers in Transaction.create 2016-12-19 15:42:11 +01:00
Brett Sun
7070c39aca Fix small typo in AmountError's docstring 2016-12-19 15:38:30 +01:00