Skip to content
Snippets Groups Projects
Commit ebc75a89 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'pmaniora_communities_fixes' into 'develop'

new mocks for community tests, list_pop_communities fix

See merge request !466
parents ba40a8ed c394ae64
No related branches found
Tags v1.24.1
2 merge requests!474v1.24.1 Release,!466new mocks for community tests, list_pop_communities fix
......@@ -20,11 +20,11 @@ BEGIN
JOIN (
SELECT community_id, COUNT(*) newsubs
FROM hive_subscriptions
WHERE created_at > NOW() - INTERVAL '1 MONTH'
WHERE created_at > head_block_time() - INTERVAL '1 MONTH'
GROUP BY community_id
) stats
ON stats.community_id = id
ORDER BY newsubs DESC
ORDER BY newsubs DESC, id DESC
LIMIT _limit;
END
$function$
......
......@@ -1290,6 +1290,124 @@
"id": "community",
"json": "[\"subscribe\",{\"community\":\"hive-104647\"}]"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "",
"parent_permlink": "",
"author": "test-creator",
"permlink": "introduce",
"title": "My introduce post",
"body": "This is my introduce post to be crossposted in hive-135485 community",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "",
"parent_permlink": "hive-135485",
"author": "test-creator",
"permlink": "introduce",
"title": "My introduce post",
"body": "This is a cross post of [@test-creator/introduce](/introduceyourself/@test-creator/introduce) by @test-creator.<br><br>crosspost test",
"json_metadata": "{\"app\":\"peakd/2021.01.3\",\"tags\":[\"cross-post\"],\"image\":[],\"original_author\":\"test-creator\",\"original_permlink\":\"introduce\"}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "",
"parent_permlink": "hive-135485",
"author": "test-creator",
"permlink": "first-post",
"title": "My first post",
"body": "This is my first post in hive-135485 community",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "",
"parent_permlink": "hive-135485",
"author": "test-creator",
"permlink": "reblogged-post",
"title": "My first post",
"body": "This is my post in hive-135485 community reblogged by test-reblog-03",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "",
"parent_permlink": "hive-135485",
"author": "test-creator",
"permlink": "muted-post",
"title": "My muted post",
"body": "This is my muted post in hive-135485 community",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "",
"parent_permlink": "hive-135485",
"author": "test-creator",
"permlink": "pinned-post",
"title": "My pinned post",
"body": "This is my pinned post in hive-135485 community",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "test-safari",
"parent_permlink": "secrets1",
"author": "test-creator",
"permlink": "re-community-135485-comment",
"title": "",
"body": "this is my comment for secret post",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "test-creator",
"parent_permlink": "re-community-135485-comment",
"author": "test-creator",
"permlink": "re-re-community-135485-comment",
"title": "",
"body": "this is my comment for comment for secret post",
"json_metadata": "{}"
}
},
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"test-safari"
],
"id": "community",
"json": "[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"muted-post\",\"notes\":\"nothing special\"}]"
}
},
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"test-safari"
],
"id": "community",
"json": "[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinned-post\"}]"
}
}
]
}
......
......@@ -1546,6 +1546,28 @@
"id": "follow",
"json": "[\"follow\",{\"follower\":\"tester5\",\"following\":[\"tester1\", \"tester2\", \"tester3\"],\"what\":[\"blog\"]}]"
}
},
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"test-follower"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"test-follower\",\"following\":\"test-creator\",\"what\":[\"blog\"]}]"
}
},
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"test-muter"
],
"id": "follow",
"json": "[\"follow\",{\"follower\":\"test-muter\",\"following\":\"test-creator\",\"what\":[\"ignore\"]}]"
}
}
]
}
......
......@@ -296,6 +296,126 @@
"extensions": []
}
},
{
"type": "account_create_operation",
"value": {
"creator": "test-safari",
"new_account_name": "test-creator",
"owner": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"active": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"posting": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"memo_key": "",
"json_metadata": "",
"extensions": []
}
},
{
"type": "account_create_operation",
"value": {
"creator": "test-safari",
"new_account_name": "test-follower",
"owner": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"active": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"posting": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"memo_key": "",
"json_metadata": "",
"extensions": []
}
},
{
"type": "account_create_operation",
"value": {
"creator": "test-safari",
"new_account_name": "test-muter",
"owner": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"active": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"posting": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [
[
"",
1
]
]
},
"memo_key": "",
"json_metadata": "",
"extensions": []
}
},
{
"type": "comment_operation",
"value": {
......@@ -543,6 +663,41 @@
"id": "reblog",
"json": "{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "test-reblog-01",
"parent_permlink": "parrot-01",
"author": "test-creator",
"permlink": "re-parrot-reblog-01",
"title": "",
"body": "comment for parrot-01",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "test-reblog-02",
"parent_permlink": "parrot-02",
"author": "test-creator",
"permlink": "re-parrot-reblog-02",
"title": "",
"body": "comment for parrot-02",
"json_metadata": "{}"
}
},
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"test-reblog-03"
],
"id": "reblog",
"json": "{\"account\":\"test-reblog-03\",\"author\":\"test-creator\",\"permlink\":\"reblogged-post\"}"
}
}
]
}
......@@ -789,6 +944,30 @@
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "test-reblog-01",
"parent_permlink": "monkey-01",
"author": "test-creator",
"permlink": "re-monkey-01",
"title": "",
"body": "this is my comment for monkey-01 post",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
"parent_author": "test-creator",
"parent_permlink": "re-monkey-01",
"author": "test-creator",
"permlink": "re-re-monkey-01",
"title": "",
"body": "this is my comment for comment for monkey-01 post",
"json_metadata": "{}"
}
},
{
"type": "comment_operation",
"value": {
......@@ -1086,6 +1265,17 @@
"id": "reblog",
"json": "{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}"
}
},
{
"type": "custom_json_operation",
"value": {
"required_auths": [],
"required_posting_auths": [
"test-reblog-05"
],
"id": "reblog",
"json": "{\"account\":\"test-reblog-05\",\"author\":\"test-creator\",\"permlink\":\"reblogged-post\"}"
}
}
]
}
......
Subproject commit bbe52409858a462d1a62112e46e40293fb74d9d5
Subproject commit e0837abc7a642f29e6b99b25abf3fe4cdc8d0358
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment