Commit graph

2224 commits

Author SHA1 Message Date
Ajay
e8879f66b1 Add redis in memory cache stats 2024-02-08 02:58:51 -05:00
Ajay
acdbd3787b More specific on what should be client cached 2024-02-08 01:04:48 -05:00
Ajay
1f7156eb29 Don't crash if redis message invalid 2024-02-08 00:34:37 -05:00
Ajay
7405053b44 Reuse running reputation requests 2024-02-07 23:40:59 -05:00
Ajay
a929f69452 Fix same ip being fetched multiple times from postgres 2024-02-07 23:36:45 -05:00
Ajay
8574ec3a0c Fix is number check 2024-02-07 22:28:28 -05:00
Ajay
1475c91327 Clear cache again after setting up client tracking 2024-02-06 15:32:40 -05:00
Ajay
5b1b362bf0 Handle reconnects with client-side caching
Also upgrades redis to fix a library bug
2024-02-06 00:52:42 -05:00
Ajay
14da10bd8a Add client-side caching 2024-02-05 13:11:44 -05:00
Ajay
547632341a Add back redis compression optionally 2024-02-04 23:17:28 -05:00
Ajay
c54c25c73b Disable query cache for segment groups 2024-02-04 22:53:12 -05:00
Ajay
121cc7f481 Fix duplicate behavior with submitting full video labels 2024-01-31 13:05:47 -05:00
Ajay
e041b9c930 Don't throw 409 if only one segment was successfully submitted 2024-01-31 12:59:01 -05:00
Ajay
59d9ed390f Fix titles and thumbnails being unlocked 2024-01-28 22:05:04 -05:00
Ajay
4477ab7ca6 Remove bad test 2024-01-21 19:55:16 -05:00
Ajay
25ec9b0291 Revert adding redis compression
This reverts commit fce311377f and 2ad51842cc
2024-01-21 19:49:36 -05:00
Ajay
c3e00ac8b1 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2024-01-21 19:46:18 -05:00
Ajay
2c9079f565 No more verification through sb submissions 2024-01-21 19:46:16 -05:00
Ajay Ramachandran
aee84a4b6e
Merge pull request #572 from SashaXser/master
Promise.resolve and Using "forEach" instead of "map"
2024-01-20 00:08:55 -05:00
SashaXser
a8010b553d
Merge branch 'master' into master 2024-01-20 07:07:03 +04:00
SashaXser
5b95aa8aba
Resolve conflicts 2024-01-20 06:59:12 +04:00
Ajay
fce311377f Switch to lz4 compression 2024-01-19 15:16:50 -05:00
Ajay
dcb479f3d2 Fallback to allowing taking a lock if redis fails 2024-01-19 14:35:32 -05:00
Ajay
2ad51842cc Compress redis values 2024-01-19 14:34:18 -05:00
SashaXser
ea60947092
format fix 2024-01-19 14:31:03 +04:00
SashaXser
14b6f84f94
2 things
Consider using "forEach" instead of "map" as its return value is not being used here.
Replace this trivial promise with "Promise.resolve".
2024-01-19 08:50:45 +04:00
Ajay
8e13ec60d6 Fix other get missing throw 2024-01-18 11:57:50 -05:00
Ajay
c9f7275942 Only use redis timeout when db not under load 2024-01-18 09:22:00 -05:00
Ajay
d607d8b179 Don't fallback to db when too many redis connections 2024-01-15 14:07:34 -05:00
Ajay
7aaf000d99 Fix index for hashed video id dearrow fetching 2024-01-09 15:31:56 -05:00
Ajay
0edf0b9e1c Don't handle shadowhide on high load 2024-01-03 11:37:58 -05:00
Ajay
84fd7c170f Add test for VIP downvote without removing 2024-01-03 01:18:57 -05:00
Ajay
b04e0dcd97 DeArrow downvotes 2024-01-03 01:13:35 -05:00
Ajay
33dad0a5e4 Add option to submit without locking
Also fixes voting for an existing thumbnail not unlocking other thumbnails
2024-01-02 19:12:55 -05:00
Ajay
ad439fd368 Make sure latest dump is not deleted 2023-12-28 19:10:12 -05:00
Ajay
21bb893a47 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2023-12-28 18:23:45 -05:00
Ajay
211ecf700b Reject on dump failure to trigger a retry 2023-12-28 18:23:41 -05:00
Ajay Ramachandran
951d678640
Merge pull request #569 from mchangrh/fix-shadowban
clean up shadowban code, exclude long running categories query
2023-12-21 20:36:28 -05:00
Michael C
15f19df8a4
clean up shadowban code, exclude long running categories query when possible 2023-12-21 18:37:24 -05:00
Ajay Ramachandran
4a4d5776a1
Merge pull request #568 from ajayyy/revert-566-dependabot/npm_and_yarn/axios-1.6.0
Revert "Bump axios from 1.1.3 to 1.6.0"
2023-12-06 00:17:05 -05:00
Ajay Ramachandran
b3a28f7df3
Revert "Bump axios from 1.1.3 to 1.6.0" 2023-12-06 00:16:55 -05:00
Ajay Ramachandran
f763139664
Merge pull request #566 from ajayyy/dependabot/npm_and_yarn/axios-1.6.0
Bump axios from 1.1.3 to 1.6.0
2023-11-11 10:50:35 -05:00
dependabot[bot]
da482054a4
Bump axios from 1.1.3 to 1.6.0
Bumps [axios](https://github.com/axios/axios) from 1.1.3 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.1.3...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-11 08:17:36 +00:00
Ajay
134e89af00 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2023-11-06 16:07:46 -05:00
Ajay
5cc80f9066 Use dearrow thumbnails in webhooks 2023-11-06 16:07:44 -05:00
Ajay Ramachandran
e1043aba05
Merge pull request #565 from mchangrh/ajay-has-good-tests
non-blocking coverage tests
2023-11-04 18:18:35 -04:00
Michael C
c0abedf67f
non-blocking coverage tests 2023-11-04 18:03:05 -04:00
Ajay Ramachandran
d99b7dc2c6
Merge pull request #563 from ajayyy/dependabot/npm_and_yarn/babel/traverse-7.23.2
Bump @babel/traverse from 7.18.6 to 7.23.2
2023-11-02 15:31:11 -04:00
Ajay
579e2b90a3 Make chapters easier to submit 2023-10-29 10:51:37 -04:00
Ajay
3708d293dc Add warning when locked title probably outdated 2023-10-27 00:39:36 -04:00