Commit graph

1766 commits

Author SHA1 Message Date
Ajay
5a43f46ac0 Configurable expiry time 2022-08-19 15:40:32 -04:00
Ajay
c3d30b18e2 Increase postgres read timeout and make it configurable 2022-08-15 17:32:07 -04:00
Ajay
7cb58b946a Remove submission restriction for ci.json 2022-08-15 12:03:44 -04:00
Ajay
9306729fdc Remove submission restrictions for tests 2022-08-15 11:43:51 -04:00
Ajay
1ae4c9a349 Add hostname to status 2022-08-12 15:34:40 -04:00
Ajay
be204fe873 Lower postgres read timeout, raise statment timeout 2022-08-12 15:31:19 -04:00
Ajay
6804e7d7a8 Add logging for permission rejections 2022-08-12 15:26:20 -04:00
Ajay
f4c104215b Lower requirements 2022-08-12 15:11:50 -04:00
Ajay
479890fc0d Add default expiry to query cache
Resolves #461
2022-08-11 21:37:13 -04:00
Ajay
877c3b7107 Change submission requirements 2022-08-09 22:01:09 -04:00
Ajay
cd35a58f83 Fix typo 2022-07-31 21:08:23 -04:00
Ajay
cb1cc10278 Extend restriction to all categories 2022-07-31 21:05:39 -04:00
Ajay
6239e53091 Fix flaky test 2022-07-29 12:06:38 -04:00
Ajay
ef93c692e5 fix reputation query typo 2022-07-29 11:57:55 -04:00
Ajay
ee49689110 Ignore full in all reputation cases
Closes #490
2022-07-29 11:55:48 -04:00
Ajay
04eabd5141 Fix error 2022-07-29 11:49:08 -04:00
Ajay
da1ed70c66 adjust permissions and use parrallel processing 2022-07-29 11:47:28 -04:00
Ajay
186f07b20c change filler rules 2022-07-29 11:29:39 -04:00
Ajay
5e49ce22b2 new chat link 2022-07-28 16:59:23 -04:00
Ajay
af7634b498 Fix ad feature auth logic 2022-07-28 13:55:43 -04:00
Ajay
b9354e44ae Fix missing semicolon 2022-07-28 13:10:21 -04:00
Ajay
17a790b6d9 More accurate spam number 2022-07-28 13:00:58 -04:00
Ajay
46805f4830 Require permission for filler submissions 2022-07-28 12:22:49 -04:00
Ajay
954c3db649 Change postgres timeout values 2022-07-24 15:41:09 -04:00
Ajay
23add072f3 Wait for any successful query instead of just most recent 2022-07-24 15:40:40 -04:00
Ajay
db2f9e11f7 Remove warning about disapearing degments bug 2022-07-23 14:12:06 -04:00
Ajay
2983bdb616 Add warning about segments not appearing 2022-07-22 21:06:21 -04:00
Ajay
597b26ba7c Clear cache when submission rejected 2022-07-22 21:05:38 -04:00
Ajay
f93c197d05 Add timeout to shadowhiddenn ip 2022-07-22 20:56:29 -04:00
Ajay
9764c01428 Add timeout for replica requests on non replica too 2022-07-22 20:00:38 -04:00
Ajay
ad7080d801 Force replica if failed using normal
alternates now
2022-07-22 19:03:46 -04:00
Ajay
071aae5cf7 Add timeout for write too 2022-07-22 17:31:17 -04:00
Ajay
10491da7c2 Raise timeout 2022-07-22 17:27:32 -04:00
Ajay
b616ac990b Add statement timeout for read 2022-07-22 16:39:31 -04:00
Ajay
603bad4967 Add another warning test 2022-07-21 14:19:41 -04:00
Ajay
ddb73af515 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2022-07-21 00:15:42 -04:00
Ajay
c1d345441c Pin github actions 2022-07-21 00:15:40 -04:00
Ajay Ramachandran
e050a6eec3
Merge pull request #484 from mini-bomba/fix/requiredSegments-hidden
Fix (shadow)hidden segments not being sent when requested via requiredSegments + test cases
2022-07-20 20:04:24 -04:00
mini-bomba
b3c05bc606
Merge branch 'master' into fix/requiredSegments-hidden
# Conflicts:
#	src/routes/getSkipSegments.ts
2022-07-21 00:54:14 +02:00
Ajay
3203271fdf Allow removing your own warning 2022-07-20 18:52:27 -04:00
Ajay
6e1df18c38 Allow updating warning messages 2022-07-20 17:20:19 -04:00
Ajay
96a75a8335 Add retry logic to postgres requests
Maybe solves https://github.com/ajayyy/SponsorBlockServer/issues/487
2022-07-20 14:42:04 -04:00
Ajay
dd47f87616 Add more things to read from replica 2022-07-20 01:21:13 -04:00
Ajay
f1ed8eff84 Fix useReplica change breaking voting 2022-07-20 00:43:59 -04:00
Ajay
1e441c3ebf Only use read replica for shorter queries
Help with https://github.com/ajayyy/SponsorBlockServer/issues/487
2022-07-20 00:40:07 -04:00
Ajay
f4b66d30ec Use pool query since this should catch idle errors
https://github.com/brianc/node-postgres/issues/1324#issuecomment-623311914

Helps with https://github.com/ajayyy/SponsorBlockServer/issues/487
2022-07-20 00:31:51 -04:00
Ajay
288f7d45e7 Revert "Don't cache empty arrays"
This reverts commit 9ab939456b.
2022-07-20 00:23:02 -04:00
mini-bomba
4ac70d2d7e
add test cases for getting (shadow)hidden segments with requiredSegments 2022-07-16 15:07:22 +02:00
mini-bomba
0f3efc6fb2
send hidden segments when requested via requiredSegments 2022-07-16 15:07:22 +02:00
Ajay
f2904da653 Fix type error 2022-07-15 00:26:22 -04:00