Commit graph

397 commits

Author SHA1 Message Date
Izalia Mae 26c5c05320 create get_resource method 2024-02-22 17:54:15 -05:00
Izalia Mae 097a53a539 ensure cache is setup 2024-02-22 13:44:58 -05:00
Izalia Mae 61014f791d re-add windows support 2024-02-22 13:28:41 -05:00
Izalia Mae 001aa87667 replace gunicorn with push worker processes 2024-02-22 11:54:09 -05:00
Izalia Mae a2ae1bdd21 return correct types for api 2024-02-20 19:22:18 -05:00
Izalia Mae e83f7e91af Merge branch 'replace_tinysql' into 'master'
Replace tinysql

See merge request pleroma/relay!56
2024-02-21 00:00:21 +00:00
Izalia Mae 93797b639e Replace tinysql 2024-02-21 00:00:21 +00:00
Izalia Mae 29732824ac include views submodule in setup.cfg 2024-02-18 22:21:06 -05:00
Izalia Mae e156f3e532 remove unnecessary arguemnt for HttpClient.post in cli_inbox_follow 2024-02-18 11:52:16 -05:00
Izalia Mae 3391749800 use main branch of tinysql 2024-02-18 09:01:26 -05:00
Izalia Mae 091a36a3d8 fix linter warnings 2024-02-18 08:13:52 -05:00
Izalia Mae c704c1e72c version bump to 0.2.6 2024-02-18 08:08:46 -05:00
Izalia Mae be2c5b144a update docs 2024-02-18 08:02:43 -05:00
Izalia Mae 38ea8b390e ensure int config values are above 0 2024-02-18 08:02:29 -05:00
Izalia Mae 1eb93ab71a fix running via pyinstaller bin 2024-02-16 21:05:12 -05:00
Izalia Mae c3b4d9ca98 add swagger api docs 2024-02-16 20:25:50 -05:00
Izalia Mae af1caaf7c9 remove status code from json error message 2024-02-16 10:42:22 -05:00
Izalia Mae afad948f85 de-uwu api message 2024-02-16 10:39:58 -05:00
Izalia Mae 8f8f38cc4c add thread for cache cleanup 2024-02-15 22:49:55 -05:00
Izalia Mae aca34825b1 remove unused imports 2024-02-15 22:05:22 -05:00
Izalia Mae 8c85f23c86 cache changes
* add `delete_old`, `clear`, and `close` methods to Cache
* user iterator in `get_keys` and `get_namespace` of RedisCache
2024-02-15 21:57:19 -05:00
Izalia Mae 6f3a1db17d ensure cache, database, and http client are closed on quit 2024-02-15 21:53:46 -05:00
Izalia Mae b259f2d760 prevent sqlite database from locking up 2024-02-15 20:26:33 -05:00
Izalia Mae b86159c7ae prevent past unfollows from removing an instance 2024-02-14 15:33:01 -05:00
Izalia Mae 70617fbdf6 start a transaction when runing processors 2024-02-14 15:31:06 -05:00
Izalia Mae 6b6337a333 Merge branch 'public-api' into 'master'
Add API endpoints for relay management

See merge request pleroma/relay!55
2024-02-14 20:29:30 +00:00
Izalia Mae 097f3bc896 Add API endpoints for relay management 2024-02-14 20:29:30 +00:00
Izalia Mae b8e0641733 Merge branch 'cache' into 'master'
caching

See merge request pleroma/relay!54
2024-02-05 18:34:43 +00:00
Izalia Mae bec5d5f207 use gunicorn to start the server 2024-02-05 13:15:08 -05:00
Izalia Mae 02ac1fa53b make sure db connection for request is open 2024-02-04 05:17:51 -05:00
Izalia Mae 2fcaea85ae create a new database connection for each request 2024-02-04 04:53:39 -05:00
Izalia Mae e6f30ddf64 update tinysql to 0.2.4 2024-02-04 04:41:04 -05:00
Izalia Mae 64690a5c05 create new Database object for SqlCache 2024-02-04 04:40:51 -05:00
Izalia Mae 46413be2af make sure Item.updated is a datetime object if it isn't one already 2024-02-03 05:40:57 -05:00
Izalia Mae 3d81e5ef68 pass instance row to HttpClient.post 2024-02-01 21:40:27 -05:00
Izalia Mae 1668d96485 add setup questions for redis 2024-02-01 21:37:46 -05:00
Izalia Mae 4c4dd3566b cache fixes
* make sure Item.updated is a datetime object
* remove id column when creating Item objects in SqlCache
2024-02-01 11:43:17 -05:00
Izalia Mae 2d641ea183 add database and redis caching 2024-01-31 21:23:45 -05:00
Izalia Mae f2baf7f9f9 update tinysql to 0.2.3 (fixes postgres support) 2024-01-30 07:34:49 -05:00
Izalia Mae 116a04ce4d allow empty password for database setup 2024-01-29 19:55:02 -05:00
Izalia Mae 6ab6343ae7 fix ImportError on python 3.8 2024-01-29 04:26:54 -05:00
Izalia Mae 81215a83a4 Merge branch 'sql' into 'master'
switch database backend to sql

See merge request pleroma/relay!53
2024-01-27 06:08:59 +00:00
Izalia Mae ed9d423ca3 update tinysql and set min/max db connections per thread 2024-01-27 00:59:08 -05:00
Izalia Mae b59ead5d05 fix handle_follow and handle_undo 2024-01-24 19:55:11 -05:00
Izalia Mae b8aae4c1bb use correct url when fetching inbox data 2024-01-24 19:28:15 -05:00
Izalia Mae 85a4797e68 make sure bool(Response) returns True 2024-01-24 19:24:27 -05:00
Izalia Mae c2aa8c48bb ignore thread warnings in the sqlite backend for now 2024-01-24 19:20:27 -05:00
Izalia Mae 815053c06f fix the convert command 2024-01-24 01:20:23 -05:00
Izalia Mae e66be009a6 use the right name for the domain_bans table 2024-01-24 01:20:00 -05:00
Izalia Mae 09e7a8f404 update docs for new commands and config file 2024-01-24 00:48:15 -05:00