Commit Graph
286 Commits
Author SHA1 Message Date
zkldi a6d00ac273 feat: migrate from ktRating to curatorSkill (museca) 2022-12-18 23:58:49 +00:00
zkldi b2335d71ba feat: pnpm make-user-admin 2022-12-14 07:14:50 +00:00
ereti b59b6707c0 fix: ci 2022-12-14 05:08:01 +00:00
zkldi e3481f5734 chore: bump express to latest version to avoid qs vuln 2022-12-14 03:54:25 +00:00
zkldi 7584e406cd fix: revert "remove redundant versions" for bot and server
we use these to tag docker images. my bad.
2022-12-03 03:13:49 +00:00
zkldi 7b8d17b379 fix: make server pkg.json commands work 2022-12-03 02:56:01 +00:00
ereti 489fad867e fix: typecheck 2022-12-01 23:13:46 +00:00
ereti dc5581e7d1 fix: b shouldn't be there 2022-12-01 22:53:24 +00:00
ereti 1af9942147 feat: the monorepo man 2022-12-01 21:10:23 +00:00
ereti 98a74e12cf feat: make monorepo sane 2022-11-28 00:58:38 +00:00
zkldi db6a3e1b82 fix: remove redundant versions 2022-11-26 22:49:28 +00:00
zkldi c6112e765c fix: make sure banning users works properly 2022-11-23 00:12:07 +00:00
zkldi e48ff929e4 fix: bump rg-stats to fix jubility problem 2022-11-03 02:31:49 +00:00
zkldi 0e36b17827 fix(critical): Pin prudence to an exact version
This is a long one.

So, `instanceof` in Typescript is incredibly flimsy. There's a
documented bug with what happens when you extend built-in classes, such
as Error or Array. You can read more about it here: https://github.com/Microsoft/TypeScript/wiki/FAQ#why-doesnt-extending-built-ins-like-error-array-and-map-work

However, this normally works fine. A previous commit moved some schemas
from server/ to common/, our gameSpecific UGPT settings schemas. This
caused them to break in an interesting way. For any schema recursive
with a depth greater than 1, all errors would be ignored. Why on earth
was this happening?

Well Prudence passes errors up the stack with a "return Err" -> "if
ret instanceof Err: return Err" kind of approach. This normally works
fine.

The real kicker here is that because server/ and common/ were on 0.9.7
and 0.9.8 respectively, the "Err" instance in question would actually be
erased when ran at runtime. The "if ret instance of Err" would fail,
because the Err would be from 0.9.7, not 0.9.8. This subtle difference
in file results in catastrophic damage.

In short. InstanceOf is a footgun. I hate it. Lets never do it again.
Thanks.
2022-10-14 01:09:31 +01:00
zkldi 18b0eac821 fix: make sync-database-local work
also, use sync-database-local instead of sync-database when running
bootstrap.sh
2022-10-07 01:09:12 +01:00
zkldi c6dfae2cf2 feat: update how bms-table-sync works 2022-10-03 20:39:03 +01:00
zkldi c509ab1c28 feat(server): add "recalc-everything" to package.json 2022-08-22 04:28:12 +01:00
zkldi b72ffeec57 feat: support syncing database-seeds from local 2022-08-22 02:06:30 +01:00
zkldi a82641849d chore: make certain @types not devDeps
These are actually necessary in non-dev scenarios, as we use
ts-node/register as our loader. This expects types to exist
for our dependencies, for some reason.

I'm too tired to properly resolve this, so making @types mandatory
is my hack fix.

It's not like they add much to the build size anyway.
2022-08-18 02:54:11 +01:00
zkldi 6dba56aa12 fix: move ts-node out of devDependencies 2022-08-18 02:04:37 +01:00
zkldi e34bac8226 fix: add missing glob deps and update browserslist 2022-07-17 23:14:03 +01:00
zkldi 2d6e5a8acf refactor: trim unecessary server/client deps 2022-07-17 20:00:56 +01:00
zkldi 73c7815c63 feat: instant bootstrap script 2022-07-16 17:43:33 +01:00
zkldi 19cdb4691d fix: add .env to tachi server and make deploy scripts suck less 2022-07-16 16:38:34 +01:00
zkldi cbbf8246d2 fix: pnpm silently made run a reserved word 2022-07-16 16:31:28 +01:00
zkldi d1dcffb6de refactor: apply cadence to bot and make it compile 2022-07-04 02:16:10 +01:00
zkldi 3b1d3a240b fix: keep tap as a dependency 2022-07-04 02:15:43 +01:00
zkldi 1e8e334ca0 refactor: force parent common dependencies 2022-07-04 02:15:43 +01:00
zkldi e55a0eb129 fix: get tachi-server to atleast boot and sync with common 2022-07-04 02:15:43 +01:00
zkldi 0b57ed5b75 feat: autosync ai table and refactor local jobs a bit 2022-06-26 17:02:13 +01:00
zkldi ed6de19183 chore: bump deps 2022-06-12 20:43:36 +01:00
zkldi 6f71fa450d chore: update cadence 2022-06-05 22:36:03 +01:00
zkldi 9f85cf64cd fix: add a typecheck step after testing.
This ensures that what we end up with compiles. It's possible for all of
our tests to work, but the app pulls in some benign
file that accidentally downs the whole thing

This should stop that from ever happening.
2022-06-01 15:30:28 +01:00
zkldi 8c0e7f6b22 breaking(chore): bump tachi-common 2022-06-01 15:25:19 +01:00
zkldi 4d585a08e2 feat: read version from package.json, read latest commit and read pre-release tags. 2022-05-31 18:46:54 +01:00
zkldi a35aab8eaa refactor: pull cadence from npm 2022-05-31 14:27:55 +01:00
zkldi bda6ee7412 style: rename hollis to cadence 2022-05-25 15:15:17 +01:00
zkldi af2fa826a4 experimental: mass-hollis-refactor 2022-05-10 03:21:09 +01:00
zkldi 61ea7a4bf7 draft: Dogfood the hollis configuration 2022-05-06 02:55:56 +01:00
zkldi c1f5da3cce fix: update tachi-common to fix schema miscompilation 2022-04-24 20:12:35 +01:00
zkldi ea28adcc02 feat: barebones notif system 2022-04-24 19:54:36 +01:00
zkldi c9ba888d39 feat: add jubility target support 2022-04-24 13:51:27 +01:00
zkldi ea7d36e2ae BREAKING: make batch-manual classes take strings instead of ints 2022-04-22 21:13:26 +01:00
zkldi 80db6fb410 feat: properly define schemas from tachi-common 2022-04-22 19:12:50 +01:00
zkldi bea7e1456e refactor: move ALL_PERMISSIONS to tachi-common 2022-04-22 18:45:51 +01:00
zkldi 5c2bfc25e1 refactor(rivals): make rival assignment honour manage_rivals 2022-04-21 06:06:49 +01:00
zkldi fdd3a5d9b6 chore: bump tachi-common to 0.8 2022-04-21 03:45:29 +01:00
zkldi c58aa14cac Remove parentMilestones as a feature. Handle it through database queries instead. 2022-04-14 03:10:06 +01:00
zkldi f0dfef5dc0 Add a dedicated snap command 2022-04-13 22:10:18 +01:00
zkldi bec7e14aba Update "abs" to "absolute" for goal criteria. 2022-04-13 21:53:48 +01:00