Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: events, push notifications and activities #302

Merged
merged 145 commits into from
Sep 9, 2022
Merged
Changes from 1 commit
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
9722326
Using network id instead of string for getting pocketnet developers
lostystyg Apr 18, 2022
c0e9504
Method to get
lostystyg Apr 18, 2022
af71bdf
Base events logic
lostystyg Apr 25, 2022
dbea23e
Merge remote-tracking branch 'origin/0.21.todo' into feature/events
lostystyg Apr 25, 2022
3d8e46b
Do not check for last for boost events
lostystyg Apr 25, 2022
7a51e15
Better indexing content from private subscribers event
lostystyg Apr 25, 2022
192ad0c
Events optimization
lostystyg Apr 29, 2022
7f3d953
Fixed events rpc description
lostystyg Apr 29, 2022
2600f31
Sorting events by height outside of sqlite
lostystyg Apr 30, 2022
3deae2e
FIlters, height and blocknum for events request
lostystyg May 4, 2022
244a198
Fixed filtering for events
lostystyg May 4, 2022
19591f2
Updated events
lostystyg May 5, 2022
d77c6b6
Fixed filtering for events
lostystyg May 6, 2022
086a1fa
Fixed binding for events
lostystyg May 6, 2022
1ae34c2
privatecontent for events
lostystyg May 6, 2022
b7ec0f7
constant depth for events
lostystyg May 6, 2022
4030e74
Events for single address
lostystyg May 6, 2022
8d23c2e
Updated args description for getevents
lostystyg May 6, 2022
78681c8
Forgotten finalizing stmt
lostystyg May 6, 2022
0b2aca0
Raw sql query to get all events at height for each account
lostystyg May 30, 2022
dfd80a5
Added short forms
lostystyg May 30, 2022
03c0bd4
ShortTxType for short forms
lostystyg May 30, 2022
b8f1308
Updated short forms
lostystyg Jun 2, 2022
7127a3e
Short forms for events
lostystyg Jun 2, 2022
423d4f9
Merge remote-tracking branch 'origin/0.21' into feature/events
lostystyg Jun 2, 2022
aff9e13
Events fixes
lostystyg Jun 6, 2022
0421fbf
Optimizing event queries
lostystyg Jun 6, 2022
367fa1a
Formatting
andyoknen Apr 22, 2022
0c3319a
Downgrade likers count for testnet
andyoknen May 23, 2022
134f309
Throwing in case of event reconstructor error
lostystyg Jun 6, 2022
c97d7f5
Fixed description for scores events
lostystyg Jun 6, 2022
af47ba0
Fix comment answers sql index
andyoknen Jun 10, 2022
a62fd17
Fixed select ordering in events
boommyop Jun 10, 2022
011f94f
Fix sql typo
andyoknen Jun 10, 2022
7805b8e
Sql fixes
andyoknen Jun 10, 2022
6d09852
comment
andyoknen Jun 10, 2022
1b5a496
Add height limit for answer comments
andyoknen Jun 10, 2022
775c8d4
index comment answer
andyoknen Jun 10, 2022
e4f3666
Comment answer events fulfilled with data
boommyop Jun 10, 2022
7b2c630
Events queries formatting
boommyop Jun 10, 2022
337c1ef
Disabled hight border in related content for events
boommyop Jun 10, 2022
576fed8
Fixed events height
boommyop Jun 10, 2022
854e6f5
Donate value for comment event
boommyop Jun 10, 2022
156ed36
Answer fixes for events
boommyop Jun 10, 2022
3207e0f
Merge branch '0.21' into feature/events
lostystyg Jun 13, 2022
78eb615
Merge branch '0.21' into feature/events
lostystyg Jun 23, 2022
5c9755a
Some minor fixes
lostystyg Jun 24, 2022
21b3c71
Merge branch '0.21' into feature/events
lostystyg Jun 27, 2022
8090d0e
Merge branch 'minor_fixes' into feature/events
lostystyg Jun 27, 2022
f862108
Merge branch '0.21' into feature/events
lostystyg Jun 27, 2022
b8f37cb
Merge remote-tracking branch 'origin/0.21' into feature/events
lostystyg Jun 28, 2022
b9f3b6a
Restructured events
lostystyg Jun 29, 2022
061a7ab
A bit generalization in processing filters for events
lostystyg Jun 29, 2022
9c8a9b3
Fixed ShortAccount
lostystyg Jul 1, 2022
16a3455
Notifications
lostystyg Jul 1, 2022
ef32565
Merge branch '0.21' into feature/events
lostystyg Jul 1, 2022
b227a1c
Extracted common bind for notifications
lostystyg Jul 4, 2022
6828322
Money notification
lostystyg Jul 4, 2022
a665883
Merge branch '0.21' into feature/events
lostystyg Jul 5, 2022
5e1740f
Updated getevents rpc description
lostystyg Jul 5, 2022
60e0489
Updated getnotifications rpc description
lostystyg Jul 5, 2022
1576c8d
Only orig entries for notifications + some optimizations
lostystyg Jul 6, 2022
071f6ed
Ignore badge fort short account
lostystyg Jul 6, 2022
d560b5a
Fixed acc's rep for getevents
lostystyg Jul 6, 2022
3665c80
Renamed notifications rpc
lostystyg Jul 8, 2022
f3a2026
Base activities rpc request
lostystyg Jul 8, 2022
638c874
Fixed answers request for activities
lostystyg Jul 8, 2022
b5d0c40
Added comments for activities
lostystyg Jul 8, 2022
0a936ad
Subscriber activity
lostystyg Jul 8, 2022
d3c243d
Comment score activity
lostystyg Jul 8, 2022
5bb78a6
Updated activities query
lostystyg Jul 12, 2022
5d7e566
Inner join instead of cross for activities and events
lostystyg Jul 12, 2022
aaac24a
Fixed content description for contentscore in activities
lostystyg Jul 13, 2022
848abca
Fixed typo in contentscore for activities
lostystyg Jul 13, 2022
39b478d
Ignoring empty avatar for short form account
lostystyg Jul 13, 2022
5e8b806
Fixed var name for events contentscore
lostystyg Jul 13, 2022
5c26124
Moved pocketnetteam posts for notifications to a specific key in answer
lostystyg Jul 15, 2022
427d320
Fixed reposts for notifications
lostystyg Jul 15, 2022
e3f474b
Added optional related content (in case of reposts) for pocketnetteam…
lostystyg Jul 15, 2022
1d0d17e
getnotification better todos and fixed index
lostystyg Jul 18, 2022
814a958
Fix incoming money
andyoknen Jul 18, 2022
8c423e4
Optimize reposts query
andyoknen Jul 18, 2022
dadabe0
Fix private content from subscribers (not reposts)
andyoknen Jul 18, 2022
e265c7f
Optimize reposts
andyoknen Jul 18, 2022
c137b10
Fixed binds for notifications
lostystyg Jul 18, 2022
91d8529
Optimizing pocketnetteam notifications
lostystyg Jul 18, 2022
c01a274
Optimizing activity queries
lostystyg Jul 19, 2022
7e865aa
Fixed subscriber in activities
lostystyg Jul 20, 2022
f782b68
Fixed repost queries for activities and events
lostystyg Jul 20, 2022
fabcc4e
Inner join instead of cross for repost in activities
lostystyg Jul 20, 2022
86e5df5
Full comment text in description for events and activities
lostystyg Jul 20, 2022
d60cfd3
A bit cosmetics for events
lostystyg Jul 20, 2022
eb5c9e6
Merge branch '0.21' into feature/events
lostystyg Jul 22, 2022
9845755
Orig height for activities
lostystyg Jul 22, 2022
67febbe
Fixed referals for events
lostystyg Jul 22, 2022
a433e3a
Removed orig height from activities because it breaks pagination
lostystyg Aug 8, 2022
fa8543b
Merge branch '0.21' into feature/events
lostystyg Aug 10, 2022
3ae1ff8
Fixed address positioning in sql query for activities in ContentScore…
lostystyg Aug 10, 2022
1b256cd
Explicitly set index for account joins in activities
lostystyg Aug 11, 2022
3339a73
Removed unnecessary todos
lostystyg Aug 11, 2022
5365be1
Correct ordering by original txs in activities
lostystyg Aug 11, 2022
3a49aa5
Merge remote-tracking branch 'origin/0.21' into feature/events
lostystyg Aug 11, 2022
c26ddf0
Merge remote-tracking branch 'origin/0.21' into feature/events
lostystyg Aug 12, 2022
29164ac
Fixed help for getnotifications
lostystyg Aug 15, 2022
46edf27
Notifications summary
lostystyg Aug 17, 2022
fcf526c
Merge remote-tracking branch 'origin/fixes/multiplelocks' into featur…
lostystyg Aug 19, 2022
1d371a0
Allow to specify union separator
lostystyg Aug 20, 2022
f1be170
Optimization and fixed for notifications summary queries
lostystyg Aug 20, 2022
35375ed
Validating filters for getnotificationssummary
lostystyg Aug 20, 2022
6057f91
Removed commented out queries for notifications
lostystyg Aug 20, 2022
99c1108
Fixed typo in query
lostystyg Aug 20, 2022
9c7438f
Merge remote-tracking branch 'origin/0.21' into feature/events
lostystyg Aug 22, 2022
5732263
Removed todo for money in activities
lostystyg Aug 22, 2022
876e7b5
Fixed crash if non-valid filters are specified for notifications/acti…
lostystyg Aug 24, 2022
fcb2fed
Removed pocketnetteam from events and activities
lostystyg Aug 24, 2022
ac03dcb
Validate filters for activities on rpc level
lostystyg Aug 24, 2022
e4c102c
Validate filters for events on rpc level
lostystyg Aug 24, 2022
b5631e7
Merge remote-tracking branch 'origin/0.21' into feature/events
lostystyg Aug 24, 2022
8848937
Removed reposts from activities
lostystyg Aug 24, 2022
e291315
Removed not up to date todo
lostystyg Aug 25, 2022
077f0f2
Added blocking shorttype
lostystyg Aug 25, 2022
f6fa4a4
Full history for notifications
lostystyg Aug 30, 2022
328a3ec
Added root tx hash to shortform
lostystyg Aug 30, 2022
cf5021c
Collect roottxhash in activity queries
lostystyg Aug 30, 2022
cabb060
All action history for comments and answers in activities
lostystyg Aug 30, 2022
736748f
Some todo's
lostystyg Aug 30, 2022
c29ab12
Removed unnecessary todo
lostystyg Aug 30, 2022
c23e94c
Added optional multiple addresses to shortform
lostystyg Aug 31, 2022
6d8148d
Added blockings for notifications
lostystyg Sep 1, 2022
f8924a6
Ported notifications from 0.20-based dropped branch
lostystyg Sep 1, 2022
66e9054
Removed trash from badge field in notification queries
lostystyg Sep 1, 2022
2b3a016
Removed trash from badge in activities
lostystyg Sep 1, 2022
8ef4a5b
Merge remote-tracking branch 'origin/0.21' into feature/events
lostystyg Sep 1, 2022
77f9e87
Order outputs by number for activities and notifications
lostystyg Sep 2, 2022
2453407
Reuse height binder in notifications for money
lostystyg Sep 5, 2022
88ed33a
Removed number from outputs in activities and notifications
lostystyg Sep 5, 2022
57f275e
Cosmetics for blocking query in activities
lostystyg Sep 5, 2022
5b04354
Removed outdated comment
lostystyg Sep 5, 2022
710886c
Correctly filling notifications answer
lostystyg Sep 8, 2022
1344fe5
Language for short account
lostystyg Sep 8, 2022
24e63f4
Filling notification result with account info
lostystyg Sep 8, 2022
32b0e15
Optimized notifications collecting
lostystyg Sep 8, 2022
bbd0574
Merge remote-tracking branch 'origin/0.21' into feature/events
lostystyg Sep 8, 2022
314c1a8
Temporarily disable getevents rpc
lostystyg Sep 8, 2022
b6b9f45
Fix new line
lostystyg Sep 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed events rpc description
  • Loading branch information
lostystyg committed Apr 29, 2022
commit 7f3d953ecb6c01fdf2e5fb6f1cf2d8cc424098a7
8 changes: 4 additions & 4 deletions src/pocketdb/web/PocketContentRpc.cpp
Original file line number Diff line number Diff line change
@@ -943,8 +943,8 @@ namespace PocketWeb::PocketWebRpc

RPCHelpMan GetEvents()
{
return RPCHelpMan{"GetContentActions",
"\nGet profiles that performed actions(score/boos/donate) on content.\n",
return RPCHelpMan{"GetEvents",
"\nGet all events for entire chain assotiated with addresses.\n",
{
// TODO (rpc): provide args description
},
@@ -953,8 +953,8 @@ namespace PocketWeb::PocketWebRpc
},
RPCExamples{
// TODO (rpc)
HelpExampleCli("GetRandomPost", "") +
HelpExampleRpc("GetRandomPost", "")
HelpExampleCli("getevents", "") +
HelpExampleRpc("getevents", "")
},
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
{