Commit graph

1944 commits

Author SHA1 Message Date
P. Reis
92aaca0d91 feat: create languageSchema 2024-09-25 16:51:23 -03:00
Alex Gleason
350671db47
DittoPglite: prevent starting PGlite instances in worker threads 2024-09-25 14:31:28 -05:00
Alex Gleason
606aeb3236
test: drop postgres tables dynamically 2024-09-25 13:13:58 -05:00
P. Reis
dac11a9055 feat: filter global and local feed by language
add a 'language' field in publicQuerySchema
2024-09-25 13:56:14 -03:00
Alex Gleason
f44b9267ad
Remove unused utils/ipfs.ts 2024-09-25 09:47:51 -05:00
Alex Gleason
3ff3ba81b7 Merge branch 'zap-notification-streaming' into 'main'
feat: zap notification in streaming

Closes #204

See merge request soapbox-pub/ditto!490
2024-09-24 22:50:35 +00:00
Alex Gleason
9f02215c04
Rethrow the error 2024-09-24 16:20:42 -05:00
Alex Gleason
3469374d8e
pipeline: insert event even if stats fail 2024-09-24 16:15:26 -05:00
P. Reis
b81ae3f043 Merge branch 'main' into zap-notification-streaming 2024-09-24 18:12:28 -03:00
Alex Gleason
d72ec843cf
Add relay connections metrics 2024-09-23 22:28:01 -05:00
Alex Gleason
fc73cb2961
Upgrade Nostrify 2024-09-23 22:16:03 -05:00
Alex Gleason
6a8b22d018
metrics: improve fetch response metrics 2024-09-23 21:29:50 -05:00
Alex Gleason
fe7a8aa8a7
Merge remote-tracking branch 'origin/main' into policy-signal 2024-09-23 18:06:11 -05:00
Alex Gleason
6d0611dafe
Pass signal into policy 2024-09-23 18:04:12 -05:00
P. Reis
42371bcc31 fix: catch updateStats() function 2024-09-23 17:47:55 -03:00
P. Reis
92d8f9b8c2 refactor(pipeline.ts): use correct Stickynotes, and not legacy Debug 2024-09-23 15:36:05 -03:00
P. Reis
60ebff45d5 refactor: use correct Stickynotes, and not legacy Debug 2024-09-23 15:33:14 -03:00
P. Reis
1a1adc1654 feat: add ditto:relay in /relay - sticky notes 2024-09-23 14:47:17 -03:00
Alex Gleason
8267916466
Add back pipeline test 2024-09-22 18:01:07 -05:00
Alex Gleason
ebce4a8b1d
Fix a few more type errors, whoops 2024-09-22 17:46:21 -05:00
Alex Gleason
cd66234af7
Ugrade to Deno 2.0 2024-09-22 17:35:04 -05:00
Alex Gleason
6745e96c64
SimpleLRU: fix repeated calls fetching 2024-09-22 16:06:10 -05:00
Alex Gleason
c4391ccd99
pipeline: fix events not being pushed through streaming API
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/206
2024-09-22 11:49:37 -05:00
Alex Gleason
195cf9f44e
metrics: add messages sent and received by streaming API 2024-09-21 21:44:24 -05:00
Alex Gleason
fc7228e183
Streaming metrics 2024-09-21 21:40:52 -05:00
Alex Gleason
5a0a2087e5
relay: fix connection metrics 2024-09-21 14:48:50 -05:00
Alex Gleason
454b362825
deno lint 2024-09-20 13:24:33 -05:00
Alex Gleason
807bc78472
Let caches be configurable 2024-09-20 13:22:45 -05:00
Alex Gleason
099fec6e31
Increase nip05 cache to 3000, link previews to 1000 2024-09-20 13:13:26 -05:00
Alex Gleason
58bf286ce0
Add cache metrics 2024-09-20 12:34:54 -05:00
Alex Gleason
084e3c8341
note: test that mentions with commas get parsed correctly 2024-09-20 11:46:14 -05:00
Alex Gleason
f0c8096498
stats64: delete invalid rows first 2024-09-20 10:07:50 -05:00
Alex Gleason
2b2cdca282
Use char(64) for stats primary keys 2024-09-20 09:58:46 -05:00
Alex Gleason
c582b1c520
author_stats: add index on followers_count 2024-09-20 09:16:09 -05:00
Alex Gleason
ab727c3940 Merge branch 'move-author-search-to-author-stats' into 'main'
Order search by followers count & Move author search to author stats

Closes #140

See merge request soapbox-pub/ditto!500
2024-09-20 13:57:31 +00:00
P. Reis
b13e924001 fix: build search and also return it in countAuthorStats() function 2024-09-20 10:25:47 -03:00
P. Reis
578f269a65 refactor: countAuthorStats() function does not return search 2024-09-20 09:55:25 -03:00
Alex Gleason
5dca8d4950
pipeline: let ditto admin skip the policy 2024-09-19 21:57:59 -05:00
Alex Gleason
b53c6dab62
Add FIREHOSE_KINDS variable 2024-09-19 21:51:48 -05:00
P. Reis
ebeb150463 refactor: use search in author_stats 2024-09-19 19:37:13 -03:00
P. Reis
1b6e9160ec test: update to use author_stats table 2024-09-19 19:36:44 -03:00
P. Reis
2727523540 feat: order search by followers count also 2024-09-19 19:36:13 -03:00
P. Reis
f063da1b86 refactor: add search field to AuthorStatsRow, remove AuthorSearch interface 2024-09-19 19:35:38 -03:00
P. Reis
017c17c8a2 refactor: remove author_search table, put search in author_stats 2024-09-19 19:35:05 -03:00
P. Reis
2f27e22b4c test(getPubkeysBySearch): change search query 2024-09-19 10:15:41 -03:00
P. Reis
148e714863 fix(pg_trgm): use <% instead of % 2024-09-19 10:07:04 -03:00
P. Reis
aa07809e3f Merge branch 'main' into zap-notification-streaming 2024-09-18 18:32:35 -03:00
Alex Gleason
5ecf016cb9
EventsDB: fix domain search performance (also allow searching by multiple languages/domains) 2024-09-18 13:42:43 -05:00
Alex Gleason
8890f6bce5
searchEvents: fix account_id, simplify code 2024-09-18 12:58:17 -05:00
P. Reis
4ae17c4993 refactor: make getPubkeysBySearch() function return Set<string> 2024-09-18 14:15:18 -03:00