Commit Graph

329 Commits

Author SHA1 Message Date
Mia
dd4c773553 Add replays/check-login endpoint
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-08-29 17:23:44 -05:00
Mia
ca6d979e5a Update npm scripts
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-08-21 20:56:42 -05:00
Mia
b08144d831 Fix linter 2025-08-21 20:54:02 -05:00
Mia
0ade3441e3 Sync box changes to remote 2025-08-22 01:50:50 +00:00
Guangcong Luo
7f45fde4f7 Remove inputlogs from /api/replays/batch 2025-08-22 00:39:22 +00:00
Mia
2a250d6f53 Remove smogon ip verification in favour of data signing
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-07-26 14:10:48 -05:00
Mia
ffef771596 Fix team deletion
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-07-23 23:37:30 -05:00
Mia
2fbe8c6ca3 Add delete team action 2025-07-23 23:12:08 -05:00
Mia
bc0886b12f Support copying teams into one's builder
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
2025-07-23 22:47:35 -05:00
Alex "Mathy
ddcacf0f94
Always check server token for internal APIs (#33)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-07-02 14:05:44 -05:00
Saana
a50d5dd488
Supporting binding server to specific hosts (#32)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-06-03 01:30:49 -07:00
Guangcong Luo
15666f8711 Define constants for Glicko ratings
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
2025-05-03 20:47:31 -07:00
Guangcong Luo
001ef86597 Document ladder table 2025-05-03 20:28:29 -07:00
Guangcong Luo
044140691b Update Github Actions config 2025-05-03 20:28:29 -07:00
pyuk-bot
ad696f7295
Dynamically calculate Glicko constant based on rating period (#31)
This makes the rating period a global constant accessible to all objects in the file instead of being set as part of a constructor, and makes `GlickoPlayer` calculate its `c` value by calculating the number of rating periods in a year dynamically based on the length of that rating period in days, instead of being a hard-coded `365.0`.
2025-05-03 20:28:18 -07:00
Guangcong Luo
8967dc641f Fix build error 2025-05-03 19:57:22 -07:00
Mia
b9efc2d1b0 Fix update query on PG-esque DBs
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2025-04-16 14:15:59 -05:00
Mia
079523cc32 Add 'editteam' action 2025-04-16 13:44:12 -05:00
Mia
37b5fbcd1d Database: Fix 'update' queries for PG-derived DBs
PG/Cockroach do not support 'limit' clauses in update queries, so this has to be edited out where applicable.
2025-04-16 13:42:37 -05:00
Mia
1cec1eaa36 Fix linter & sync code from box
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2025-04-12 23:21:54 -05:00
Mia
127effc14a Add team search action
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2025-04-09 17:53:18 -05:00
Mia
a1f93fb5c8 Make updates for teams.pokemonshowdown.com 2025-04-09 22:42:36 +00:00
Mia
3c626eb331 Allow team owners to bypass password requirements on teams
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Node.js CI / build (20.x) (push) Waiting to run
2025-04-09 00:30:18 -05:00
Mia
96482f3afb Actions: Support requesting team metadata from 'getteams' 2025-04-08 21:47:26 -05:00
Mia
9b3f4ce18e Actions: Allow accessing public teams via the API 2025-04-08 21:37:00 -05:00
Mia
d6c4aff430 Actions: Only call response json for suspect/add
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Node.js CI / build (20.x) (push) Waiting to run
2025-04-07 16:57:17 -05:00
Mia
7384809258 Correct typo
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2025-04-05 23:27:44 -05:00
Mia
7c6afe53ea Do not require URL parameters for suspect/add and suspect/edit actions 2025-04-05 23:26:53 -05:00
Michael Gallaspy
9d59f10859
Add replay batch endpoint (#28)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2025-04-03 08:04:02 -07:00
pyuk-bot
574a2e79fe
Fix RD "decay" in Glicko-1 rating calculations (#30)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2025-03-12 00:58:40 -07:00
Guangcong Luo
8c32fabe67 ESLint: Fix config
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2025-02-25 21:32:17 -08:00
Guangcong Luo
a56f1f160f Upgrade to ESLint 9
Following the upgrade in Client and Server; you know the drill.

(ESLint 9 requires minimum Node version 18, hence the GitHub Actions
version bump.)
2025-02-25 21:28:46 -08:00
Guangcong Luo
de9746faba Limited support for fulltext replay search
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2025-02-20 01:57:54 +00:00
Mia
843728fe08 Properly intercept ErrorMessages
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
Instanceof is bad, kids.
2025-01-24 16:07:18 -06:00
Mia
bdc78dcf91 Ensure we recognize all private relay IPs properly
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
Node.js CI / build (20.x) (push) Waiting to run
2025-01-24 00:14:18 -06:00
Mia
636a23a740 Add suspect-edit and suspect-end calls
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2024-11-01 18:57:59 -05:00
Mia
ffc676bfdc Include suspect eligibility in ladderget responses
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
Node.js CI / build (20.x) (push) Waiting to run
2024-11-01 13:25:29 -05:00
Mia
61db6f5308 Simplify reqs checking code to ensure fuewer future issues
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2024-10-28 20:36:24 -05:00
Mia
38a0881240 Fix typo 2024-10-28 20:30:43 -05:00
Mia
89b1d76c7e Actions: Improve logging for smogon request failures 2024-10-28 20:25:03 -05:00
Mia
bf82e317a5 Re-send suspectStartDate
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
Node.js CI / build (20.x) (push) Waiting to run
2024-10-27 17:27:29 -05:00
Mia
1898067cd0 Allow editing suspect tests without overwriting start date 2024-10-27 17:25:25 -05:00
Mia
7d393dfff6 Fix time desync 2024-10-27 17:21:15 -05:00
Mia
41dfa29377 Fix minor typo in suspect verification 2024-10-27 17:03:51 -05:00
Mia
f6661b465d Ensure reqs columns default to null 2024-10-27 16:20:11 -05:00
Mia
72661ecf4a Add an action to manually check if a user is verified for a suspect
For fallbacks, mostly. Shouldn't truly be needed.
2024-10-27 16:04:42 -05:00
Mia
735b408ed0 Track suspects in a database table
they don't sync across processes well otherwise.
2024-10-27 15:51:28 -05:00
Mia
08e0cabf2b Don't send reqs as a JSON string
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
2024-10-24 08:54:12 -05:00
Mia
0f5a8f4200 Properly read suspect url from request 2024-10-24 08:50:58 -05:00
Mia
8241340f0e Send suspect data to smogon on test creation 2024-10-24 08:10:46 -05:00