Commit Graph

3625 Commits

Author SHA1 Message Date
urkerab
9f29c90db2
Handle 25 hour days correctly (#10635)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-11-02 22:45:34 -05:00
Mia
a4f42d48c0 Suspects: don't strip periods from req data
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-11-01 21:10:27 -05:00
Mia
89dd113910 Suspects: Use suspects/edit action where applicable 2024-11-01 19:34:31 -05:00
Kris Johnson
b37edb2af5 Fix commands that have optional format args
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-11-01 11:41:01 -06:00
Slayer95
34c0cb39e3
Fix bugs connected to format.exists (#10647) 2024-10-31 08:25:17 -05:00
Sergio Garcia
a3f510e75a
Fix typo in linecount (#10642)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-10-29 07:39:29 -05:00
Mia
8f868a12cd Suspects: Allow editing reqs on existing test 2024-10-27 17:26:05 -05:00
Mia
e98a544553 Suspects: Don't re-send suspect-create on test edit 2024-10-27 16:34:01 -05:00
Mia
d0c96f8907 Add /suspects verify 2024-10-27 16:15:18 -05:00
Mia
7251aad239 Fix typo
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2024-10-24 08:52:45 -05:00
Mia
5bec49f7a0 Suspects: Fix loginserver error handling 2024-10-24 08:49:28 -05:00
Mia
8f91863968 Suspects: POST url to Smogon on test start 2024-10-24 08:11:35 -05:00
Mia
1079ec910d Fx typo 2024-10-22 14:14:48 -05:00
Mia
db9ea17174 Suspects: Add support for new verification procedure 2024-10-22 11:33:59 -05:00
PartMan
72113589ec
Scavengers: Normalize answers before checking (#10623)
(eg: Pokémon -> pokemon)
2024-10-18 20:42:04 -06:00
Karthik Bandagonda
9d473d136c
Auctions: Fix nom timer not getting reset after an undo (#10610)
* Auctions: Fix nom timer not getting reset after an undo

* Use functions to actually prevent crashes from ever happening
2024-10-12 18:40:08 -06:00
Kris Johnson
4ed5c3abb9
/setodds: Fix iterating through moves 2024-10-08 23:01:58 -06:00
Mia
b7ec38d650 Fix typo
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
didn't go through due to local lag, oops
2024-10-08 20:34:59 -05:00
Mia
a027073d28 Suspects: Don't toID() COIL B values 2024-10-08 20:34:36 -05:00
Kris Johnson
abacd29808 Remove Gen-NEXT
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-10-06 11:02:54 -06:00
Sergio Garcia
a0a6fed454
Fix oversights in & to ~ migration (#10595)
* Fix oversights in & to ~ migration

* It was just a symbol
2024-10-06 10:07:03 -06:00
Vinayak-Shukla
b8eeebcbb3
Scavengers: Fix time trial sorting (#10356)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-10-03 09:02:06 -04:00
Kris Johnson
df5c46bb53 Remove the Section Leader rank 2024-10-01 21:27:49 -06:00
Kris Johnson
6a1df16825
Fix /bulbapedia help 2024-10-01 21:12:29 -06:00
Kris Johnson
56b46e6b37 Remove /veekun, add /bulbapedia 2024-10-01 18:40:48 -06:00
Mia
747326f277 Fix a few more missed &s 2024-10-01 09:33:47 -05:00
Mia
8c290a453e Fix some missed replacements 2024-10-01 09:30:23 -05:00
Mia
e82c5fa161 Change references of & to ~ 2024-10-01 09:02:03 -05:00
Karthik Bandagonda
b7a39748ba
Auctions: Send nomination notification to managers only (#10587)
* Auctions: Send nomination notification to managers only

* Update server/chat-plugins/auction.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-09-30 17:32:15 -06:00
Karthik Bandagonda
4ba7f6e8fc
Use value rules for timer (#10194)
* Use value rules for timer

* lint

* fix rule overrides

* fix the "boolean" value rules

* add limits for number based rules

* Realized that you don't need boolean value rules

* oops

* fix checks for lower bounds
2024-09-29 19:10:49 -06:00
Mia
f06c71b36a Add more feedback to /linksmogon
Loginserver requests are a tad slow. Don't like leaving it to hang with no response.
2024-09-29 18:53:55 -05:00
Mia
a284f35d6c Add a command for linking smogon and PS accounts 2024-09-29 18:51:01 -05:00
dot-Comfey
6c29c905da
Fix prevo/evo move incompatibilities (#10574) 2024-09-26 20:22:11 -05:00
Leonard Craft III
8ac3035eb2 Fix private forpunishment replays from regenerating new passwords 2024-09-25 20:01:19 -05:00
KingNeodude
63968d011d
Update slowchat help (#10565) 2024-09-22 13:26:45 -05:00
Distrib
d2a537ac3e
Helptickets: Add link to reported user's profile (#10550) 2024-09-17 20:44:49 -05:00
dot-Comfey
08e88a160d
Add mass invites (#10519) 2024-09-17 20:43:38 -05:00
larry-the-table-guy
ddf5848a38
Datasearch: Optimize runDexsearch (#10536)
* add crude profiling to runDexSearch

No behavioral changes (other than console.log spam), this commit is just to establish a baseline and pinpoint the slow portions

* optimize datasearch.ts - pull move filter prep out of loop

Based on preliminary benchmarks, most of the time was spent getting the move validator, even for queries that don't specify a move.
More importantly, the parameters for fetching the move validator are known very early in the function and don't change during the loop.
Pulling that portion out of the loop is an easy win.

* improve profiling for runDexSearch

- add subcategories for filtering on move (the next optimization target)
- report unaccounted time amounts ('known unknowns')
- make grand total stand out more

* optimize dexsearch - fetch move list in outer loop

Move list depends on 'alts', which does not change in the loop over mons. Minor win, but simple.

* optimize dexsearch - filter move list by gen in outer loop

Neither 'mod' nor 'altMoves' changes during the inner loop.

* log pokemonSource in runDexSearch - expose possible leak

pokemonSources, which appears to act as a set, grows with each iteration, adding seemingly redundant items.
Will need to look closely at TeamValidator to identify the problem. My guess is that it's putting object references into a Set,
which, for objects other than strings, only cares about object identity.

* profile runDexSearch - count checkCanLearn calls

Also, semi-fix issue identified in prior commit - the endless growth of the restrictiveMoves list.
Counting the calls to checkCanLearn helps us reason about whether the cost per call is reasonable.

* fix perf bug in TeamValidator.checkCanLearn

use the cached ruleTable, save 100x.

* optimize runDexSearch - only init move filters when needed

For queries that never mention a move, a considerable chunk of time is wasted getting the objects needed for
'checkCanLearn'. I measure ~1ms savings for the relevant queries, which is often a decent percentage.

* profile dexsearch - delete and format

This is to document that they are not the bottlenecks.

* remove nested profiling from dexsearch

We've gotten to the point where we actually *are* measuring microseconds, so the frequent calls
are too expensive. This is a good problem to have! What we can see from running npm test is
that 'filters' and 'unaccounted' still account for a majority of the time. So, there's still
room for improvement, if that's ever a serious concern.
Personally, I think working on the moves API would be more fruitful.

* remove all profiling code

No more console.log or performance.now() calls. Ready to merge.

* Update server/chat-plugins/datasearch.ts

Format the 'format' string in-line.

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>

* Remove ts-expect-error from datasearch.ts

* Fix uninit lint in runDexSearch

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2024-09-17 11:46:35 -06:00
adrivrie
247c2aa70a
Random typo fixes (#10556) 2024-09-17 08:09:48 -05:00
Mia
4731f1283d Helptickets: Prevent unregistered users from submitting IP-Appeals 2024-09-12 21:40:33 -05:00
Karthik Bandagonda
b2baca4fd5
Auctions: Remove credits column in snake draft (#10545)
* Auctions: Remove credits column in snake draft

* Update server/chat-plugins/auction.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-09-12 15:36:40 -06:00
Karthik Bandagonda
18eb7d5be5
Auctions: Add support for snake draft (#10526) 2024-09-05 20:00:04 -05:00
Karthik Bandagonda
67354c8f3d
Run updatesearch after changing privacy of game room (#10529) 2024-09-02 15:23:22 -05:00
Mia
fb38517c27 Chat: Stop enforcing room banwords on usernames/statuses 2024-09-01 16:29:37 -05:00
Mia
abf66be9df /show: Remove extraneous button while broadcasting
This isn't really necessary, was only ever a stopgap. We have an actual code fix for it now, so it's fine.
2024-08-31 13:59:23 -05:00
Mia
0af0886121 Remove unnecessary break statement 2024-08-30 00:37:37 -05:00
Mia
cefac5f255 Punishments: Remove stopgap patch 2024-08-30 00:17:47 -05:00
Mia
b487ee646c Punishments: Properly cull duplicated punishments from the PunishmentMap arrays
Splicing an array while you're for-of looping that array is bad, kids.
2024-08-30 00:10:27 -05:00
Mia
5d49882565 Punishments: Ensure duplicated punishments are properly erased 2024-08-29 23:48:47 -05:00
Mia
9b365c8ed5 Scavs: Fix crash 2024-08-29 16:12:03 -05:00