Commit graph

120 commits

Author SHA1 Message Date
Andre Medeiros
fe8baf7989 make watcher keywords more flexible 2022-05-07 13:22:06 -04:00
André Medeiros
f9b9c595cf Better testing (#62)
* some tests

* more tests

* tidy up go.mod

* more tests

* add postgres

* beep

* again

* Set up schema

* fix device test
2022-05-07 12:37:21 -04:00
André Medeiros
a94aa11845 Merge pull request #66 from christianselig/chore/schema-changes
Changes to schema
2022-05-07 11:52:52 -04:00
Andre Medeiros
93052d2770 log account ID 2022-05-07 11:42:20 -04:00
André Medeiros
ead14c8bf0 Merge branch 'main' into chore/schema-changes 2022-05-01 14:07:34 -04:00
Andre Medeiros
49b1acc906 Add threadID 2022-05-01 13:36:35 -04:00
Andre Medeiros
9ba4498c08 Add post thumbnails too 2022-05-01 13:33:09 -04:00
Andre Medeiros
63344348df Fix notification categories for watchers 2022-05-01 13:28:12 -04:00
Andre Medeiros
e48460572a include subreddit fields too 2022-05-01 13:24:10 -04:00
Andre Medeiros
c2a77e7c66 add comment_id on username mention 2022-05-01 13:22:18 -04:00
Andre Medeiros
91456dc9b9 include comment_id for private messages 2022-05-01 13:20:36 -04:00
Andre Medeiros
b886dd3fab Fix post reply notifications 2022-05-01 13:18:16 -04:00
Andre Medeiros
a429ee9987 change remaining notification titles 2022-05-01 13:09:08 -04:00
Andre Medeiros
8502a67352 Change trending notification 2022-05-01 13:04:05 -04:00
Andre Medeiros
2027760e1e Change Subreddit watcher notification 2022-05-01 13:00:34 -04:00
Andre Medeiros
7c7e1e5e1c More proper types 2022-03-28 17:33:01 -04:00
Andre Medeiros
dbcda74ab8 Changes to schema 2022-03-28 17:05:01 -04:00
Andre Medeiros
88a3e0a21f short circuit on notifications job 2022-03-26 12:52:10 -04:00
Andre Medeiros
a1a098b448 ch-ch-changes 2022-03-12 12:50:05 -05:00
Andre Medeiros
dfae5d6c77 check if notification was sent too 2022-01-14 15:29:56 -05:00
Andre Medeiros
815b577bf5 enable/disable notifications per account/device pair 2021-10-17 12:41:12 -04:00
Andre Medeiros
7d41c4ae3a change info to debug on a chatty log line 2021-10-17 11:56:23 -04:00
Andre Medeiros
6f2c956082 more tweaks 2021-10-17 11:48:41 -04:00
Andre Medeiros
b5bc51dfd7 fix edge cases 2021-10-17 11:27:52 -04:00
Andre Medeiros
b07bf599de only alert on non deleted messages 2021-10-17 11:05:40 -04:00
Andre Medeiros
78e48a8f3b check for last alerted thing that wasn't deleted 2021-10-17 11:02:31 -04:00
Andre Medeiros
ad982edcd7 oops 2021-10-17 10:53:14 -04:00
Andre Medeiros
42243def97 fix the things for messages 2021-10-17 10:47:43 -04:00
Andre Medeiros
62796df6de fix logging 2021-10-17 10:20:07 -04:00
Andre Medeiros
c8bec95bed add stuck notifications worker 2021-10-17 10:17:41 -04:00
Andre Medeiros
0674ddf730 allow user notifications to be filtered by subreddit 2021-10-13 10:43:05 -04:00
Andre Medeiros
65792abd94 add subreddit trending posts watcher 2021-10-10 11:51:42 -04:00
Andre Medeiros
009d60dc2f don't alert user posts in private subreddits 2021-10-09 12:19:52 -04:00
Andre Medeiros
19ed17b086 honor user perference to not be followed and delete them 2021-10-09 11:44:19 -04:00
Andre Medeiros
4955f74f52 user following 2021-10-09 10:59:20 -04:00
Andre Medeiros
a63171f833 tweak notification 2021-09-27 15:23:56 -04:00
Andre Medeiros
537d1711fe record watcher hits 2021-09-25 14:27:58 -04:00
Andre Medeiros
bc9456cba2 tweak notification content 2021-09-25 14:05:34 -04:00
Andre Medeiros
698c65b1f4 tweaks 2021-09-25 14:02:00 -04:00
Andre Medeiros
a5bd4c2ce4 check last 100 hot posts too 2021-09-25 13:05:05 -04:00
Andre Medeiros
3361403379 subreddit notifications 2021-09-25 12:56:01 -04:00
Andre Medeiros
fc1065deb5 fix ci 2021-09-25 09:19:42 -04:00
Andre Medeiros
99f76c8cca fix queue delay reporting 2021-08-14 14:15:05 -04:00
Andre Medeiros
42a9fb415e report timeout errors separately 2021-08-14 14:07:19 -04:00
Andre Medeiros
c17a39b9eb remove redundant log field 2021-08-14 13:53:11 -04:00
Andre Medeiros
12b67879ee fix more logs 2021-08-14 13:51:18 -04:00
Andre Medeiros
4c5e47e749 don't delete after any error 2021-08-14 13:50:03 -04:00
Andre Medeiros
d17151a3b3 test reddit 2021-08-14 13:42:28 -04:00
Andre Medeiros
29c7caa591 set up auth key with path 2021-07-22 20:32:37 -04:00
Andre Medeiros
badda4f191 only set before if last message id has contents 2021-07-15 21:18:43 -04:00
Andre Medeiros
ff27f2323d add message count to notification sender 2021-07-15 21:02:52 -04:00
Andre Medeiros
b20fa0cac9 reformat event 2021-07-15 20:59:59 -04:00
Andre Medeiros
a5e7417f6e send a notification event to datadog 2021-07-15 20:55:53 -04:00
Andre Medeiros
1dc4c72da2 only populate when first message wasn't checked previously 2021-07-15 13:01:36 -04:00
Andre Medeiros
412bc04d77 remove limit logic and use reddit's before again 2021-07-15 12:05:01 -04:00
Andre Medeiros
20fe4d7ddb fix concurrency with fastjson 2021-07-15 11:51:04 -04:00
Andre Medeiros
8c1ed47d1a slices index are exclusive on the right 2021-07-15 11:16:22 -04:00
Andre Medeiros
a9a329967a remove dead logic 2021-07-15 11:03:52 -04:00
Andre Medeiros
ec78363252 update notifier logic 2021-07-15 10:51:34 -04:00
Andre Medeiros
ec138dbe4f go back to /message/inbox and track pointer ourselves 2021-07-14 14:56:43 -04:00
Andre Medeiros
55c45592ac tweak params 2021-07-13 20:09:44 -04:00
Andre Medeiros
b98f8345a5 don't prefetch as much 2021-07-13 19:48:23 -04:00
Andre Medeiros
2a98be36ae tweak more 2021-07-13 19:45:03 -04:00
Andre Medeiros
07961c1199 tweak prefetch 2021-07-13 19:41:29 -04:00
Andre Medeiros
cc1d932781 tweak default transport and try using message unread 2021-07-13 19:33:32 -04:00
Andre Medeiros
fdfa447435 remove retry logic with token 2021-07-13 15:21:14 -04:00
Andre Medeiros
0262133ce8 update queue delay in a better spot 2021-07-13 15:08:39 -04:00
Andre Medeiros
d9f64765f0 one more little fix 2021-07-13 14:47:50 -04:00
Andre Medeiros
d2909b8003 try refreshing token on mailbox error 2021-07-13 13:58:52 -04:00
Andre Medeiros
9fa0257d84 reorganize commands to keep things more consistent 2021-07-13 13:14:25 -04:00