Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
3a3048a3
Commit
3a3048a3
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Patches
Plain Diff
Fixes sql syntax error detected with mock tests. Extended mock file
parent
290d993c
No related branches found
No related tags found
2 merge requests
!456
Release candidate v1 24
,
!346
Escape characters in user names provided in follow_op
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hive/indexer/follow.py
+1
-1
1 addition, 1 deletion
hive/indexer/follow.py
mock_data/block_data/follow_op/mock_block_data_follow.json
+365
-5
365 additions, 5 deletions
mock_data/block_data/follow_op/mock_block_data_follow.json
tests/tests_api
+1
-1
1 addition, 1 deletion
tests/tests_api
with
367 additions
and
7 deletions
hive/indexer/follow.py
+
1
−
1
View file @
3a3048a3
...
...
@@ -361,7 +361,7 @@ class Follow(DbAdapterHolder):
UPDATE
hive_follows hf
SET
hf.
follow_blacklists = true
follow_blacklists = true
FROM
(
SELECT
...
...
This diff is collapsed.
Click to expand it.
mock_data/block_data/follow_op/mock_block_data_follow.json
+
365
−
5
View file @
3a3048a3
...
...
@@ -380,7 +380,26 @@
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
ignore
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4200000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
...
...
@@ -392,7 +411,26 @@
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
blacklist
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4300000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
...
...
@@ -404,7 +442,26 @@
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
follow_blacklist
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4400000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
...
...
@@ -416,7 +473,26 @@
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
unblacklist
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4500000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
...
...
@@ -428,9 +504,293 @@
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
unfollow_blacklist
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4600000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000007"
:
{
"previous"
:
"004c4b4600000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
follow_muted
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4700000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000008"
:
{
"previous"
:
"004c4b4700000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
unfollow_muted
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4800000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000009"
:
{
"previous"
:
"004c4b4800000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
reset_blacklist
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4900000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000010"
:
{
"previous"
:
"004c4b4900000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
reset_following_list
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4a00000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000011"
:
{
"previous"
:
"004c4b4a00000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
reset_follow_blacklist
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4b00000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000012"
:
{
"previous"
:
"004c4b4b00000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
reset_follow_muted_list
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4c00000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000013"
:
{
"previous"
:
"004c4b4c00000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[
{
"ref_block_num"
:
100001
,
"ref_block_prefix"
:
1
,
"expiration"
:
"2020-03-23T12:17:00"
,
"operations"
:
[
{
"type"
:
"custom_json_operation"
,
"value"
:
{
"required_auths"
:
[],
"required_posting_auths"
:
[
"tester1"
],
"id"
:
"follow"
,
"json"
:
"[
\"
follow
\"
,{
\"
follower
\"
:
\"
tester1
\"
,
\"
following
\"
:
\"
tester2
\"
,
\"
what
\"
:[
\"
reset_all_lists
\"
]}]"
}
}
]
}
],
"block_id"
:
"004c4b4d00000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000014"
:
{
"previous"
:
"004c4b4d00000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"block_id"
:
"004c4b4e00000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000015"
:
{
"previous"
:
"004c4b4e00000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"block_id"
:
"004c4b4f00000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000016"
:
{
"previous"
:
"004c4b4f00000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"block_id"
:
"004c4b5000000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
},
"5000017"
:
{
"previous"
:
"004c4b5000000000000000000000000000000000"
,
"timestamp"
:
"2016-09-15T19:47:39"
,
"witness"
:
"initminer"
,
"transaction_merkle_root"
:
"0000000000000000000000000000000000000000"
,
"extensions"
:
[],
"witness_signature"
:
""
,
"transactions"
:
[],
"block_id"
:
"004c4b5100000000000000000000000000000000"
,
"signing_key"
:
""
,
"transaction_ids"
:
[]
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests_api
@
8aac0997
Compare
c3c830a2
...
8aac0997
Subproject commit
c3c830a24079e47e59ebdd91a9670c905d6edfff
Subproject commit
8aac0997c0ad0ea62d8d3fe2a38e5f0d24951380
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment