mirror of
https://github.com/games-on-whales/wolf-den.git
synced 2026-10-15 13:02:01 +00:00
[GH-ISSUE #6] The "Profiles" ordering is inconsistent during first save #4
Labels
No labels
bug
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolf-den#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HashimHS on GitHub (Jan 24, 2026).
Original GitHub issue: https://github.com/games-on-whales/wolf-den/issues/6
I have two users named "Hashim" and "Tester"
When first time launching Wolf-Den, the users were ordered 1. Hashim, 2. Tester

After editing "Hashim" profile as saving, the users suddenly swap places while the pop up message on top right corner says "Updating Tester".

After saving the first time and refreshing the page it looks fine. Although the users are ordered 1. Tester 2. Hashim now. The correct user "Hashim" is edited though.
In my original .toml file, I had "Hashim" as the first profile with the user id "user". Tester has a user id "tester". I think the issue is that Wolf-Den reorders users by user id and this causes this weird inconsistency.
I was able to reproduce the issue when restoring my old .toml wolf config file.
@Skerga commented on GitHub (Jan 24, 2026):
This is a side effect that occurs because there is no update endpoint in the Api. So the way that is currently handled is by storing the current state of the profile -> modifying the profile -> deleting the profile -> adding the modified profile.
So Wolf would first need a UpdateProfile endpoint, until then it will sadly move the last edited at the end of the list.