Commit graph

66 commits

Author SHA1 Message Date
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
Siddharth Singh
e7f5535bd2
handle event insertion errors with warning 2024-09-01 19:15:22 +05:30
Siddharth Singh
125dfb54f3
Add tests for db:export filters 2024-08-25 19:41:35 +05:30
Siddharth Singh
fb199123be
first working version 2024-08-24 22:56:35 +05:30
Siddharth S Singh
9298bf6608 first commit (nonfunctional) 2024-08-23 16:25:34 +05:30
Alex Gleason
f116950a83
Fix db:migrate script 2024-08-12 15:25:51 -05:00
Alex Gleason
617659c7fd
Fix DittoDB+EventsDB relationship 2024-08-12 15:13:49 -05:00
Alex Gleason
9f9a07e618
Improve performance of import script 2024-08-11 16:08:15 -05:00
P. Reis
84c56282ac docs/fix: rename db:import to nostr:pull 2024-08-02 21:19:52 -03:00
Alex Gleason
ba3f816955
Add db:import task 2024-08-02 16:54:35 -05:00
Alex Gleason
9543049419
Add db:export command 2024-08-02 16:31:39 -05:00
Alex Gleason
cd961dad86
delay -> sleep, style tweaks 2024-07-11 17:19:47 -05:00
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
Siddharth Singh
757e5c9baa
print name as import acknowledgement 2024-07-02 05:21:16 +05:30
Siddharth Singh
d2df6721bd
fix kind 1 querying logic 2024-07-02 05:01:16 +05:30
Siddharth Singh
f1e9eb4f4c
fetch each author's notes separately 2024-07-02 04:58:06 +05:30
Siddharth Singh
5f0b1ffe79
fetch profiles separately from notes 2024-07-02 04:56:38 +05:30
Siddharth Singh
6974b78952
db:import --> nostr:pull 2024-07-01 23:21:29 +05:30
Siddharth Singh
e07be77de7
fix import order 2024-07-01 23:13:20 +05:30
Siddharth Singh
98e9ccfc46
fix import 2024-07-01 23:08:15 +05:30
Siddharth Singh
434056b839
rename evt to event 2024-07-01 23:06:41 +05:30
Siddharth Singh
ea987dfa14
support raw pubkeys as well as npubs 2024-07-01 23:06:09 +05:30
Siddharth Singh
65f77e845d
fmt 2024-07-01 21:43:01 +05:30
Siddharth Singh
98aaab8e51
switch to deno.land/postgresjs for free 4x speed increase 2024-07-01 21:42:50 +05:30
Siddharth Singh
480f4ed370
fmt 2024-06-30 16:31:02 +05:30
Siddharth Singh
9f3f6917d3
import script works now 2024-06-30 15:50:25 +05:30
Siddharth Singh
80f6172a64
create first version of import script 2024-06-30 15:35:46 +05:30
Alex Gleason
1983171193
setup: removed unused node:url import 2024-06-16 00:15:10 -05:00
Alex Gleason
dbacb6b63a
setup: handle DATABASE_URL more transparently on re-runs 2024-06-16 00:14:43 -05:00
Alex Gleason
c39fd2daa2
Improve the setup script and clean up config 2024-06-15 23:41:19 -05:00
Alex Gleason
8d8e46eae8
Add a script to update trends 2024-06-15 12:13:35 -05:00
Alex Gleason
72ca7af7f0
admin-role script: minor tweaks 2024-06-15 11:40:03 -05:00
Alex Gleason
97951d5d91 Merge branch 'admin-role-script-support-npub' into 'main'
support npubs in admin:role script

See merge request soapbox-pub/ditto!366
2024-06-14 21:24:00 +00:00
Alex Gleason
4e0a210041
Add a setup script to generate the .env file 2024-06-12 19:19:48 -05:00
Alex Gleason
7d54a5c7d0
Kind 30361 -> 30382 2024-06-08 11:32:29 -05:00
Siddharth Singh
2380234deb
fmt 2024-06-08 00:30:22 +05:30
Siddharth Singh
2c649e0fa6
support npubs in admin:role script 2024-06-08 00:26:36 +05:30
Alex Gleason
1290aeeb5e
deno.lock: lint-staged 2024-05-31 14:28:43 -05:00
Alex Gleason
8f3b9df1e1
Test Postgres in the CI 2024-05-26 18:42:14 -05:00
Alex Gleason
f7c9a96719
Nuke the old stats module, support emoji reactions on posts 2024-05-24 17:40:51 -05:00
Alex Gleason
a39910fa98
Add a function to recalculate author stats 2024-05-17 13:18:23 -05:00
Alex Gleason
406baf8a1d
events-db -> EventsDB 2024-05-15 08:18:31 -05:00
Alex Gleason
374dc3495c
Merge remote-tracking branch 'origin/main' into recompute 2024-05-14 19:43:50 -05:00
Alex Gleason
3d1d56355d
Update scripts for async db 2024-05-14 18:51:35 -05:00
Alex Gleason
99a6c668c8
Update recompute script 2024-05-14 18:50:05 -05:00
Alex Gleason
dc87d3599d
Add stats:recompute script 2024-05-14 15:59:17 -05:00
Alex Gleason
87264eeef1
Remove relays table from the database, track them with a NIP-65 admin event 2024-05-01 19:15:20 -05:00
Alex Gleason
cbf1e8f280
Add admin:role CLI task 2024-04-23 18:13:18 -05:00