Skip to content

Automatically sanitise team names#942

Merged
Debilski merged 7 commits intoASPP:mainfrom
Debilski:feature/invalid-team-name
Apr 20, 2026
Merged

Automatically sanitise team names#942
Debilski merged 7 commits intoASPP:mainfrom
Debilski:feature/invalid-team-name

Conversation

@Debilski
Copy link
Copy Markdown
Member

@Debilski Debilski commented Nov 6, 2025

Closes #929, closes #943

Still needs some further test repairs and there needs to be some further validation/sanitising in the backend; currently it is just applied in pelita-player.

@Debilski Debilski force-pushed the feature/invalid-team-name branch 4 times, most recently from b965d46 to d521951 Compare November 20, 2025 16:26
@Debilski Debilski marked this pull request as ready for review November 20, 2025 16:28
@Debilski Debilski marked this pull request as draft November 20, 2025 16:34
@Debilski
Copy link
Copy Markdown
Member Author

Still undecided on:

What if TEAM_NAME is not specified at all?

What if TEAM_NAME is not a string.

Everything else gets truncated to ASCII, whitespace removed (and if it is an empty string it becomes "???").

There is no further validation in the backend currently meaning a non-pelita_player user could use basically any string. Fixing this should be a separate issue.

@Debilski Debilski force-pushed the feature/invalid-team-name branch from 5f712fd to 9449271 Compare April 20, 2026 15:39
@Debilski Debilski force-pushed the feature/invalid-team-name branch from 9449271 to 9bdf8f7 Compare April 20, 2026 15:42
@Debilski Debilski marked this pull request as ready for review April 20, 2026 15:42
@Debilski Debilski merged commit ce2dcc2 into ASPP:main Apr 20, 2026
49 of 64 checks passed
@Debilski Debilski deleted the feature/invalid-team-name branch April 20, 2026 15:48
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.

Add pytest fixture to remove demo bots from sys.modules after use Silently repair team names

1 participant