Commit graph

2214 commits

Author SHA1 Message Date
Ajay Ramachandran
66d5622393
Merge pull request #508 from mini-bomba/searchsegments-description
Make /searchSegments return the segment description
2022-10-01 09:53:29 -04:00
Ajay Ramachandran
b7fcd9ea39
Merge pull request #509 from mini-bomba/status-startTimes
Use different startTime variables for each processTime check
2022-10-01 09:53:07 -04:00
mini-bomba
c4af2449c3
Use different startTime variables for each processTime check
This should make `processTime` and `redisProcessTime` values from /api/status more accurate
2022-10-01 15:50:47 +02:00
mini-bomba
eb5458427d
Make /searchSegments return the segment description 2022-10-01 13:46:27 +02:00
Michael C
95dd36a782
getUserInfo and free chapters tests 2022-09-30 22:58:49 -04:00
Michael C
67eb165b53
getSearchSegments tests 2022-09-30 22:58:37 -04:00
Michael C
d163b1d436
shadowban tests 2022-09-30 22:58:20 -04:00
Michael C
715d41fbb2
getStatus, token tests and mocks 2022-09-30 22:58:08 -04:00
Michael C
0b9e7029c5
minor optimizations 2022-09-30 22:57:33 -04:00
Michael C
9ef0eafac1
add istanbul exclusions 2022-09-30 22:56:59 -04:00
Michael C
d80be9e7b3
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage 2022-09-30 19:36:58 -04:00
Michael C
968ffe785f
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels 2022-09-30 19:21:54 -04:00
Ajay Ramachandran
847f1bbabb
Merge pull request #499 from mchangrh/getStatus-redis
add redis process time to getStatus
2022-09-29 16:52:16 -04:00
Ajay Ramachandran
ada32217d9
Merge pull request #503 from mchangrh/innerTubeDuration
add innerTube API, types and tests
2022-09-29 16:45:55 -04:00
Michael C
a8ddae131d
Merge branch 'master' of github.com:ajayyy/SponsorBlockServer into more-coverage 2022-09-29 15:39:36 -04:00
Ajay Ramachandran
54e53f098e
Merge pull request #506 from mini-bomba/userstats-chapters
Add Chapters to /userStats, ignore Chapters for time saved calcs
2022-09-28 12:27:11 -04:00
mini-bomba
ed251a047a
Add a test case for getUserInfo.ts ignoring chapters for time saved calc 2022-09-28 18:18:41 +02:00
mini-bomba
601a17c969
Ignore chapters for saved time calculations in getUserInfo.ts 2022-09-28 18:07:39 +02:00
mini-bomba
771fa18731
Modify getUserStats test cases to include chapter counts 2022-09-28 17:59:04 +02:00
mini-bomba
27f7b6d3c7
Add chapter category & action type to getUserStats.ts
This also fixes chapters not being counted in the segment counts.
2022-09-28 17:58:18 +02:00
Michael C
55aa33aa6e
add DiskCache to getPlayerData 2022-09-26 15:58:33 -04:00
Michael C
07926ada57
switch test videoID, remove useless import 2022-09-26 15:44:04 -04:00
Ajay
ea05284b1d Allow manual dispatch of generate sqlite base 2022-09-26 15:23:01 -04:00
Ajay Ramachandran
230191ece9
Merge pull request #473 from mchangrh/gha_b2-sync
add b2 syncing for sqlite base
2022-09-26 15:19:07 -04:00
Ajay
28448f99d9 Lock s3cmd-sync version 2022-09-26 15:17:38 -04:00
Michael C
c34de1baa4
add 4xx tests 2022-09-25 03:31:25 -04:00
Michael C
a469f2f382
add uniform parsing and catching for arrays, remove redundant check 2022-09-25 03:30:33 -04:00
Michael C
506b6570f3
add ignore next to catch errors 2022-09-25 03:29:31 -04:00
Michael C
8562dc2240
lint fix 2022-09-25 02:05:51 -04:00
Michael C
005ae2c9fb
add ignores for impossible cases 2022-09-25 02:04:51 -04:00
Michael C
9ca087206e
add token tests 2022-09-25 02:04:30 -04:00
Michael C
c0952c15c8
fix getTotalStats userCount 2022-09-24 23:08:36 -04:00
Michael C
47616711ce
move patreon mock 2022-09-24 22:52:55 -04:00
Michael C
7457b51aa4
add getByHash tests, remove redundant check
- `{}` always returns true so the early exit is never taken
2022-09-24 22:51:52 -04:00
Michael C
a00048aaac
add getIP test cases, misc others 2022-09-24 22:51:20 -04:00
Michael C
6499381b4f
add coverage reports to PostgreSQL tests 2022-09-24 22:49:53 -04:00
Michael C
0a102c15fd
add lockCategory tests and typo tweak 2022-09-24 22:48:48 -04:00
Michael C
e0be4744be
fix tokenUtils tests, skip if not configured 2022-09-24 22:48:23 -04:00
Michael C
dd7656d143
add lockCategories tests, getUserInfo 2022-09-24 22:47:40 -04:00
Michael C
f683ed4f29
add userCounter mocks and rearrange webhook path 2022-09-24 22:47:18 -04:00
Michael C
3f470a72f5
add additional/missing tests 2022-09-24 22:46:35 -04:00
Michael C
f5bafa2868
add nyc output to gitignore 2022-09-24 22:46:16 -04:00
Michael C
b652102c42
move mocks to subfolder 2022-09-24 22:45:23 -04:00
Ajay Ramachandran
55db24ab74
Merge pull request #505 from mchangrh/tokenValidateRegex
add fast fails for local and gumroad license keys
2022-09-24 21:09:16 -04:00
Michael C
551e103158
add tregex for both patreon and gumroad 2022-09-24 20:13:35 -04:00
Michael C
8fc01ba138
add fast fails for local and gumroad license keys 2022-09-22 20:30:10 -04:00
Ajay
1c1496afbc Change free chapter to use historical rep 2022-09-22 14:50:48 -04:00
Ajay
7007ab05e1 Handle errors from redis store in request rate limit 2022-09-22 11:12:47 -04:00
Ajay
30bac658ed Remove old permission workaround 2022-09-21 21:52:55 -04:00
Ajay
f6f83fcbe4 Add concurrent request limit 2022-09-20 23:41:36 -04:00