Commit Graph

31 Commits

Author SHA1 Message Date
Alex Gleason
6ce8aae0d1 trends: rewrite getTrendingTags to process the history in serial, split across several queries 2024-06-15 18:14:38 -05:00
Alex Gleason
a3b7acd1c1 Cache trends API results at a different interval than trends calculations 2024-06-15 17:18:55 -05:00
Alex Gleason
c6da216b4e trends: calculate since the last label date instead of current date 2024-06-11 19:08:24 -05:00
Alex Gleason
4329d8ed9f Implement trending links 2024-06-02 23:19:53 -05:00
Alex Gleason
9d2194a928 trendingStatusesController: enforce kind 1 events 2024-06-02 19:54:48 -05:00
Alex Gleason
7e44368c08 trends: reverse the history dates 2024-06-02 19:07:10 -05:00
Alex Gleason
133a684d32 Fix tag order 2024-06-02 19:02:31 -05:00
Alex Gleason
fc11e34499 trends: notes -> #e, normalize 2024-06-02 18:28:43 -05:00
Alex Gleason
76c882d836 Crunch the tag history in the controller 2024-06-02 17:47:36 -05:00
Alex Gleason
3363688977 trends: support offset parameter 2024-06-02 13:07:49 -05:00
Alex Gleason
a911e36a7e trendingStatusesController: sort a simpler way 2024-06-02 12:15:32 -05:00
Alex Gleason
45d9a113c3 trendingStatusesController: sort events in the order they appear in the label 2024-06-02 12:08:23 -05:00
Alex Gleason
0f59b3c96b Trends: label trending posts by publishing an event 2024-06-02 11:58:21 -05:00
Alex Gleason
9c7a650d1f Set trending statuses default limit to 20 2024-05-22 13:07:54 -05:00
Alex Gleason
80e886bfff Rework trending posts (it's much faster) 2024-05-21 20:38:57 -05:00
Alex Gleason
5da5848ca6 Trending statuses first iteration 2024-05-21 19:48:26 -05:00
Alex Gleason
80344e3c5f Fix trends cache 2024-05-21 18:15:17 -05:00
Alex Gleason
5822253796 Fix trends 2024-05-21 18:00:57 -05:00
Alex Gleason
b2a5ff3eaf Make Trends use SQLite again 2024-05-21 17:14:26 -05:00
Siddharth Singh
f19629600d rewrite trendsworker with kysely and deno cron, format changes 2024-05-20 00:05:03 +05:30
Alex Gleason
0f9cc9fe51 zod import alias 2024-04-23 15:03:20 -05:00
Alex Gleason
d569dfd5b5 Add TrendsWorker for tracking/querying trending tags with a Web Worker 2023-12-04 16:33:02 -06:00
Alex Gleason
c251b51803 Trends: add some useful comments for later 2023-07-26 17:30:17 -05:00
Alex Gleason
bc3a96eeed Refactor trending tags history, make it more correct 2023-07-26 17:18:21 -05:00
Alex Gleason
f8d46cae58 Trends: fill in empty tag histories
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/29
2023-07-26 15:40:29 -05:00
Alex Gleason
c88e58344f Improve tag history 2023-07-25 23:21:42 -05:00
Alex Gleason
1a860adde7 Support tag history 2023-07-25 20:26:49 -05:00
Alex Gleason
33f87822d4 Trends: support author threshold (default: 3) 2023-07-25 18:04:00 -05:00
Alex Gleason
cbb294dbc2 Trends: support limit param 2023-07-25 17:44:38 -05:00
Alex Gleason
e8df411834 Trends: also track total tag usages 2023-07-25 17:19:31 -05:00
Alex Gleason
1d67181e52 Add trends controller... and it kind of works! 2023-07-25 17:07:09 -05:00