Commit graph

2463 commits

Author SHA1 Message Date
Alex Gleason
ce18cb928a
KyselyLogger: also log errors 2024-07-29 21:19:44 -05:00
Alex Gleason
c54d801dd0 Merge branch 'tag-queries' into 'main'
Vastly improve tag query performance

Closes #169

See merge request soapbox-pub/ditto!436
2024-07-29 21:50:40 +00:00
Alex Gleason
18e446bd05
Delete zap split tests 2024-07-29 16:46:27 -05:00
Alex Gleason
a0952bc4c1
zap-split.test: use using 2024-07-29 16:42:18 -05:00
Alex Gleason
37f229408c
Seed zap splits when Storages.db is first accessed 2024-07-29 15:59:29 -05:00
Alex Gleason
31f5254fb3
Clear timeouts in tag queries migration 2024-07-29 15:37:45 -05:00
Alex Gleason
48a4e30e38
trends: read directly from the tags table instead of doing an inner join on events 2024-07-29 15:33:16 -05:00
Alex Gleason
ece18c9bd8
Add tags table migration 2024-07-29 15:32:36 -05:00
Alex Gleason
df9ae26a3a
Upgrade Nostrify to v0.27.0 2024-07-29 14:18:46 -05:00
Alex Gleason
51bdd977e1
Merge remote-tracking branch 'origin/main' into tag-queries 2024-07-29 14:14:35 -05:00
Alex Gleason
ac15aa431b Merge branch 'postgres-support-testing' into 'main'
Support tests with Postgres

Closes #171

See merge request soapbox-pub/ditto!435
2024-07-29 01:15:17 +00: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
Alex Gleason
58df902a7b Merge branch 'fix-startup' into 'main'
Fix: import startup.ts file in app.ts

See merge request soapbox-pub/ditto!434
2024-07-25 19:41:47 +00:00
P. Reis
dc94d21374 fix(app.ts): import startup.ts file 2024-07-25 16:32:49 -03:00
Alex Gleason
24b950ebd2 Merge branch 'add-zap-tag' into 'main'
Add zap tag to kind 1 event

Closes #133

See merge request soapbox-pub/ditto!432
2024-07-25 18:12:57 +00:00
P. Reis
e458608e38 refactor: rename createZapSplitsIfNotExists to seedZapSplits 2024-07-25 15:10:54 -03:00
P. Reis
882f8009dc refactor: rename isNumberFrom1To100 to percentageSchema 2024-07-25 15:06:50 -03:00
P. Reis
f3d521356d refactor: get rid of isObjectEmpty function 2024-07-25 14:52:52 -03:00
P. Reis
541b5b1c39 refactor: imports in alphabetical order 2024-07-25 14:52:03 -03:00
P. Reis
f94ae7606c refactor: change zapSplitSchema to z.record()) 2024-07-25 11:11:44 -03:00
Alex Gleason
75e9837c09
Upgrade Nostrify to v0.27.0-rc.4 2024-07-24 13:59:21 -05:00
P. Reis
85806f7ea8 refactor: use object fields instead of tuple in zapSplitSchema 2024-07-24 11:14:42 -03:00
P. Reis
961da0f52c refactor: change error message in updateZapSplitsController & deleteZapSplitsController 2024-07-24 10:56:12 -03:00
P. Reis
ddd1972c83 refactor(app.ts): move cron function and startFirehose function to startup.ts 2024-07-24 10:55:30 -03:00
P. Reis
23bb24929c refactor: remove zap split creation from instanceV1Controller endpoint 2024-07-24 10:54:56 -03:00
P. Reis
1698c1b19b feat: create startup file 2024-07-24 10:54:20 -03:00
P. Reis
86874e3a08 feat: create createZapSplitsIfNotExists() function 2024-07-24 10:53:32 -03:00
Alex Gleason
2b8009d840
trends: catch initial queries 2024-07-23 23:07:34 -05:00
Alex Gleason
7949c95f77
try-catch trending tags cron 2024-07-23 22:32:16 -05:00
Alex Gleason
5ebde99320
trends: Deno.cron try/catch 2024-07-23 22:19:53 -05:00
Alex Gleason
64eeee5ff7
Upgrade Nostrify to v0.27.0-rc.3 2024-07-23 22:09:51 -05:00
P. Reis
0e43d1e8a7 refactor: add zap tag with new data structure 2024-07-23 22:40:38 -03:00
P. Reis
c49460e37d refactor(instance.ts): use new zap_split data structure in ditto hard coded pubkey 2024-07-23 20:41:02 -03:00
P. Reis
75ad25ccac test(zap-split): update to be in accord with new data structure 2024-07-23 20:39:51 -03:00
P. Reis
2ebaee8807 refactor: change DittoZapSplits data structure to use object fields instead of array 2024-07-23 20:39:23 -03:00
P. Reis
7cdfb67b99 refactor: rename officialDittoAccountPubkey to dittoPubkey & officialDittoAccountMsg to dittoMsg 2024-07-23 20:25:02 -03:00
P. Reis
a0c952b9b9 refactor: do not use isObjectEmpty function in if condition, zap tag 2024-07-23 20:15:44 -03:00
P. Reis
de32930c44 refactor: use exclamation mark (bang) instead of 'as string' cast 2024-07-23 18:26:06 -03:00
P. Reis
80e14c65c0 refactor: rename zap_split.ts to zap-split.ts, rename tests as well 2024-07-23 18:14:22 -03:00
Alex Gleason
ff35357121
Upgrade Nostrify to v0.27.0-rc.2 2024-07-23 15:13:02 -05:00
Alex Gleason
e400641757
Improve performance of tag queries 2024-07-23 10:29:45 -05:00
P. Reis
5a5e8b7c5d feat(createStatusController): add 'zap' tag to event 2024-07-21 20:11:26 -03:00
P. Reis
449a3497ba feat: create deleteZapSplitsController 2024-07-21 19:40:55 -03:00
P. Reis
2e66af26db feat: create updateZapSplitsController 2024-07-21 19:26:05 -03:00
P. Reis
2fe9b9f98d feat: get zap splits and return it in api/v1/instance endpoint 2024-07-21 19:22:53 -03:00
Alex Gleason
98dfd8f4b8 Merge branch 'update-postgres-js' into 'main'
update pinned version of postgres.js

See merge request soapbox-pub/ditto!430
2024-07-20 22:04:27 +00:00
Siddharth Singh
2acfcb3951
update lock file 2024-07-21 03:23:15 +05:30
Siddharth Singh
b3dba0f793
update pinned version of postgres.js 2024-07-21 03:19:05 +05:30