Commit Graph
1790 Commits
Author SHA1 Message Date
zkldi 9ccb49ce07 style: remove unused imports 2022-04-23 05:55:59 +01:00
zkldi 5757348dd6 style: replace Playtypes[Game] with Playtype 2022-04-23 05:55:37 +01:00
zkldi c6d4373f2e fix: make revert-import require delete_score perm 2022-04-23 00:58:21 +01:00
zkldi 7969460dd5 fix: perform 401 checks in RequireOwnerships 2022-04-23 00:57:54 +01:00
zkldi 63f19ce77b test: add tests for import endpoints 2022-04-23 00:57:40 +01:00
zkldi a1147401d2 style: remove unused import 2022-04-23 00:52:38 +01:00
zkldi 679a769fc0 refactor: add mkFakeImport util function 2022-04-23 00:40:17 +01:00
zkldi 2bd6468291 feat: add a revert-import endpoint 2022-04-23 00:33:27 +01:00
zkldi 14dd9ae257 test: add tests for reverting imports 2022-04-23 00:24:29 +01:00
zkldi f15a8cd14e feat: add import library for reverting imports 2022-04-23 00:22:38 +01:00
zkldi fd3d77c4ad style: remove unused import 2022-04-22 23:18:23 +01:00
zkldi 77f3ba76a4 fix: Move FAKE_MIGRATION out of test-data
Attempting to depend on anything inside test-utils at runtime is a
footgun, and may result in the server not booting.

This patch stops the server from depending on something that might not
exist at runtime, such as test-utils/test-data trying to get the buffer
of the eamusement csv and failing catastrophically.
2022-04-22 23:13:18 +01:00
zkldi 14a59235c5 test: add tests for batch-manual string classes 2022-04-22 21:13:40 +01:00
zkldi ea7d36e2ae BREAKING: make batch-manual classes take strings instead of ints 2022-04-22 21:13:26 +01:00
zkldi ed149f6fa8 Merge pull request #695 from TNG-dev/zkldi/issue-370 2022-04-22 19:02:58 +00:00
zkldi 80db6fb410 feat: properly define schemas from tachi-common 2022-04-22 19:12:50 +01:00
zkldi 60669e6d12 fix: Delete _id off of expected results 2022-04-22 18:48:52 +01:00
zkldi bea7e1456e refactor: move ALL_PERMISSIONS to tachi-common 2022-04-22 18:45:51 +01:00
zkldi 4f31d7be3b test: add regression tests to GetUsersWIthIDs 2022-04-22 18:39:20 +01:00
zkldi 8cc76c9e3b fix: make GetUsersWithIDs not throw on duplicate userID input 2022-04-22 18:36:50 +01:00
zkldi cb8adadfd8 refactor: simplify StaticDatabases declaration 2022-04-22 18:05:56 +01:00
zkldi 2940808915 style: add a comment explaining unapplied migrations 2022-04-22 04:47:48 +01:00
zkldi 0a79e3690e style: remove unused imports 2022-04-22 02:22:43 +01:00
zkldi 715906eefb test: add tests for migrations 2022-04-22 02:12:32 +01:00
zkldi b70f02de01 fix: make update script update more than one record 2022-04-22 01:43:23 +01:00
zkldi 960a7e93d3 fix: Remove migrations from pending when they fail 2022-04-21 18:36:27 +01:00
zkldi 6941c0707e feat: add schema for migrations 2022-04-21 18:35:22 +01:00
zkldi 102dd04266 fix: give migrationID a unique index 2022-04-21 18:15:06 +01:00
zkldi cb7e9f8946 style: Add comment for migration failures 2022-04-21 17:31:19 +01:00
zkldi 9fe155bf71 feat(migrations): apply unapplied migrations on init 2022-04-21 17:28:59 +01:00
zkldi c1900e1c93 feat(migration): add ugpt-rivals migration script 2022-04-21 17:22:30 +01:00
zkldi eaf2761c96 fix(migrations): add more logging 2022-04-21 17:22:15 +01:00
zkldi b1248f861a feat(migration): create a skeleton framework for applying migrations 2022-04-21 17:17:28 +01:00
zkldi f8b618c536 feat: add migration script 2022-04-21 16:10:47 +01:00
zkldi 4c4288aeb3 test: Add tests for rival endpoints 2022-04-21 16:04:30 +01:00
zkldi df480f5515 fix: make GetChallengerIDs return challengers instead of rivals 2022-04-21 16:03:16 +01:00
zkldi 600ac12d68 refactor: change rival err handling to use error codes 2022-04-21 15:52:25 +01:00
zkldi 1cbcf781e8 style: remove unused import 2022-04-21 06:07:15 +01:00
zkldi 5c2bfc25e1 refactor(rivals): make rival assignment honour manage_rivals 2022-04-21 06:06:49 +01:00
zkldi 3205a82a05 refactor(test-utils): add cleaner convenient test utils 2022-04-21 06:01:34 +01:00
zkldi 07f950beae fix: unbreak tests as a result of the rivals addition 2022-04-21 05:29:56 +01:00
zkldi 282139861c feat(rivals): add challengers endpoint 2022-04-21 05:13:19 +01:00
zkldi 41ddd2de71 feat: index rivals in game-settings 2022-04-21 04:16:40 +01:00
zkldi 42c45c5534 fix: make rivalling yourself illegal 2022-04-21 04:16:34 +01:00
zkldi 5ba924cb49 fix: game-settings should insert with an empty rivals array. 2022-04-21 04:10:57 +01:00
zkldi b98492e2ee feat: add get/set rival endpoints 2022-04-21 04:09:28 +01:00
zkldi f4880c1b06 style: fix outdated prudence comment 2022-04-21 03:55:46 +01:00
zkldi cac9a947cd feat(rivals): add core rival library functionality 2022-04-21 03:55:31 +01:00
zkldi 7682a960e1 fix: handle case where GetUsersWithIDs hits desync 2022-04-21 03:45:19 +01:00
zkldi 928e0da0b6 fix: use new unsubMilestone signature 2022-04-17 04:59:36 +01:00