Commit graph

  • 360efe089d test(EventsDB): throw error for large since, until and kinds filter P. Reis 2024-07-02 17:31:12 -03:00
  • cac5c9c1e0 refactor: change timeout error message P. Reis 2024-07-02 17:17:29 -03:00
  • e6c38550c6 feat: add onError() function hono handler P. Reis 2024-07-02 17:15:47 -03:00
  • a7f2fb06ee feat(relay): send custom error messages - since, until & kind P. Reis 2024-07-02 17:09:17 -03:00
  • 3e7bab538a
    Increase timeout for account statuses endpoint and feed endpoints Alex Gleason 2024-07-02 20:13:44 +01:00
  • c7092f5d2d
    Increase query timeout of feeds Alex Gleason 2024-07-02 09:22:59 +01:00
  • fd769c125c Merge branch 'zapped-by-pagination-sort-amount' into 'main' Alex Gleason 2024-07-02 05:17:11 +00:00
  • 4c257fa529 Merge branch 'timeouts' into 'main' Alex Gleason 2024-07-02 05:16:09 +00:00
  • 137e2eae52 Merge branch 'nostr-pull-improvements' into 'main' Alex Gleason 2024-07-02 03:19:21 +00:00
  • 757e5c9baa
    print name as import acknowledgement Siddharth Singh 2024-07-02 05:21:16 +05:30
  • d2df6721bd
    fix kind 1 querying logic Siddharth Singh 2024-07-02 05:01:16 +05:30
  • f1e9eb4f4c
    fetch each author's notes separately Siddharth Singh 2024-07-02 04:58:06 +05:30
  • 5f0b1ffe79
    fetch profiles separately from notes Siddharth Singh 2024-07-02 04:56:38 +05:30
  • ae687bb525
    Increase timeouts Alex Gleason 2024-07-01 23:05:03 +01:00
  • 3ae6d39ebc
    Increase notifications endpoint timeout Alex Gleason 2024-07-01 20:29:06 +01:00
  • 4e150edb5b
    Actually enable query timeouts 🤦 Alex Gleason 2024-07-01 19:48:28 +01:00
  • a00db2f4c1 Merge branch 'script-import-user' into 'main' Alex Gleason 2024-07-01 17:54:18 +00:00
  • 6974b78952
    db:import --> nostr:pull Siddharth Singh 2024-07-01 23:21:29 +05:30
  • e07be77de7
    fix import order Siddharth Singh 2024-07-01 23:13:20 +05:30
  • 98e9ccfc46
    fix import Siddharth Singh 2024-07-01 23:08:15 +05:30
  • 434056b839
    rename evt to event Siddharth Singh 2024-07-01 23:06:41 +05:30
  • ea987dfa14
    support raw pubkeys as well as npubs Siddharth Singh 2024-07-01 23:06:09 +05:30
  • 65f77e845d
    fmt Siddharth Singh 2024-07-01 21:43:01 +05:30
  • 98aaab8e51
    switch to deno.land/postgresjs for free 4x speed increase Siddharth Singh 2024-07-01 21:42:50 +05:30
  • 092a20088a
    Reduce timeouts Alex Gleason 2024-07-01 09:18:42 +01:00
  • c3ffe7c7f7
    EventsDB: fix limit being passed to NDatabase Alex Gleason 2024-07-01 08:53:03 +01:00
  • d062f6bbb6
    Try lazy pool initialization Alex Gleason 2024-07-01 08:44:01 +01:00
  • 96fe171d65
    Use kysely_deno_postgres with simple transactions Alex Gleason 2024-07-01 07:22:33 +01:00
  • 480f4ed370
    fmt Siddharth Singh 2024-06-30 16:31:02 +05:30
  • 9f3f6917d3
    import script works now Siddharth Singh 2024-06-30 15:50:25 +05:30
  • 80f6172a64
    create first version of import script Siddharth Singh 2024-06-30 15:35:46 +05:30
  • ae140933f5
    replace kysely_deno_postgres with kysely-postgres-js Siddharth Singh 2024-06-30 13:13:01 +05:30
  • 9ea6c7b00b
    Add query timeouts Alex Gleason 2024-06-29 22:26:51 +01:00
  • 701049d931 fix(connectStream): add FILTER_LIMIT in filters add-filter-limit-relay P. Reis 2024-06-28 15:28:29 -03:00
  • bdd3b2224e Merge branch 'ms-to-seconds-histogram' into 'main' Alex Gleason 2024-06-27 17:40:32 +00:00
  • 7f7efd12b8 fix(dbQueryTimeHistogram): change name to milliseconds ms instead of seconds P. Reis 2024-06-27 13:32:23 -03:00
  • eba0605e32 Merge branch 'db-query-time-prom-metric' into 'main' Alex Gleason 2024-06-27 13:53:17 +00:00
  • 9cdb8ec534 fix(KyselyLogger): use dbQueryTimeHistogram.observe P. Reis 2024-06-27 10:34:12 -03:00
  • a81bc57961 refactor(dbQueryTimeHistogram): get rid of labelNames and buckets P. Reis 2024-06-27 10:32:07 -03:00
  • ac9bdfde62 refactor(KyselyLogger): use startTimer instead of observe P. Reis 2024-06-27 10:23:10 -03:00
  • d580cac763 refactor: dbQueryTimeHistogram P. Reis 2024-06-27 10:20:55 -03:00
  • 0f392b2dba fix(relays): get rid of custom kind 13314 conditional P. Reis 2024-06-27 10:12:44 -03:00
  • 3e40e690c5
    check admin pubkey while changing threshold Siddharth Singh 2024-06-26 01:44:44 +05:30
  • ab5f451929
    fmt Siddharth Singh 2024-06-26 01:33:02 +05:30
  • 7c7c584b78
    basic (and incredibly stupid but potentially genius) db_query_time histogram Siddharth Singh 2024-06-26 01:30:16 +05:30
  • a965c3c997 Merge branch 'pg-metrics' into 'main' Alex Gleason 2024-06-25 03:14:26 +00:00
  • d7d14194d7
    Collect database connections metrics Alex Gleason 2024-06-24 22:01:01 -05:00
  • 7ecfcd84b3
    Actually use metricsMiddleware, whoops Alex Gleason 2024-06-24 15:49:27 -05:00
  • 797c866830 refactor: storeEvent does not return event, move kysely into a variable above P. Reis 2024-06-24 12:07:33 -03:00
  • 5889dfbf71 Merge branch 'prom-ws-conn' into 'main' Alex Gleason 2024-06-24 14:25:26 +00:00
  • e6cd3d9e47
    prometheus: add gauges for websocket connections Alex Gleason 2024-06-24 09:23:26 -05:00
  • 4ed289e5c3 Merge branch 'prom-relay-verb' into 'main' Alex Gleason 2024-06-24 13:20:48 +00:00
  • e0b1029953
    prometheus: track relay messages by verb Alex Gleason 2024-06-24 08:18:11 -05:00
  • fdb720386d fix(handleZaps): reject all kinds but 9735 P. Reis 2024-06-23 23:51:10 -03:00
  • e1ee3bd8e9 refactor: remove scavenger, put logic directly into pipeline P. Reis 2024-06-23 23:45:32 -03:00
  • 05bf417bcc perf(event_zaps): make two separate indexes instead of a compound index P. Reis 2024-06-23 22:49:15 -03:00
  • 3a8ade4de2 Merge branch 'main' into zapped-by-pagination-sort-amount P. Reis 2024-06-23 18:49:56 -03:00
  • 961cb070f0 Merge branch 'nostr-external-viewers' into 'main' Alex Gleason 2024-06-23 21:11:54 +00:00
  • 3f7687d59f
    make changes according to 24-06-24 review Siddharth Singh 2024-06-24 02:34:49 +05:30
  • f19afa449a
    add the ditto.external field to statuses and accounts Siddharth Singh 2024-06-24 02:03:31 +05:30
  • 60b4ea4643
    add config values for external nostr viewer back to source code Siddharth Singh 2024-06-24 02:02:58 +05:30
  • 39fb1eee5f
    Import Sentry into workers Alex Gleason 2024-06-23 11:59:08 -05:00
  • 0d7ef68353 feat: add pagination and sort by amount - zapped_by endpoint P. Reis 2024-06-23 13:38:40 -03:00
  • a1810219f1
    Update deno.lock Alex Gleason 2024-06-23 10:38:55 -05:00
  • c44347e9d1
    Fix relay metrics Alex Gleason 2024-06-22 10:28:42 -05:00
  • e50ba819b9
    metrics: remove path from fetch and request metrics Alex Gleason 2024-06-22 09:08:32 -05:00
  • ea15f291b0 Merge branch 'metrics' into 'main' Alex Gleason 2024-06-22 03:49:07 +00:00
  • 88df19494a
    Expose /metrics in hono Alex Gleason 2024-06-21 22:46:37 -05:00
  • 31a5533fd7
    Add Prometheus metrics Alex Gleason 2024-06-21 22:38:25 -05:00
  • 9731fc2572 feat: add scavenger to the pipeline P. Reis 2024-06-21 22:25:34 -03:00
  • 89b56539d1 test(scavenger): code coverage 100.00% P. Reis 2024-06-21 22:23:34 -03:00
  • 771d7f79db refactor(scavenger): put SQL insert into try-catch block P. Reis 2024-06-21 21:45:55 -03:00
  • 1b30f10a9f test(scavenger): store valid data into event_zaps table P. Reis 2024-06-21 21:39:18 -03:00
  • 2c08b9a2f0 feat: create scavenger and handle kind 9735 P. Reis 2024-06-21 20:36:59 -03:00
  • ec82e14410 fix: add amount_millisats in event_zaps index P. Reis 2024-06-21 18:35:26 -03:00
  • 2d937a7378 refactor(event_zaps): rename amount to amount_millisats P. Reis 2024-06-21 18:20:10 -03:00
  • 53e7e856c1
    streamingController: bail early if limited Alex Gleason 2024-06-20 16:20:18 -05:00
  • 44dfd15502
    streamingController: rate-limit with ttl-cache Alex Gleason 2024-06-20 16:15:31 -05:00
  • 1b4ebaccd8 refactor: resolve import specifier via the active import map P. Reis 2024-06-20 15:26:08 -03:00
  • bac0b48801 feat: add migration for event_zaps;create idx_event_zaps_id_amount P. Reis 2024-06-20 14:36:19 -03:00
  • ddb93af09f feat(DittoTables): create EventZapRow P. Reis 2024-06-20 14:33:25 -03:00
  • 766290bd45 accountStatusesController: fix oopsie whoopsie TypeError (gj TypeScript) Alex Gleason 2024-06-20 05:59:41 +00:00
  • 47803a068a
    Rate limit the streaming API rate-limit-ws Alex Gleason 2024-06-19 20:19:35 -05:00
  • 52893bab35
    Rewrite streaming controller to use hono websocket helper Alex Gleason 2024-06-19 19:34:06 -05:00
  • 6bdd29922a Merge branch 'disabled-no-status' into 'main' Alex Gleason 2024-06-19 20:01:07 +00:00
  • 003d60c959
    Don't display posts of disabled user on their profile Alex Gleason 2024-06-19 14:02:43 -05:00
  • 8bd67720d6 Merge branch 'custom-emoji-react' into 'main' Alex Gleason 2024-06-19 18:38:04 +00:00
  • 3daac37e08
    Render custom emoji reaction in notifications Alex Gleason 2024-06-19 13:35:43 -05:00
  • 875eee7a77
    Avoid using the user's own relay list when publishing events Alex Gleason 2024-06-19 13:25:06 -05:00
  • 546c0608b7
    Limit the number of active WebSocket connections by IP limit-ws-conn Alex Gleason 2024-06-18 21:14:02 -05:00
  • 6ee9eb63d3
    Get Ditto version from deno.json Alex Gleason 2024-06-18 18:05:11 -05:00
  • 335cb991d2
    Add a few NIP-011 limitation fields Alex Gleason 2024-06-18 17:49:52 -05:00
  • 5ac19715cd Merge branch 'limiter' into 'main' Alex Gleason 2024-06-18 20:47:22 +00:00
  • 0d3c619245
    rateLimitMiddleware: improve tsdoc comment Alex Gleason 2024-06-18 15:24:44 -05:00
  • 330b38ff68
    Move rateLimiterMiddleware to a separate file Alex Gleason 2024-06-18 14:28:13 -05:00
  • 72f5391f97
    Update deno.lock Alex Gleason 2024-06-18 13:38:56 -05:00
  • 03fc6e777c
    nginx: add more proxy headers Alex Gleason 2024-06-18 13:38:17 -05:00
  • a824d72a1a
    Add IP rate limiter Alex Gleason 2024-06-18 12:09:29 -05:00
  • 5ba0c8c14a Merge branch 'hono-jsr' into 'main' Alex Gleason 2024-06-18 16:53:42 +00:00
  • 66abfa38c3
    Upgrade hono, switch it to use JSR Alex Gleason 2024-06-18 11:51:51 -05:00