Commit graph

2108 commits

Author SHA1 Message Date
Alex Gleason
9584638d5c
Merge remote-tracking branch 'origin/main' into use-postgres-js 2024-07-11 17:16:11 -05:00
Alex Gleason
d0d385682d Merge branch 'ws-limit' into 'main'
Rate-limit websocket endpoints

See merge request soapbox-pub/ditto!415
2024-07-11 22:11:56 +00:00
Alex Gleason
5c6479b3fe
Rate-limit messages to the relay 2024-07-11 17:10:05 -05:00
Alex Gleason
92061c267e
Merge remote-tracking branch 'origin/main' into ws-limit 2024-07-11 17:02:00 -05:00
Alex Gleason
c4b35d11c8 Merge branch 'deno-v1.45.0' into 'main'
Upgrade Deno to v1.45.0

See merge request soapbox-pub/ditto!414
2024-07-11 21:56:48 +00:00
Alex Gleason
6245200e21
Upgrade Deno to v1.45.0 2024-07-11 16:55:02 -05:00
Alex Gleason
b3067e64ee Merge branch 'e-tags' into 'main'
createStatusController: add relay hints

See merge request soapbox-pub/ditto!413
2024-07-06 23:25:41 +00:00
Alex Gleason
fa53dd7f8d
createStatusController: add relay hints
Fixes https://github.com/nostrability/nostrability/issues/52
2024-07-07 00:23:00 +01:00
Alex Gleason
ed067e541e Merge branch 'improve-errors' into 'main'
Improve signer timeout errors

See merge request soapbox-pub/ditto!412
2024-07-06 22:03:54 +00:00
Alex Gleason
842adfd72b
Improve signer timeout errors 2024-07-06 23:01:00 +01:00
Alex Gleason
155ca77074 Merge branch 'fix-not-being-able-to-post' into 'main'
Fix not being able to post

Closes #175

See merge request soapbox-pub/ditto!411
2024-07-06 19:52:33 +00:00
Alex Gleason
2167106577
Fix not being able to post 2024-07-06 20:50:39 +01:00
Siddharth Singh
36b9aae1ab
switch to postgres.js available-connections branch temporarily 2024-07-06 20:07:02 +05:30
P. Reis
71bdfea317 refactor: get database dialect from Conf.db.dialect 2024-07-06 11:11:41 -03:00
Siddharth Singh
102398967e
fix type stuff 2024-07-06 18:18:38 +05:30
Siddharth Singh
3495092eff
add poolsize and availableconnections metrics back 2024-07-06 18:15:21 +05:30
Siddharth Singh
a804608afb Merge branch 'main' into 'use-postgres-js'
# Conflicts:
#   deno.json
#   src/db/adapters/DittoPostgres.ts
2024-07-06 12:03:21 +00: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
01966496c1 feat: print which dialect is being used when calling createTestDB 2024-07-05 18:49:37 -03:00
P. Reis
13d346afbd refactor: remove console.log 2024-07-05 18:43:14 -03:00
P. Reis
1b3082cd22 build: set ALLOW_TO_USE_DATABASE_URL in postgres ci 2024-07-05 18:34:28 -03:00
P. Reis
fed0c70f69 feat: only run tests with Postgres if ALLOW_TO_USE_DATABASE_URL is set to true 2024-07-05 18:33:29 -03:00
P. Reis
7e965f4ade refactor(test.ts): explain why set DATABASE_URL to sqlite://:memory: 2024-07-05 17:59:12 -03:00
P. Reis
1af229da45 build(gitlab-ci): use deno task test in postgres ci 2024-07-05 17:52:13 -03:00
P. Reis
34bbf6e39a test(pipeline): refactor to use createTestDB instead of getTestDB 2024-07-05 17:48:34 -03:00
P. Reis
f380120cd3 test: refactor to use createTestDB instead of getTestDB 2024-07-05 17:48:06 -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
2154cf011b test: create createTestDB function, supports both Sqlite and Postgres 2024-07-05 17:26:27 -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
a9afe03a37 Merge branch 'metrics-resp' into 'main'
HTTP Response metrics

See merge request soapbox-pub/ditto!410
2024-07-04 23:11:12 +00:00
Alex Gleason
96a8ccb2e6
HTTP Response metrics 2024-07-05 00:07:59 +01:00
Alex Gleason
d4713cae01
Move errorHandler to a separate file 2024-07-04 23:53:20 +01:00
Alex Gleason
8923a5ee55 Merge branch 'eventsdb-no-ephemeral' into 'main'
EventsDB: remove queries for ephemeral kinds

See merge request soapbox-pub/ditto!409
2024-07-04 22:40:17 +00: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
d8247dc76a build: remove DATABASE_URL in test script 2024-07-04 18:08:03 -03:00
P. Reis
78d41bbd6d feat(EventsDB): add nip05 split in buildUserSearchContent() 2024-07-03 20:41:48 -03:00
Alex Gleason
5addf58a10 Merge branch 'handle-timeout-error' into 'main'
Handle timeout error in Hono app.onError() function & send custom error messages in /relay

See merge request soapbox-pub/ditto!407
2024-07-02 21:45:12 +00:00
P. Reis
ba29035413 refactor: put conditional into just one line 2024-07-02 18:43:28 -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
2d017e8102 refactor(relay): remove invalid filter condition 2024-07-02 18:39:22 -03:00
P. Reis
a868512188 refactor: error messages in app.onError() 2024-07-02 18:38:16 -03:00
P. Reis
1731e7dac9 Merge branch 'main' into handle-timeout-error
(((updating local branch)))
2024-07-02 17:31:36 -03:00
P. Reis
360efe089d test(EventsDB): throw error for large since, until and kinds filter 2024-07-02 17:31:12 -03:00
P. Reis
cac5c9c1e0 refactor: change timeout error message 2024-07-02 17:17:29 -03:00