Skip to content

In /leaderboards/song and /leaderboards/battle, add support for User Band Name Fallback - #21

Open
elcanadiano wants to merge 1 commit into
ihatecompvir:mainfrom
elcanadiano:add-support-for-user-band-in-api
Open

In /leaderboards/song and /leaderboards/battle, add support for User Band Name Fallback#21
elcanadiano wants to merge 1 commit into
ihatecompvir:mainfrom
elcanadiano:add-support-for-user-band-in-api

Conversation

@elcanadiano

@elcanadiano elcanadiano commented Aug 21, 2026

Copy link
Copy Markdown

Hey, I've been working on GoCentralScores.com, which aims to build a Keldon, RockBandStats.com, or a RB4Scores.com but for the GoCentral server. I think I've largely built on what we can reasonably do with what the existing API can do. I would love to propose some additional architectural changes in the future but for now I just want to propose some quick wins.

I was noticing that a lot of the band entries contain "Unnamed Band" in the API and was wondering why and noticed the reason for it. Hence, I'd like to propose a fix/improvement. This is sort of a primitive/quick fix and it seems like we can definitely make some significant improvements to both this approach and to this PR.

We have a significant refactoring opportunity where we could likely refactor all of the fallback names instances to a utils function. I will not do that here by default unless we think we should.

Proposed changes

  • Add a primitive resolveBandDisplayName within restapi.go
  • Grab GetUsernamesByPIDs in BattleLeaderboardHandler and LeaderboardHandler
    • Performance Opportunity: We might want to consider a handler which gets both a ConsoleSuffixed (AFAIK this should be a suffix rather than a prefix) and a non-Suffixed Username in one go to save performance
  • Resolve to Username's Band first if the band is not supported
  • Add a .mongo-data entry on .gitignore

Screenshots

This example would be the Band Leaderboard. Consider in this example, the 9th place entry has "Unnamed Band" in the API/GoCentralScores but is listed as "Lewis21388's Band" in the game.

GoCentralScores

image

Rock Band 3

image

This adds support for User Band name fallback when a band name does not
exist. For example, if a user steven3333 does not have a band name, in
the game, we will likely see steven3333's band as the band name.
However, in the Leaderboards, it just falls back to Unnamed Band. We
shouldn't do that here.
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