Allow for retrieval of User by username and UserId #47
Reference in New Issue
Block a user
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?
Feature Request
Summary
The UserRegistry currently only allows for the retrieval of a user by its SessionId.
However, UserRegistry already has several maps, with both the username and UserId as the key, that would make implementation very simple.
Required workarround
You are required to get all users, iterate over them and compare each username with the wanted until you find your match.
Description
The SessionRegistry should have additional methods like:
findByUserId: Looks up a user by thierUserIdfindByUsername: Looks up a user by thier usernameBoth will, same as the already existing method (
getBySessionId) return an Optional of User.Checklist
This feature request is based on #39
assigned to @lars.winzer
created branch
feat/47-sessionregistry-get-by-userid-and-usernameto address this issueadded 5m of time spent at 2026-04-02 12:00:00 +0200
Moving forward, the methods now have the get prefix, instead of the find prefix.
mentioned in merge request !74
mentioned in commit
cf64f11912mentioned in merge request !75