Commit graph

240 commits

Author SHA1 Message Date
P. Reis
ebeb150463 refactor: use search in author_stats 2024-09-19 19:37:13 -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
c24d11c6f3
Support NIP-50 language extension 2024-09-15 12:40:58 -05:00
Alex Gleason
b384fcf572
Make EventsDB extend NPostgres 2024-09-12 17:22:44 -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
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
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
5454942a2c
Update Prometheus metrics to conform to best practices 2024-09-07 08:52:02 -05:00
Alex Gleason
e743e14bb1
Fix EventsDB test 2024-08-12 15:45:47 -05:00
Alex Gleason
617659c7fd
Fix DittoDB+EventsDB relationship 2024-08-12 15:13:49 -05:00
Alex Gleason
552de01a17
Rework DittoDB to return an object 2024-08-11 19:02:27 -05:00
Alex Gleason
916b68a3e4
Switch to NPostgres (steamroll SQLite for now) 2024-08-10 13:30:24 -05:00
Alex Gleason
abc1a6eb49
EventsDB.event: throw error on insertion 2024-08-09 12:47:59 -05:00
Alex Gleason
db6417bad9
Upgrade to Nostrify v0.30.0 2024-08-05 15:45:02 -05:00
Alex Gleason
9543049419
Add db:export command 2024-08-02 16:31:39 -05:00
P. Reis
a271340ffc test: use postgres in hydrate.test.ts 2024-07-26 19:01:18 -03:00
P. Reis
9c02a2d555 refactor: remove nip05 enhancement and tests 2024-07-26 18:49:31 -03:00
P. Reis
6551f0c677 Merge branch 'main' into postgres-support-testing
Update local branch to latest. This branch has the NIP-05 but it will be overriden
2024-07-26 18:32:30 -03:00
P. Reis
31e5b89750 refactor: delete pool-store.ts file 2024-07-17 11:42:27 -03:00
P. Reis
cf4ee051db Merge branch 'main' into search-nip05-enhance-and-postgres-support-testing 2024-07-16 13:58:47 -03:00
Alex Gleason
96fe8920cd
Make database timeouts configurable 2024-07-12 13:49:44 -05:00
Alex Gleason
2167106577
Fix not being able to post 2024-07-06 20:50:39 +01:00
P. Reis
71bdfea317 refactor: get database dialect from Conf.db.dialect 2024-07-06 11:11:41 -03:00
P. Reis
5412d2a07b fix(EventsDB): also add a split only by '@' at symbol 2024-07-05 20:43:13 -03:00
P. Reis
92231dc452 test: query by NIP-05 2024-07-05 20:42:11 -03:00
P. Reis
13d346afbd refactor: remove console.log 2024-07-05 18:43:14 -03:00
P. Reis
d18796956b test(hydrate): refactor to only use sqlite 2024-07-05 17:43:47 -03:00
P. Reis
85fd7909e6 feat: add optional kysely in HydrateOpts interface 2024-07-05 17:42:19 -03:00
P. Reis
8e1826020c test(EventsDB): remove createDB function 2024-07-05 17:35:25 -03:00
P. Reis
12b2032d87 refactor(EventsDB.test): add one blank line between functions 2024-07-04 22:50:12 -03:00
P. Reis
a9f79176a2 test: support sqlite and postgres 2024-07-04 22:43:56 -03:00
Alex Gleason
193dd1a011
EventsDB: remove queries for ephemeral kinds 2024-07-04 23:38:16 +01:00
P. Reis
cbb48867c1 test: attempt to use Postgres 2024-07-04 18:13:31 -03:00
P. Reis
78d41bbd6d feat(EventsDB): add nip05 split in buildUserSearchContent() 2024-07-03 20:41:48 -03:00
P. Reis
d3c3ecfd35 test(EventsDB): refactor to use RelayError instead of Error 2024-07-02 18:40:21 -03:00
P. Reis
e169749b82 refactor(EventsDB): throw RelayError instead of Error 2024-07-02 18:39:55 -03:00
P. Reis
360efe089d test(EventsDB): throw error for large since, until and kinds filter 2024-07-02 17:31:12 -03:00
Alex Gleason
4e150edb5b
Actually enable query timeouts 🤦 2024-07-01 19:48:28 +01:00
Alex Gleason
092a20088a
Reduce timeouts 2024-07-01 09:18:42 +01:00
Alex Gleason
c3ffe7c7f7
EventsDB: fix limit being passed to NDatabase 2024-07-01 08:53:03 +01:00
Alex Gleason
9ea6c7b00b
Add query timeouts 2024-06-29 22:26:51 +01:00
Alex Gleason
31a5533fd7
Add Prometheus metrics 2024-06-21 22:38:25 -05:00
Alex Gleason
003d60c959
Don't display posts of disabled user on their profile 2024-06-19 14:06:02 -05:00
Alex Gleason
c48b976d04 Revert "Merge branch 'stats-transaction' into 'main'"
This reverts merge request !386
2024-06-18 01:11:03 +00:00
Alex Gleason
2f3b656af5
Upgrade Nostrify to v0.23.3, remove normalizeFilters call in EventsDB (NDatabase does this now) 2024-06-17 17:29:01 -05:00
Alex Gleason
74944dcd2a
EventsDB: remove no longer relevant tests 2024-06-17 16:40:06 -05:00
Alex Gleason
96af3bb8bf
Update stats in a transaction 2024-06-17 16:07:03 -05:00
Alex Gleason
7186f49316
Remove URL restriction from r tag 2024-06-13 19:17:53 -05:00