Commit Graph
2360 Commits
Author SHA1 Message Date
zkldi 9aad359673 Add GetAllRankings and change game-stats' return. 2021-09-04 01:20:15 +01:00
zkldi 04e3ae5bec Fix another typo... 2021-09-03 12:13:12 +01:00
zkldi 2653854676 Fix typo 2021-09-03 12:10:54 +01:00
zkldi 45cfd4745e OAuth2 Support. 2021-09-03 10:57:44 +01:00
zkldi b208c2f424 Add oauth2 database collections 2021-09-03 07:29:50 +01:00
zkldi ee1072f922 bump tachi-common 2021-09-03 07:29:38 +01:00
zkldi 21404d18a6 Add API Token managing endpoints. 2021-09-03 07:29:29 +01:00
zkldi 20c3c06055 Add user-private-info migration script 2021-09-03 01:26:48 +01:00
zkldi 33d1fa39d8 Update user migration script 2021-09-03 01:25:12 +01:00
zkldi d79ef3ff0f Update tachi-common type usage in test files 2021-09-03 01:23:41 +01:00
zkldi 289487e61e Remove unused schema 2021-09-03 01:23:09 +01:00
zkldi 8db6b8d466 Add index for user-private-information 2021-09-03 01:23:02 +01:00
zkldi 093d6efaea Refactor test data to use new users layout 2021-09-03 01:22:50 +01:00
zkldi e14527e367 Refactor user authentication to not use PrivateUserDocuments 2021-09-03 01:14:56 +01:00
zkldi cce36fa1da Bump Tachi-common 2021-09-03 01:14:40 +01:00
zkldi 5decf66d4e Ignore test-cdn files 2021-09-03 01:14:35 +01:00
zkldi b0e61358d1 Move Databases type from tachi-common to tachi-server 2021-09-03 00:53:48 +01:00
zkldi ce6c28b89f Reject CN/HCN mode scores. 2021-09-02 23:49:07 +01:00
zkldi 8fef60c065 Return null for unofficial usc charts. 2021-09-02 23:42:17 +01:00
zkldi ebfb0e8284 Update _README 2021-09-02 23:13:22 +01:00
zkldi 9131ae8f01 Pass logger in fer_static aswell 2021-09-02 17:43:47 +01:00
zkldi fc274ea5c2 Support DP randoms and add test cases 2021-09-02 17:06:28 +01:00
zkldi 7ae2208869 Add style_2p and some warning messages 2021-09-02 16:58:38 +01:00
zkldi 62f62bd24c Make tests honor unique usernamelowercase index 2021-09-02 16:34:15 +01:00
zkldi 2f60ae20c4 User settings changes should also mutate sessions 2021-09-02 16:29:22 +01:00
zkldi 25461e4292 User settings mutates session and now requires selfkey auth 2021-09-02 16:25:29 +01:00
zkldi ed8b925ed6 add unique indexes for usernames 2021-09-02 16:25:12 +01:00
zkldi ef1df10d8f Assign user info from JWT if present 2021-09-02 16:08:26 +01:00
zkldi f988e5af09 Bump tests 2021-09-02 16:02:22 +01:00
zkldi 4ccc342832 remove unused gptConfig 2021-09-02 16:00:08 +01:00
zkldi 3b03f1c506 Change /:ugpt to retrieve all ranking infos 2021-09-02 15:59:54 +01:00
zkldi dce6b6e20a Refactor GetUsersRankingAndOutOf 2021-09-02 15:58:42 +01:00
zkldi bba646af26 Implement Alg mode for /pbs/best 2021-09-02 15:58:23 +01:00
zkldi 42bf93e840 Small linter fix 2021-09-02 15:29:38 +01:00
zkldi b79804d273 Fixing Random Test Failure (#309)
* Test 1: Async Wrapping

* Revert "Test 1: Async Wrapping"

This reverts commit 8f0e0d283686d367e18275684cc7858af0538515.

* Pin github actions node version to the same as ours

* Revert "Pin github actions node version to the same as ours"

This reverts commit 3758ee05ef5647f608ef3fd1c85b88eb97e3f077.

* Move lint step to after running tests

* add a NO_CONSOLE config option

* temporarily set log level to debug

* Enable more mongodb logging in testing

* Experimentally bundle before script into SPT.

* run without any before

* Revert "Experimentally bundle before script into SPT."

* Revert "Enable more mongodb logging in testing"

This reverts commit c11f918c850dc53cb49b262cb0b51141ac132aab.

* Fix missing import

* Re add the mongodb logging

* Set LOG_LEVEL back to reasonable levels

* Increase timeouts for mongo and redis connections

* Change how codecov works

* Use ServerSelectionTimeoutMS instead of connect

* pls?

* Bump TAP Timeout to 4 minutes, which we'll probably never hit.
2021-09-01 06:26:37 +01:00
zkldi 0818f4d812 Add global user settings
Fixes #305
2021-08-31 21:11:23 +01:00
zkldi 7edb0f0779 Remove nonsense comment in CalculateKTRating 2021-08-31 01:32:00 +01:00
zkldi c08cabc33b Humanise success message in PUT /showcase 2021-08-31 01:01:08 +01:00
zkldi 2d47e6ed89 Define OPTIONS_ALWAYS_SUCCEEDS for development purposes 2021-08-30 20:38:09 +01:00
zkldi 6048273e52 rename local-cdn to test-cdn in test.conf.json5 2021-08-30 20:34:24 +01:00
zkldi 41a0eeea4e Accidentally broke a couple tests, sorry! 2021-08-30 02:18:30 +01:00
zkldi a677f89e6c rename value to result 2021-08-30 01:44:56 +01:00
zkldi 4cddd5594c fix test property names 2021-08-30 01:33:10 +01:00
zkldi 1ae2f42588 Fix naming bug with prop and property 2021-08-30 01:32:53 +01:00
zkldi d6b5a121d7 Revert "BP PB Should also set the hitMeta.comboBreak prop."
This reverts commit c68379a13b.
2021-08-29 22:21:19 +01:00
zkldi c68379a13b BP PB Should also set the hitMeta.comboBreak prop. 2021-08-29 21:53:08 +01:00
zkldi fa555aa9a3 Get ranking in /users/:userID/stats 2021-08-27 23:27:28 +01:00
zkldi 0273add081 add dump.rdb to gitignore 2021-08-27 23:27:17 +01:00
zkldi 33ea645c4e gitignore Local-CDN 2021-08-27 07:27:13 +01:00
zkldi 8eba6a231e Improve running own CDN message 2021-08-26 18:08:14 +01:00