Ajay
22b4135d62
Fix flaky test
2022-02-21 22:58:23 -05:00
Ajay Ramachandran
de7b985535
Merge branch 'master' into voteOnSponsorTime
2022-02-10 23:00:51 -05:00
Michael C
0ff38b918b
fix tests, add add actionType tests
2022-02-04 00:40:13 -05:00
Michael C
5713b96d13
add test for downvote videoDuration change
2022-02-04 00:21:15 -05:00
Michael C
a2f2cf9c0d
update lockCategories
...
- migration to remove invalid locks
- lockCategories poi_highlight is now actionType poi
- deleteLockCategories now takes actionType
- update postLockCategories response, serverside filtering for accepted categories
- fix tests accordingly
2022-02-03 17:44:29 -05:00
Michael C
2b8944bf15
correct tempVIP test
2022-02-03 13:51:15 -05:00
Michael C
db5922e4b7
fix tempvip cases
2022-02-03 13:49:13 -05:00
Michael C
0854ad1f65
rewrite voteOnSponsorTimes
2022-02-03 06:06:54 -05:00
Michael C
830fdff3be
add full video and exclusive_access support
2022-01-19 21:53:40 -05:00
Ajay
6ece944536
Highlight category now has it's own action type
2022-01-19 17:48:09 -05:00
Ajay
a31a4d016f
Fix lock reason test
2022-01-16 13:19:42 -05:00
Ajay Ramachandran
b39d323a22
Merge pull request #444 from mchangrh/full-tests
...
Tests for full video locks
2022-01-16 13:17:19 -05:00
Ajay Ramachandran
bfd017a66a
formatting
2022-01-16 13:16:13 -05:00
Ajay Ramachandran
ea196e84f1
Merge pull request #439 from mchangrh/channelVipTests
...
additional tests for tempVIP
2022-01-16 12:54:22 -05:00
Ajay
76bfd27b33
Add exclusive access category
2022-01-14 00:23:09 -05:00
Ajay
6fe7200481
don't allow category vote for full video segment
2022-01-14 00:21:13 -05:00
Michael C
ea4adc0e14
getLockCategories + lint
2022-01-07 18:12:20 -05:00
Michael C
6ec80df8f4
update getLockReason
2022-01-07 03:04:47 -05:00
Haidang666
a1b59cba34
remove deprecated method: String.substr
2022-01-07 13:59:47 +07:00
Michael C
0584492b8c
getLockCategories
2022-01-06 23:56:27 -05:00
Ajay Ramachandran
b2e37804f5
Merge pull request #440 from ajayyy/full-video-labels
...
Full video labeling
2022-01-06 15:55:11 -05:00
Ajay
cb9b2ff965
Fix test data using wrong hash
2022-01-06 15:28:44 -05:00
Ajay
ad4c34ef28
Fix UUID test
2022-01-06 15:20:41 -05:00
Ajay
d5d73273de
Don't autohide full video segments for duration change
2022-01-06 14:45:05 -05:00
Ajay
44ffa40b6c
Should not add full segments to db from shadowbanned users
2022-01-06 14:15:50 -05:00
Ajay
b4f8bdd719
Add test for submitting full video converting to upvote
2022-01-06 14:10:41 -05:00
Ajay
6a98a215ac
Don't group different categories
2022-01-04 20:39:50 -05:00
Ajay
89ea13956a
Ensure only one full video label is served
2022-01-04 19:27:50 -05:00
Ajay
8fef35dbbc
Allow submitting full sponsors and selfpromo
2022-01-02 22:38:06 -05:00
Ajay
09eec5a4a5
Add locking by action type
2022-01-02 14:00:54 -05:00
Michael C
05516a5d7d
fix postgres quotes & fixed test.json
2021-12-31 17:12:46 -05:00
Michael C
a42f023074
add more testing, change enabled
...
- add 404 if channelID cannot be dervived
- added response message on success returning channel name
- test limits of temp VIP
- minor eslint
2021-12-31 16:54:28 -05:00
Ajay Ramachandran
ce4270b96d
Merge branch 'master' into categoryLeaderboards
2021-12-31 14:04:20 -05:00
Ajay Ramachandran
df3d6fe9c7
Merge pull request #438 from mchangrh/tempVIP
...
channel-specific VIP
2021-12-31 14:02:05 -05:00
Michael C
a1d28fbfe1
add addUserAsTempVIP
2021-12-31 04:26:37 -05:00
Michael C
b9a620fc3b
add redis status/min
2021-12-30 16:47:11 -05:00
Michael C
f97af4c433
texts for getTopCategoryUsers
2021-12-30 04:07:38 -05:00
Michael C
98994cee01
add getTopUsers test
2021-12-30 04:07:21 -05:00
Ajay
13a4bc3ee9
Fix tests
2021-12-29 00:19:53 -05:00
Ajay
95d14c0fdb
Allow overlaping non music with other categories
2021-12-21 11:21:19 -05:00
Ajay Ramachandran
1c304b636f
Merge pull request #430 from mchangrh/filler
...
add filler to userStats and getTopUsers
2021-12-20 23:44:24 -05:00
Ajay Ramachandran
4e94cdda72
Merge pull request #432 from mchangrh/eslint-and-workflow
...
eslint + workflow formatting
2021-12-20 23:44:09 -05:00
Ajay
66af4f60c8
Add test for different categories at same time
2021-12-20 23:07:12 -05:00
Michael C
3dd9024cc7
eslint + workflow formatting
...
- appropriate job names
- only trigger on pushes to master branch & PRs
- conform to formatting
2021-12-20 23:04:41 -05:00
Ajay
5ebb638925
Add overlapping group caching
2021-12-20 22:51:47 -05:00
Ajay Ramachandran
7aa9524835
Merge pull request #429 from mchangrh/redis-test
...
add redis tests
2021-12-20 22:50:21 -05:00
Ajay Ramachandran
f6d68bb3f3
Merge pull request #421 from HaiDang666/392_getSearchSegments-pagination
...
add custom pagination in getSearchSegments
2021-12-20 22:36:22 -05:00
Michael C
2ee7c82760
add test for filer
2021-12-20 00:27:38 -05:00
Ajay Ramachandran
5a358caedb
Merge pull request #419 from mchangrh/patch-1
...
[searchSegments] ignore if votes <= -2
2021-12-19 21:00:45 -05:00
Ajay Ramachandran
e2e4f79cec
Merge pull request #428 from mchangrh/userNameRows
...
remove empty rows from userNames
2021-12-19 21:00:27 -05:00
Michael C
1f9dc92074
add arrayDeepPartialEquals
2021-12-19 19:37:22 -05:00
Michael C
68bc6469ce
add redis tests
2021-12-19 02:03:50 -05:00
Haidang666
89a83f78cc
add more test on limit, page
2021-12-19 10:13:06 +07:00
Michael C
544af7ce15
remove empty rows from userNames
2021-12-18 21:33:38 -05:00
Michael C
ba07137933
remove extra print from test
2021-12-18 20:53:17 -05:00
Haidang666
ec73ae309e
add custom pagination in getSearchSegments
2021-12-17 15:08:51 +07:00
Michael C
292b05443f
ignored segments should exclude downvote
2021-12-10 16:40:34 -05:00
Ajay Ramachandran
6f05b5b92d
Merge pull request #412 from mchangrh/requiredSegment/shortHash
...
get requiredSegments by partial hash
2021-12-02 23:44:29 -05:00
Ajay Ramachandran
9bc65d566a
Merge pull request #417 from ajayyy/bulk-ratings
...
Add bulk rating fetching
2021-12-02 23:44:09 -05:00
Ajay Ramachandran
48ac8d1136
Add test for get bulk rating
2021-12-02 23:12:48 -05:00
Michael C
8fe0a45435
add partial lookup
2021-11-30 18:58:37 -05:00
Ajay Ramachandran
d55a860114
Merge pull request #406 from mchangrh/searchSegments/userID
...
add userID to searchSegments
2021-11-28 11:20:14 -05:00
Michael C
4584dbc047
add userID to searchSegments
2021-11-20 01:15:33 -05:00
Michael C
0a869dbbd7
strict check for videoID length
2021-11-19 02:27:42 -05:00
Michael C
ad7574308f
clear rating cache
2021-11-15 01:50:09 -05:00
Michael C
b9ebd00365
fixed tests, typos and optimized code for ratings
2021-11-15 01:17:36 -05:00
Ajay Ramachandran
bc6db0d109
Add endpoints for rating endpoint (dislikes)
...
https://github.com/ajayyy/SponsorBlock/issues/1039
2021-11-14 23:09:12 -05:00
Ajay Ramachandran
e85a0d4f28
Fix lock reason test with filler
2021-11-08 19:28:27 -05:00
Ajay Ramachandran
16c5819f5c
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into chapters
2021-11-08 19:26:39 -05:00
Ajay Ramachandran
db48953e39
Allow mute intro, outro, preview and add filler
2021-11-08 19:24:58 -05:00
Ajay Ramachandran
a2698fb70d
Set all videoInfo values in chapters name test
2021-11-06 23:18:28 -04:00
Ajay Ramachandran
6919b5433b
Add suggested chapter names
2021-11-06 22:43:03 -04:00
Ajay Ramachandran
0b7904f891
Add test case for small part that is the same action type
2021-11-06 17:40:26 -04:00
Ajay Ramachandran
c0072d5c72
Add another segment to overlap test case and fix for that case
2021-11-06 17:28:58 -04:00
Ajay Ramachandran
7eef74a7dc
Add new % overlap function used for chapters
...
Kind of #107
2021-11-06 16:09:55 -04:00
Ajay Ramachandran
32150e4a1d
Add submitting description for chapters
2021-11-06 00:54:28 -04:00
Ajay Ramachandran
991d384f11
Merge pull request #398 from mchangrh/userID-skipSegments
...
add userID to getSkipSegments
2021-10-30 21:50:32 -04:00
Michael C
88a368d0b9
add tests for shadowban
2021-10-30 17:58:17 -04:00
Michael C
9d761815d8
add userID to getSkipSegments
2021-10-27 17:03:16 -04:00
Ajay Ramachandran
eecb238e18
Merge pull request #389 from mchangrh/replication-mirror
...
changes for mirror mode
2021-10-26 20:34:22 -04:00
Ajay Ramachandran
3877cd580c
Merge pull request #391 from HaiDang666/388_lock-user-with-reason
...
add username in get lock reason route
2021-10-26 20:26:44 -04:00
Ajay Ramachandran
393027c1ea
Merge pull request #386 from mchangrh/more-stats
...
add loadAvg to status
2021-10-26 20:24:06 -04:00
Felix Hoang
b715b30ae6
add username in get lock reason route
2021-10-24 16:04:18 +07:00
Michael C
fd6ae8fc0e
bargaining with postgres CI
...
- fix tests with lockCategories
- new unique naming scheme for video
- super janky somehow working method for comparing arrays out of order
2021-10-22 03:53:27 -04:00
Michael C
109578a3ed
remove extra console.log lines
2021-10-20 00:59:08 -04:00
Michael C
ac15686b47
add loadAvg to status
2021-10-20 00:16:27 -04:00
Michael C
5cf7a61de1
restructure for postgres
2021-10-19 23:14:52 -04:00
Michael C
d0deb6fe27
finish tests and remove extra console.logs
2021-10-19 23:06:47 -04:00
Ajay Ramachandran
450f4a2d44
Store video info from submissions
2021-10-17 14:42:48 -04:00
Ajay Ramachandran
f6d6e93847
Return locked and votes in skipSegment calls
...
#379
2021-10-15 00:14:59 -04:00
Ajay Ramachandran
658e391f50
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into pr/FlorianZahn/376
2021-10-03 13:11:25 -04:00
FlorianZahn
69e321c405
Improved formatting
2021-10-03 19:03:49 +02:00
FlorianZahn
178c4d9792
Remove comment
...
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2021-10-03 18:53:34 +02:00
FlorianZahn
7135aa3369
removing console.log() commands
2021-10-02 05:11:26 +02:00
FlorianZahn
aacd297b3b
Fixed bugs where normal users could cirumvent vip locks by changing categories
2021-10-02 05:04:18 +02:00
FlorianZahn
bb2a007ed1
first changes and timeout on 2nd test
2021-10-02 04:39:54 +02:00
Haidang666
356974b478
add service to table only have videoID
2021-09-30 13:56:55 +07:00
Michael C
82c5c70eb7
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into switch-axios
2021-09-26 18:13:27 -04:00
Michael C
6433f50edf
replace node-fetch with axios in src
2021-09-23 01:21:10 -04:00
Michael C
28d637f620
remove extra async and extra utils
2021-09-22 23:34:46 -04:00
Michael C
4e50f0ab4b
remaining tests
2021-09-22 23:18:31 -04:00
Michael C
a028eaa41a
object-curly-spacing
2021-09-22 18:52:35 -04:00
Michael C
5dcc90b31a
fix CI errors
2021-09-22 18:46:13 -04:00
Michael C
a5c88693b8
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into reWriteAxios
2021-09-22 18:44:23 -04:00
Michael C
9b6808273b
json as any
2021-09-22 17:57:12 -04:00
Michael C
c779c2c19e
everything to postClearCache
2021-09-22 17:50:06 -04:00
Michael C
94e1e8c377
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into reWriteTests
2021-09-21 02:03:05 -04:00
Michael C
5758f6512d
move utils to seperate files and folder, update imports
2021-09-21 02:02:17 -04:00
Michael C
ce0073e7b0
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getLockReason
2021-09-18 23:26:49 -04:00
Michael C
c0074c9f8c
add tests
2021-09-18 23:24:23 -04:00
Michael C
d4d9f2d4d7
remove unnecessary async await
2021-09-17 00:03:42 -04:00
Michael C
802dd50163
naming
2021-09-17 00:01:29 -04:00
Michael C
9e9fcd47c0
finished other tests
2021-09-16 23:59:19 -04:00
Michael C
e7d55d1e1b
everything after postClearCache
2021-09-16 23:05:16 -04:00
Michael C
7cef510b29
quoted
2021-09-16 20:50:59 -04:00
Michael C
870ade6fa9
postSkipSegments
2021-09-16 20:44:12 -04:00
Ajay Ramachandran
803c3f2a29
Merge pull request #357 from mchangrh/getUserStats
...
add getUserStats
2021-09-15 20:45:52 -04:00
Ajay Ramachandran
4d9e595470
Rename user stats parameters
2021-09-15 20:44:20 -04:00
Haidang666
93c69248d9
Add getService helper function
2021-09-13 14:49:17 +07:00
Michael C
18c1735087
acceptance
2021-09-07 00:48:01 -04:00
Michael C
46270cfe84
partialDeepEquals for varying orders
2021-09-07 00:32:32 -04:00
Michael C
3d30eea1cb
add categoryStats and typeStats
2021-09-07 00:13:52 -04:00
Ajay Ramachandran
1e05c04a39
Allow mute and skip segments with same times
2021-09-05 22:40:40 -04:00
Michael C
6e55f9d979
everything up to purgeAllSegments
2021-09-04 19:23:43 -04:00
Michael C
9b05ee96af
add getUserStats
2021-09-04 17:06:49 -04:00
Ajay Ramachandran
1823a91d54
Limit mute action type to specific categories
2021-09-04 00:33:37 -04:00
Ajay Ramachandran
9cbea88f6f
Merge pull request #353 from mchangrh/statusOptions
...
get status with options
2021-09-02 12:04:38 -04:00
Michael C
74626f8e3f
more endpoints!
2021-09-01 23:49:18 -04:00
Michael C
fa1166e5d8
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into searchSegments
2021-09-01 23:26:55 -04:00
Michael C
664db71104
get status with options
2021-09-01 23:24:43 -04:00
Michael C
e12724af15
add getStatus and cases
2021-09-01 16:52:41 -04:00
Michael C
e9bffd0cf2
add test cases and fixed bugs
2021-09-01 13:53:06 -04:00
Ajay Ramachandran
13480fe96c
Merge pull request #346 from mchangrh/update-dependencies
...
Update dependencies & eslint
2021-08-31 12:23:48 -04:00
Michael C
5f8a319f48
update matrix link
2021-08-29 14:58:41 -04:00
Michael C
e53f65f324
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into update-dependencies
2021-08-28 01:49:23 -04:00
Michael C
9e488b8917
Merge branch 'master' of github.com:mchangrh/SponsorBlockServer into poi-restriction
2021-08-28 01:39:52 -04:00
Michael C
b3320ab0fd
submit test as poi_highlight
2021-08-28 01:38:00 -04:00
Ajay Ramachandran
7ef28d859f
Merge pull request #343 from mchangrh/409-ban-exists
...
re-shadowban user
2021-08-28 00:20:22 -04:00
Michael C
1c2dd055c1
Update dependencies & eslint
...
- update API-Docs link
- cast err as string to appease eslint
- update package and bump minimum to fix security issue
- removed unnecessary filters from gitignore
2021-08-27 17:09:31 -04:00
Michael C
c448bb3d9a
add test case
2021-08-27 16:44:29 -04:00
Michael C
265a01dcde
re-shadowban user
...
if user is already shadowbanned but unhideOldSubmissions is true, sets all submissions to hidden. If not true, then return 409 duplicate
2021-08-25 01:56:34 -04:00
Michael C
c3f7b29d44
throw error 400 when start or endtime has colon
2021-08-24 19:12:58 -04:00
Ajay Ramachandran
f1f5bdb2be
Fix test
2021-08-17 22:08:51 -04:00
Ajay Ramachandran
5965879ed1
Rename highlight category to poi_highlight
2021-08-17 22:01:12 -04:00
Ajay Ramachandran
c869e60b04
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-08-10 23:13:59 -04:00
Ajay Ramachandran
d653f00a2d
Print when partial deep equals fails
2021-08-10 23:13:56 -04:00
Ajay Ramachandran
1cbd162a22
Support commas in timestamps
2021-08-10 23:12:20 -04:00
Ajay Ramachandran
fa901add35
print error in tests
2021-08-10 10:52:02 -04:00
Michael C
58551ba37f
add maxRewardTime
2021-08-06 00:51:22 -04:00
Michael C
5ad7c6a3ba
catch all error in endpoint
2021-08-06 00:51:22 -04:00
Ajay Ramachandran
71c01c0f3b
add option to get ban status from user info
2021-08-05 20:11:05 -04:00
Michael C
ed0d832e08
use partialDeepEquals for tests
2021-08-03 00:19:37 -04:00
Michael C
b39c06a9ef
add tests, new partialDeepEquals
2021-08-02 21:59:06 -04:00
Michael C
7dff254604
add userAgent to tests
2021-08-01 15:28:17 -04:00
Haidang666
85e78d2490
Use assert in test
2021-08-01 14:59:25 +07:00
Ajay Ramachandran
3368615a77
Add test for body user agent
2021-08-01 02:57:02 -04:00
Ajay Ramachandran
8f0f01e6b2
Parse user agent header
2021-07-31 21:49:10 -04:00
Ajay Ramachandran
e056c30f05
Merge pull request #327 from HaiDang666/324_user-agent
...
Store user-agent in postSkipSegment
2021-07-31 20:56:00 -04:00
Haidang666
01cbf67bcb
Fix test on new warning reason format
2021-07-30 13:50:46 +07:00
Haidang666
ce193b60f7
Store user-agent in postSkipSegment
2021-07-30 13:47:21 +07:00
Michael C
32056ab2f1
re-enable warning if still within issue time
2021-07-28 02:52:00 -04:00
Haidang666
c701998a35
return reason in locked categories when submission fail
2021-07-27 14:03:51 +07:00
Ajay Ramachandran
9aa0ff6de6
Merge pull request #319 from HaiDang666/266_final
...
Update: most upvoted segments on locked videos as locked submissions
2021-07-26 23:48:58 -04:00
Ajay Ramachandran
37ea8adb73
assert fixed value
2021-07-26 23:46:26 -04:00
Ajay Ramachandran
7b15957bb8
fix tests
2021-07-25 14:34:55 -04:00
Haidang666
0eb298a943
Update query and test
2021-07-24 15:09:30 +07:00
Ajay Ramachandran
0990a9b87d
Add semicolon
2021-07-22 20:00:42 -04:00
Michael C
87727ef360
fix tests and linting
2021-07-22 17:50:39 -04:00
Haidang666
2773c5f500
Update: most upvoted segments on locked videos as locked submissions
2021-07-21 16:16:58 +07:00
Ajay Ramachandran
c070e5f40d
Fix falsey values getting through tests
2021-07-20 17:21:22 -04:00
Michael C
f774df972d
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into stricter-eslint
2021-07-18 14:30:27 -04:00
Michael C
2075ed46e1
added null warningReason
2021-07-18 02:39:37 -04:00
Michael C
fdb88dd401
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getUserInfo/param
2021-07-18 02:38:12 -04:00
Michael C
205958464a
new stringDeepEquals
2021-07-18 02:33:57 -04:00
Michael C
a7aaffcfe5
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into stricter-eslint
2021-07-18 02:27:48 -04:00
Michael C
8ee51a1cb0
testing CI
2021-07-14 14:11:34 -04:00
Michael C
5f2bc37e96
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into stricter-eslint
2021-07-13 15:55:03 -04:00
Michael C
59bad90480
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getLockCategories/reason
2021-07-13 13:51:51 -04:00
Ajay Ramachandran
a342ad5bda
Merge pull request #316 from mchangrh/400-on-noparam
...
Return 400 if no parameters specified
2021-07-12 14:17:20 -04:00
Ajay Ramachandran
3d0b9edb9c
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2021-07-12 11:05:14 -04:00
Ajay Ramachandran
a23ec160c0
Make reputation take into account more recent segments
2021-07-12 11:05:12 -04:00
Michael C
8b3ffe5d0d
fix eslint for tests
2021-07-12 02:43:46 -04:00
Michael C
a8f7080bf2
fix typo in tests
2021-07-12 00:32:51 -04:00
Michael C
d9a66a5894
quote & check for db version
2021-07-12 08:59:12 +07:00
Haidang666
bbb1db014c
Add archive downvote function unit test
2021-07-12 08:59:12 +07:00
Michael M. Chang
0b7ba793b4
Merge branch 'master' into 400-on-noparam
2021-07-11 14:27:32 -04:00
Michael C
e8d0da3ce3
add 400 conditions
2021-07-10 16:30:30 -04:00
Michael C
7e977ad811
add warningReason and specify returned types
2021-07-09 12:07:36 -04:00
Michael C
2d38ef921e
use deepStringEqual instead of deepAssert
2021-07-08 00:59:15 -04:00
Michael C
9f05595cd6
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into testAssert
2021-07-08 00:51:56 -04:00
Michael C
178ed1e5af
replace if tests with assert
2021-07-08 00:39:57 -04:00
Ajay Ramachandran
2105cdf10b
Fix segment id test
2021-07-07 18:24:16 -04:00
Michael C
596dbf4ac8
404 tests
2021-07-07 17:39:16 -04:00
Michael C
9088d9fb9e
additional tests
2021-07-07 17:37:40 -04:00
Michael C
4a835d5306
fix typos
2021-07-07 16:44:05 -04:00
Michael C
7d62fcd8cc
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getLockCategories/reason
2021-07-07 16:31:37 -04:00
Michael C
3371c6a099
add reason to getLockCategories
2021-07-07 00:22:05 -04:00
Haidang666
feba2af9ed
Fix any type
2021-07-06 13:42:08 +07:00
Haidang666
6fcfeb2889
Fix deep equal fail
2021-07-06 13:36:56 +07:00
Haidang666
14f55c9ee5
Add lock category reason
2021-07-06 13:31:44 +07:00