Commit graph

2440 commits

Author SHA1 Message Date
Alex Gleason
8da223ad6c
Merge remote-tracking branch 'origin/main' into language-detection 2024-09-15 17:25:36 -05:00
Alex Gleason
580e773bfc Merge branch 'enchance-profile-search' into 'main'
Enchance profile search

Closes soapbox#1710

See merge request soapbox-pub/ditto!488
2024-09-15 21:46:49 +00:00
P. Reis
dc69f21e0b refactor: write map function in a cleaner way 2024-09-15 17:46:10 -03:00
P. Reis
c5711ea071 refactor(accountSearchController): only reassign events if event is undefined 2024-09-15 17:42:58 -03:00
P. Reis
ed74b2464a refactor: write it like a normal if statement 2024-09-15 17:42:26 -03:00
P. Reis
3b8a800cd2 refactor(search enchance): map over pubkeys instead of events 2024-09-15 17:27:56 -03:00
P. Reis
d7ae3722c8 refactor: insert each event per iteration in for loop - db:populate-search 2024-09-15 16:52:49 -03:00
Alex Gleason
f8902760ce
Make the language index a compound index 2024-09-15 13:37:23 -05:00
Alex Gleason
eede3909b1
Upgrade @nostrify/db to fix table joins 2024-09-15 13:05:54 -05:00
Alex Gleason
c24d11c6f3
Support NIP-50 language extension 2024-09-15 12:40:58 -05:00
P. Reis
f99ea7c33f refactor(getPubkeysBySearch): cast as string 2024-09-13 18:57:47 -03:00
P. Reis
197b2c8c8b refactor(populate search script): use store.req instead of streaming 2024-09-13 18:49:20 -03:00
P. Reis
b3e56320a0 feat(accountSearchController): return accounts in autocomplete form 2024-09-13 18:41:20 -03:00
P. Reis
6387ee440c feat: return multiple accounts in searchController 2024-09-13 16:36:01 -03:00
P. Reis
69c2158131 refactor: return ordered accounts by similarity relevance in searchEvents() function 2024-09-13 16:20:56 -03:00
P. Reis
be76197e3a refactor: remove handleAuthorSearch() function and put its logic inside parseMetadata() function 2024-09-13 16:20:52 -03:00
P. Reis
935cc7c5a5 refactor: remove NIP-50 search if looking for accounts, use same filter 2024-09-13 14:33:34 -03:00
P. Reis
a974f4230d Merge branch 'main' into enchance-profile-search 2024-09-13 10:34:45 -03:00
P. Reis
24d909fd28 feat: create script to populate author_search table 2024-09-13 10:34:15 -03:00
P. Reis
a6f1098bc6 test: getPubkeysBySearch() function 2024-09-13 10:32:05 -03:00
P. Reis
e1cd1777e3 test: add author_search table in createTestDB to drop it after use 2024-09-13 10:30:10 -03:00
P. Reis
9d2667679f feat(pipeline.ts): create handleAuthorSearch() function 2024-09-13 10:28:54 -03:00
P. Reis
c03ea07dcb feat: create getPubkeysBySearch() function and use it inside searchEvents() function 2024-09-13 10:27:12 -03:00
P. Reis
b5aefdd93e feat: add pg_trgm extension in PGlite constructor 2024-09-13 10:24:33 -03:00
P. Reis
8bc8712cf3 feat: create and add author_search interface to DittoTables 2024-09-13 10:23:08 -03:00
P. Reis
40c187680e feat: create author_search table 2024-09-13 10:22:05 -03:00
Alex Gleason
b384fcf572
Make EventsDB extend NPostgres 2024-09-12 17:22:44 -05:00
Alex Gleason
4955be4104 Merge branch 'stats-inflation' into 'main'
Fix stat inflation

See merge request soapbox-pub/ditto!487
2024-09-12 18:48:38 +00:00
Alex Gleason
1732b69022
Remove unused Storages.close method 2024-09-12 13:39:02 -05:00
Alex Gleason
a0fd702e09
Revert DittoPglite 2024-09-12 13:38:00 -05:00
Alex Gleason
8316762370
Remove this DittoExit stuff (since I'm not convinced it's needed) 2024-09-12 13:37:21 -05:00
Alex Gleason
b3cfd5e12c
waitReady is not actually needed 2024-09-12 13:17:21 -05:00
Alex Gleason
c50c63f954
pipeline: purifyEvent before passing it to storage 2024-09-12 13:10:36 -05:00
Alex Gleason
fc912f185e
Gracefully start and exit the database 2024-09-12 13:03:23 -05:00
Alex Gleason
d67f2a27ea
stats: use the NPostgres transaction method to avoid transactions within transactions 2024-09-12 11:30:57 -05:00
Alex Gleason
55ee8eaf74
Fix stat inflation 2024-09-12 11:09:54 -05:00
Alex Gleason
593cedba06
grafana: add API endpoints row 2024-09-11 21:34:16 -05:00
Alex Gleason
f7ee59146e
Clean up config 2024-09-11 18:30:23 -05:00
Alex Gleason
20d1f885ac
Upgrade gleasonator-policy in deno.lock 2024-09-11 16:53:02 -05:00
Alex Gleason
b449b17fbe
Add updated gleasonator-policy to deno.lock 2024-09-11 16:11:09 -05:00
Alex Gleason
6b66e61ee9
PolicyWorker: mock Deno.env 2024-09-11 14:34:41 -05:00
Alex Gleason
a1585d81aa Merge branch 'store-policy' into 'main'
Expose db to Policy script

See merge request soapbox-pub/ditto!486
2024-09-11 19:21:11 +00:00
Alex Gleason
cae0f492f3
Let PolicyWorker run in sandbox with store 2024-09-11 14:04:11 -05:00
Alex Gleason
ebc0250d81
DittoDB.getInstance() -> Storages.kysely() 2024-09-11 13:23:06 -05:00
Alex Gleason
d2fb3fd253
Make EventsDB not rely on Conf 2024-09-11 13:06:20 -05:00
Alex Gleason
624b6b278e Merge branch 'rm-sqlite' into 'main'
Remove SQLite support, simplify database code

See merge request soapbox-pub/ditto!485
2024-09-11 17:07:08 +00:00
Alex Gleason
fad40f1c30
createTestDB: don't accept an arg 2024-09-11 11:57:28 -05:00
Alex Gleason
f3ae200833
Simplify database interfaces, make tests use pglite 2024-09-11 11:48:58 -05:00
Alex Gleason
dc8d09a9da
Remove SQLite support 2024-09-11 11:08:33 -05:00
Alex Gleason
f76d0af16d
Add TEST_DATABASE_URL env, change database defaults 2024-09-11 10:28:06 -05:00