Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhost: Sort Slot array in room API responses #4353

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

silasary
Copy link
Contributor

@silasary silasary commented Dec 9, 2024

What is this fixing or adding?

When accessing the /api/room_status/ api, the players key is currently unsorted (and appears to choose a random order each refresh).

This makes it unusable for anyone trying to access things by slot number (most importantly, mapping Player Name to a download in the same API response).

This PR applies the same sorting used in the downloads key to the Players key.

How was this tested?

Creating a room and comparing the API output to the expected order. And refreshing a few times to be certain 😛

If this makes graphical changes, please attach screenshots.

@github-actions github-actions bot added affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Dec 9, 2024
@Exempt-Medic Exempt-Medic added the is: enhancement Issues requesting new features or pull requests implementing new features. label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants