Skip to content

bug: socket pong, ban-only teammate notices, tighter player delete, support notification text - #432

Merged
lukepolo merged 2 commits into
mainfrom
bug/deafcs-sync-fixes
Sep 29, 2026
Merged

lukepolo merged 2 commits into
mainfrom
bug/deafcs-sync-fixes

Conversation

@lukepolo

@lukepolo lukepolo commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Brings over a batch of small fixes from DEAFCS: a socket pong, ban-only team-mate notices, admin-only player delete, and clearer support and name-change notifications.

  • The /ws/web ping handler now replies { event: "pong" } straight away (anonymous sockets too), so a client can spot a dead connection. Web doesn't use it yet.
  • Team-mates are only notified of a ban. A mute, gag or silence no longer reaches six months of team-mates.
  • The public_players delete permission moves from match_organizer to administrator.
  • The check-in error now reads "team captain or a team admin", which matches the gate.
  • Name-change requests link the player using the session's steam id. callForOrganizer fixes the "Assistanced" typo, names the requester (escaped, from their current players.name) and refuses anyone not in the lineup.

Merge/deploy: yarn hasura:metadata (players delete permission).

Tests: every fix above (pong, ban-only notices, delete permission, check-in message, name-change link, support-request name/typo/lineup check) has a unit test that fails without the fix. Based on DEAFCS 33d54cd, 04cf28a, 606d9bb, e5463f7

…upport notification text

- reply to the web client's ping with a pong so a dead-but-OPEN socket is detectable
- only a ban notifies former team-mates; mutes/gags/silences stay between the player and staff
- only administrators can delete a player row
- check-in error names team admins as well as the captain
- name change requests link the player's profile (absolute url, Discord-routed)
- match support notification names the requester, fixes the title typo, and requires the caller be in the lineup
@lukepolo
lukepolo force-pushed the bug/deafcs-sync-fixes branch from 95d14bd to 95853a0 Compare September 28, 2026 21:44
@lukepolo
lukepolo merged commit a3103c2 into main Sep 29, 2026
2 checks passed
@lukepolo
lukepolo deleted the bug/deafcs-sync-fixes branch September 29, 2026 00:32
@lukepolo
lukepolo restored the bug/deafcs-sync-fixes branch September 29, 2026 00:35
@lukepolo
lukepolo deleted the bug/deafcs-sync-fixes branch September 29, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant