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
Ajay
f6c68ec29c
Add another option to get chapters submitting permission
2022-09-19 11:56:55 -04:00
Ajay
2ecf4b3a9b
Fix category votes to use category support to judge when not allowed
2022-09-12 10:59:26 -04:00
Ajay
94ca291460
Don't cut off early if last retry
2022-09-11 12:22:57 -04:00
Ajay
e84957a2c8
commit missing file
2022-09-08 15:04:33 -04:00
Ajay
1e66a2e57a
Add option to disable fallback after failure
2022-09-08 15:02:56 -04:00
Ajay
072324f0ab
Add permission request to image build action
2022-09-07 22:35:32 -04:00
Ajay
c1e5f0e117
Fix void being used in wrong context
2022-09-07 22:15:44 -04:00
Ajay
ae95f7e3ea
Only give up on replica for last retry
2022-09-07 22:10:48 -04:00
Ajay
bd7dfc63ff
Add eslint rules for dealing with promises
2022-09-07 20:01:11 -04:00
Ajay Ramachandran
0ca134dc8f
Merge pull request #500 from mchangrh/fix-tests
...
fix tests
2022-09-07 12:03:05 -04:00
Michael C
d1d7675a8c
test fixes
...
test fixes
- fix timeout in redis (by @ajayyy)
- allow "errors" in tempVIP test
- remove duplicate warning in postSkipSegments
- remove duplicate VIP in tempVIP
- run tests against different user once tempVIP removed
- fix typo in getHashCache fetching
syntax and wording
- use standard syntax in redisTest
- fix spacing in getLockReason
- typo in npm script name
test cases
- add getHashCache test case
- add more tests to redisTest
configuration
- update config to use redis timeout
- update docker-compose to use newest pinned version
Co-Authored-By: Ajay Ramachandran <dev@ajay.app>
2022-09-07 02:16:23 -04:00
Ajay
252e2305f2
Fix undefined redis timeout breaking redis
2022-09-07 01:39:26 -04:00
Ajay
9c72e20d1b
test for changing chapter category
2022-09-07 01:31:38 -04:00
Ajay
ec41102f07
Better chapter name error and increase min size
2022-09-04 22:36:26 -04:00
Ajay
08ab7e816d
Restrict changing chapters category
2022-09-02 17:48:47 -04:00
Ajay
f103a02a34
Don't check 80% for chapters
2022-09-02 17:24:10 -04:00
Ajay
b413795e45
Change chapter name suggestion requirements
2022-09-02 15:23:08 -04:00
Ajay
6a61747573
Allow chapter submission
2022-09-02 14:55:20 -04:00
Ajay
420317a18c
rename access to license
2022-09-02 13:54:09 -04:00
Ajay
af2ef3d6a5
Add product link
2022-09-02 02:15:22 -04:00
Ajay Ramachandran
9f2d13780c
Merge pull request #501 from ajayyy/chapter-auth
...
Chapter auth
2022-09-02 02:06:45 -04:00
Ajay
acec7e58e7
Add free chapters access
2022-09-01 03:21:14 -04:00
Ajay
7060c0ab0d
Add access token system
2022-08-31 01:55:38 -04:00
Ajay Ramachandran
ab6fcb8943
delete unused directory
2022-08-26 20:49:31 -04:00
Ajay
cbf352173a
throw error if query fails
2022-08-25 21:14:25 -04:00
Ajay
027ff694a0
Make redis timeout configurable
2022-08-25 20:44:16 -04:00
Ajay
9da1fc523a
Parse float instead of int
2022-08-25 15:08:54 -04:00
Ajay
44d541bafe
Don't use replica for is vip
2022-08-22 11:59:08 -04:00
Ajay
dad205e729
don't scan ratings dir for tests
2022-08-22 11:07:30 -04:00
Ajay
8dbfe17ee4
remove ratings tests
2022-08-22 11:04:33 -04:00
Ajay
38a418a37a
Remove ratings code
2022-08-22 10:56:22 -04:00