Commit Graph

355 Commits

Author SHA1 Message Date
Ajay Ramachandran
739b59c65d Clear database before running tests 2020-04-06 20:17:49 -04:00
Ajay Ramachandran
06de0d61fa Fixed crashes from multiple submissions. 2020-04-06 20:14:50 -04:00
Ajay Ramachandran
557c6ad05a Fixed discord tests 2020-04-06 20:12:12 -04:00
Ajay Ramachandran
9807d3e9c7 Merge 2020-04-06 20:05:26 -04:00
Ajay Ramachandran
761fb7dafe Merge branch 'testing' of https://github.com/ajayyy/SponsorBlockServer into categories
# Conflicts:
#	src/routes/submitSponsorTimes.js
#	test/cases/submitSponsorTimes.js
2020-04-06 20:05:09 -04:00
Ajay Ramachandran
5b577eb148 Merge pull request #70 from Joe-Dowd/auto-mod
[WIP] Auto Mode using youtube api
2020-04-06 17:34:19 -04:00
Ajay Ramachandran
f1a7524acf Fixed getIP module import 2020-04-06 17:29:52 -04:00
Ajay Ramachandran
8eca458e38 Added DB checks to tests and fixed getIP using the wrong config 2020-04-06 17:25:20 -04:00
Ajay Ramachandran
67c608e76f Added github actions logging 2020-04-06 16:59:57 -04:00
Ajay Ramachandran
3a203d249e Added Github actions 2020-04-06 16:46:19 -04:00
Ajay Ramachandran
bd2f00d5f7 Added new submission method 2020-04-06 16:43:47 -04:00
Ajay Ramachandran
b74ca3962b Updated table to include category 2020-04-06 14:05:42 -04:00
Ajay Ramachandran
77f9618e0c Merge pull request #69 from Joe-Dowd/refactor
&& in npm run dev
2020-04-04 23:40:44 -04:00
Joe-Dowd
e5cd72657e added checks using the youtube api on segment submission 2020-04-04 21:37:17 +01:00
Joe-Dowd
98d754f605 && in npm run dev 2020-04-04 18:41:18 +01:00
Ajay Ramachandran
c2ba3d0ab3 Merge pull request #68 from Joe-Dowd/refactor
nodemon to watch for changes and reload with tests for "npm run dev"
2020-04-04 11:51:52 -04:00
Ajay Ramachandran
d682898828 Removed quotes from echo 2020-04-04 11:41:38 -04:00
Ajay Ramachandran
d94c81ed23 Fixed npm run dev to work on Windows 2020-04-04 11:33:22 -04:00
Ajay Ramachandran
73599be5b8 Improved sentence structure 2020-04-04 11:18:06 -04:00
Joe-Dowd
82ee4cca0f changed npm run dev to work in cmd 2020-04-04 01:15:04 +01:00
Joe-Dowd
870b80998e updated the readme 2020-04-04 00:19:28 +01:00
Joe-Dowd
2f9f4c2bc0 Added nodemon to watch for changed and reload with tests for "npm run dev" 2020-04-03 22:25:11 +01:00
Ajay Ramachandran
1ad0c195ad Merge pull request #66 from Joe-Dowd/refactor
Refactor
2020-04-03 16:48:38 -04:00
Joe-Dowd
cc0bfef0ad added more tests (categories prep) 2020-04-03 21:45:06 +01:00
Joe-Dowd
6f2798e8c4 merged master into testing 2020-04-02 18:54:21 +01:00
Joe-Dowd
819f338c68 Ensured anything in master is implemented 2020-04-02 18:53:02 +01:00
Joe-Dowd
5d2d5819cf added db files to .gitignore 2020-04-02 18:38:00 +01:00
Joe-Dowd
393c131104 remove duplicate videoID in test cases 2020-04-01 23:42:58 +01:00
Joe-Dowd
af149b09a9 added getSavedTimeForUser test 2020-04-01 23:39:56 +01:00
Joe-Dowd
3087e05212 added getHash import for getSavedTimeForUser 2020-04-01 23:29:37 +01:00
Ajay Ramachandran
0f7d1dd801 Merge pull request #64 from Joe-Dowd/refactor
Refactor
2020-04-01 17:25:44 -04:00
Joe-Dowd
461483ea36 changed a test message 2020-04-01 22:12:32 +01:00
Joe-Dowd
7bf43cfe9a You can insert into the test db in the test scripts 2020-04-01 22:02:59 +01:00
Joe-Dowd
30d24de4d3 added http tests 2020-04-01 21:29:13 +01:00
Joe-Dowd
e2f430dd09 removed db files from test 2020-04-01 21:08:48 +01:00
Joe-Dowd
5369d48eae Added testing 2020-04-01 21:04:04 +01:00
Joe-Dowd
1bff019a64 fixed youtube / discord calls 2020-04-01 19:28:21 +01:00
Ajay Ramachandran
60dfec3375 Merge pull request #59 from Joe-Dowd/createDBFromSchema
Create DB from schema on start if config option is set
2020-03-26 21:58:59 -04:00
Ajay Ramachandran
da47098ccd Added info to config example 2020-03-26 21:58:21 -04:00
Joe-Dowd
f1ee7bb430 Removed console.log 2020-03-20 21:50:57 +00:00
Joe-Dowd
be6d75c1ff add mode condition to logger util 2020-03-20 20:14:30 +00:00
Joe-Dowd
9bf065e1f0 added request debug log without condition 2020-03-20 20:14:20 +00:00
Joe-Dowd
8543647cbc added youtube util and cors middleware 2020-03-20 20:14:14 +00:00
Joe-Dowd
5c3d18b0e2 Initial refactor (routes and utils to respective folders) 2020-03-20 20:13:55 +00:00
Ajay Ramachandran
f6826b60b0 Merge pull request #63 from Joe-Dowd/more-sponsortime-checks
Bug Fix: Don't allow Infinity to be passed into the database as a sponsor time.
2020-03-17 23:50:43 -04:00
Joe Dowd
5bf86ca7bf Don't allow Infinity to be passed into the database as a sponsor time. 2020-03-18 02:25:37 +00:00
Joe Dowd
a8cbc4fbdb Stopped initial DB from being created when missing if config option set to false. Checked for existence of schema files before executing the schema. 2020-03-10 02:10:53 +00:00
Ajay Ramachandran
67bbce0b07 Merge pull request #62 from ajayyy/experimental
Added indexes and mmap to the private db
2020-03-04 15:19:23 -05:00
Ajay Ramachandran
dd2a8b682c Added indexes and mmap to the private db 2020-03-04 15:17:50 -05:00
Ajay Ramachandran
cfba798b89 Merge pull request #61 from ajayyy/experimental
Enable memory mapped IO
2020-03-02 17:57:27 -05:00