Commit graph

121 commits

Author SHA1 Message Date
Jonathan Zernik
f9197f7035
Remove uploading and downloading fields and add autoconnect field in … (#993)
* Remove uploading and downloading fields and add autoconnect field in all backend code

* Remove uploading and downloading fields and add autoconnect in frontend

* Update frontend build
2021-08-20 15:46:54 -07:00
Jonathan Zernik
deb8b1b99b
Remove sharing field profile (#990)
* Remove sharing field from all backend code

* Add db migration to remove sharing field

* Remove profile sharing field from frontend

* Update frontend build
2021-08-20 14:18:04 -07:00
Jonathan Zernik
99f3ff24c4
Add connected peers subscription (#970)
* Add connected peers subscription rpc command

* Got rpc streaming command for subscribe connected peers working
2021-08-19 19:59:14 -07:00
Jonathan Zernik
1243f9da30
Use new peer protocol with multiple addresses in getsqueaks msg (#969) 2021-08-18 00:26:32 -07:00
Jonathan Zernik
0e827b11ea
Fix parsing of paremeters from getsqueaks peer message (#968) 2021-08-17 23:35:44 -07:00
Jonathan Zernik
bf6fbc0ab7
Add download replies button (#965)
* Add download replies rpc command

* Add download replies button to squeak page

* Use reply to hash in lookup query

* Update frontend build
2021-08-17 23:00:58 -07:00
Jonathan Zernik
5243225c0b
Fix param type for connect peers (#961)
* Refactor connect save peers method

* Fix peer connection worker
2021-08-17 20:53:26 -07:00
Jonathan Zernik
6dbd769a05
Organize squeak node start (#958)
* Organize order of squeak node start

* Change order of squeak node methods

* Initialize squeak node components on start
2021-08-17 16:39:05 -07:00
Jonathan Zernik
85eb53276f
Initialize workers before starting in squeak node (#957) 2021-08-17 16:29:33 -07:00
Jonathan Zernik
9f3391a578
Remove stopped event squeak node (#956)
* Remove stopped event from squeak node class

* Removed stop parameter from web server

* Remove stop event from rpc server

* Remove old comments

* Remove more old comments
2021-08-17 16:13:32 -07:00
Jonathan Zernik
31a90a6ceb
Build entire connection string path in util function (#951)
* Build entire connection string path in util function

* Simplify loading db connection string

* Simplify initialize db in squeak node
2021-08-16 02:43:49 -07:00
Jonathan Zernik
01b81c22ec
Refactor start daemons (#950)
* Refactor daemon background workers using a common base class

* Use initialize methods for all squeak node components
2021-08-16 02:11:29 -07:00
Jonathan Zernik
4cc617a94c
Refactor network commands into network manager (#949)
* Refactor network commands into network manager

* Start and stop peer server and peer client inside network manager

* Pass handle connection fn to peer handler instead of self object

* Remove old comments
2021-08-15 22:15:42 -07:00
Jonathan Zernik
cca4e4a6c7
Disable rate limiter in squeak controller (#947) 2021-08-15 01:03:09 -07:00
Jonathan Zernik
32bb960f6a
Only download offers on click (#941)
* Only download offers for squeak when rpc method called

* Only download offers after explicit click in frontend

* Update frontend build
2021-08-14 22:14:14 -07:00
Jonathan Zernik
a15556400d
Remove unnecessary save squeak methods (#939)
* Simplify controller methods for save squeak and get squeak

* Simplify squeak check before insert and before unlock
2021-08-14 19:56:46 -07:00
Jonathan Zernik
04f4c9f5a1
Return null values in admin proto (#936)
* Use null value for non existent squeak

* Return null value in rpc for get profile when not found

* Return null value in rpc for get peer when not found

* Return null value in rpc for get profile by name when not found

* Return null value in rpc for get profile by address when not found

* Return null value in rpc for get offer and sent payment when not found
2021-08-14 18:52:17 -07:00
Jonathan Zernik
aab50fa287
Add peer address page (#927)
* Go to peer address page on connected peer item click

* Added disconnect button to peer address page

* Add get connected peer rpc method

* Add disconnect button to peer address page

* Add both connect and disconnect button to peer address page

* Update frontend build
2021-08-12 21:59:26 -07:00
Jonathan Zernik
e64289be7d
Use host port to connect peer (#926)
* Use host and port for connect_peer rpc command

* Use host and port for disconnect peer command

* Got connect peer dialog frontend working

* Add disconnect peer request frontend function

* Update frontend build
2021-08-12 19:53:25 -07:00
Jonathan Zernik
09a0838f0a
Change log level for debug line on save duplicate offer (#919) 2021-08-11 23:19:10 -07:00
Jonathan Zernik
16f23cd13b
Simplify peer client address parameter (#918) 2021-08-11 22:49:16 -07:00
Jonathan Zernik
4821fa737b
Remove log lines debug peer (#917)
* Remove log line in peer

* Clean up more log lines
2021-08-11 21:48:41 -07:00
Jonathan Zernik
87979663f5
Fix order of starting workers after peer server/client (#916) 2021-08-11 21:03:30 -07:00
Jonathan Zernik
e8d7079f52
Improve connect peers from db peer entries (#915) 2021-08-11 20:53:21 -07:00
Jonathan Zernik
5e1425cfc5
Simplify peer (#913)
* Use context manager for peer thread setup

* Got itest working with consolidated peer class

* Delete connection class

* Add and remove peer from connection manager in handler class

* Remove connection manager from peer class

* Refactor disconnect peer command

* Remove connection manager from peer client and peer server
2021-08-11 20:02:06 -07:00
Jonathan Zernik
e127297f16
Use hostname for peer connection without ip lookup (#911)
* Use hostname for peer connection without ip lookup

* Remove old network manager class
2021-08-11 14:17:00 -07:00
Jonathan Zernik
af38acb229
Shut down peer connection threads on shutdown (#907) 2021-08-10 22:50:14 -07:00
Jonathan Zernik
78b7f9a7f1
Fix default port for create peer command (#905) 2021-08-10 21:29:24 -07:00
Jonathan Zernik
fef9625592
Got itest working (#904) 2021-08-10 20:57:59 -07:00
Jonathan Zernik
36d89bd25e
Fix peer server thread shutdown (#903) 2021-08-10 18:48:00 -07:00
Jonathan Zernik
7d266cdf5e
Split peer server client (#901)
* Split peer server and peer client

* Got itest passing

* Catch exception when closing peer socket

* Reconfigure all itests to run
2021-08-10 02:16:46 -07:00
Jonathan Zernik
f652915355
Use tcp peer connection (#900)
* Got basic tcp connection working

* Got passing itest for open tcp connection

* Got most of protocol working. still need to send offer correctly

* Got offer from peer over tcp connectrion

* Got single squeak download working on tcp connection

* Remove rpc peer client

* Remove old rpc clients

* Remove old squeak client modules

* Got sharesqueaks peer message working

* Remove peer rpc server

* Remove server rpc fixtures

* Remove old itests

* Remove old sync modules

* Run worker background task to keep peers synced

* Add peer connection worker

* Add test for disconnect peer

* Remove old itest util

* Delete old peer rpc client helpers.

* Handle insert duplicate received offer

* Use more specific exception handling for duplicate offer insert
2021-07-09 21:07:46 -07:00
Jonathan Zernik
d78ddfc8c1
Remove log lines for debugging delete old squeaks (#898) 2021-06-05 00:14:31 -07:00
Jonathan Zernik
b935785469
Use timestamp for like field (#896)
* Use a timestamp for like field in database

* Use query to get liked squeaks in order of like
2021-06-04 18:28:42 -07:00
Jonathan Zernik
ad36244587
Remove interested option, use download criteria (#893) 2021-06-02 00:36:07 -07:00
Jonathan Zernik
1a35af505b
Simplify download protocol (#889)
* Simplify download protocol in peer connection

* Simplify download method more in peer connections

* Simplify download squeak helper method
2021-02-26 15:14:27 -05:00
Jonathan Zernik
b7658932a9
Use query instead of iteration to get saved received offer (#881) 2021-02-22 21:40:44 -08:00
Jonathan Zernik
bfbb4ba335
Only delete squeaks that are not liked (#880) 2021-02-22 20:54:32 -08:00
Jonathan Zernik
c4477a9168
Add liked page (#879)
* Add query filter for getting only liked squeak displays

* Got liked page working

* Fix showing action bar for squeak page with null squeak
2021-02-22 20:17:45 -08:00
Jonathan Zernik
6a71bf5129
Add liked column (#878)
* Add liked column to squeak table

* Add rpc methods for like and unlike

* Fix migration to add liked column

* Got like squeak working

* Set squeak liked without reloading page

* Download squeak button reloads squeak without reloading page

* Use inconbutton for actions in squeak detail component

* Update static build
2021-02-22 18:54:20 -08:00
Jonathan Zernik
693bd782cc
Yield squeaks to delete query result (#877)
* Use yield for squeaks to delete query result

* Fix calling yield old squeaks method
2021-02-22 15:00:35 -08:00
Jonathan Zernik
26903592dd
Use config for offer deletion interval (#876) 2021-02-22 12:57:16 -08:00
Jonathan Zernik
2c42166bec
Add delete old squeak db method (#875)
* Add squeak deletion worker

* Fix method name for delete old squeaks

* Got squeak deletion worker working
2021-02-22 12:40:45 -08:00
Jonathan Zernik
cc55f8da2f
Delete verbose info level logs for delete expired offers (#870) 2021-02-21 20:38:53 -08:00
Jonathan Zernik
29ee9ab14b
Add config for payment processor subscribe invoices retry tyime (#869) 2021-02-21 20:20:12 -08:00
Jonathan Zernik
a93025a026
Save host and port of buyer client (#868)
* Save host and port of buyer client

* Show buyer port in frontend for received payments
2021-02-21 20:01:02 -08:00
Jonathan Zernik
c77bc943e8
Use host and port to identify peer in received offer and sent payment (#866) 2021-02-21 15:29:00 -08:00
Jonathan Zernik
f111aabd98
Use configurable retention for sent offer deletion (#865) 2021-02-21 13:05:22 -08:00
Jonathan Zernik
5b37fcb6f1
Only show received offers that are not paid (#864) 2021-02-21 11:34:16 -08:00
Jonathan Zernik
ce72374bfa
Add paid column offers (#862)
* Added paid column to sent offer and received offer tables

* Add paid column to offers tables

* Fix db query clause functions
2021-02-21 10:36:02 -08:00