1
0
mirror of https://github.com/bigchaindb/bigchaindb.git synced 2024-06-10 20:05:02 +02:00
Commit Graph

689 Commits

Author SHA1 Message Date
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
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
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
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
Scott Sadler
6fb48dd172 fix TransactionLink.to_uri to use Output 2016-12-19 12:29:29 +01:00
Brett Sun
02002bd5f8 Reword some transaction schema descriptions based on feedback 2016-12-19 12:29:29 +01:00
Scott Sadler
f4257030fc dont override input builtin in models.py 2016-12-19 12:29:29 +01:00
Scott Sadler
4e17fe5c3d change fulfills.idx to fulfills.output 2016-12-19 12:29:29 +01:00
Brett Sun
2f4da6a32f Extra renames and small fixes for inputs-outputs (#952)
* Fix typos pointed out in review by @ttmc

* Reword description of an input in the transaction schema

* Re-add removed comment in transaction model

* Fix small typos in some comments in the transaction model

* Add trailling commas to a multiline dict in the transaction model tests

* Fix small things with server docs changes

* Add description of public keys' association with conditions in transaction concept docs

* Reword description of Transaction.create's  and  args

* Rename output_uri to output_condition_uri

* Fix hardcoded class name vs. self.__class__

* Rename instances of 'out' with 'output'

* Rename instances of  and  with  to avoid name clash with built-in

* Remove unnecessary renaming of cryptoconditions.Fulfillment import in transaction model

* Remove instances of  in transaction model

* Remove usages of fulfillment in cases where input makes more sense

* Reword docstrings for init methods in transaction models

* Rename usages of condition where output is now a better fit

* Add descriptions to TransactionLink's txid and idx in schema

* Minor correction to output idx description in transaction yaml
2016-12-19 12:29:29 +01:00
Scott Sadler
3d495a8987 update description of TRANSFER @ttmc 2016-12-19 12:29:29 +01:00
Scott Sadler
05e8d6e28e fix documentation issue in transaction schema file 2016-12-19 12:29:29 +01:00
Scott Sadler
ed55b3984e s/fulfillments/inputs/g && s/conditions/outputs/g (code changes) 2016-12-19 12:29:29 +01:00
Scott Sadler
e2e3ecb9f4 put back owners_before and a bugfix in tx model 2016-12-19 12:29:29 +01:00
libscott
9bb8b33d72 Change 'spends' to 'fulfills' in tx model 2016-12-19 12:29:29 +01:00
Scott Sadler
26fe27e6cb spec change for inputs/outputs 2016-12-19 12:29:29 +01:00
Sylvain Bellemare
2b9a351912 Rename owner_after to public_key 2016-12-19 04:31:05 +01:00
Scott Sadler
d2827dfae8 remove asset keywords 2016-12-16 13:50:23 +01:00
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