fix: consistent team names (McLaren, OpenF1 names matched) - #37
Merged
Merged
Conversation
…he rest formatTeamName rebuilt names from Ergast constructor ids by capitalising words, so "mclaren" came out as "Mclaren" on the drivers standings tile. And latest_session passed OpenF1's own team names through, so the same team read "Red Bull Racing" there but "Red Bull" everywhere else.
JustMaris
added a commit
that referenced
this pull request
Sep 26, 2026
…he rest (#37) formatTeamName rebuilt names from Ergast constructor ids by capitalising words, so "mclaren" came out as "Mclaren" on the drivers standings tile. And latest_session passed OpenF1's own team names through, so the same team read "Red Bull Racing" there but "Red Bull" everywhere else.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
formatTeamNamerebuilt names from Ergast constructor ids by capitalising each word, somclarenrendered as "Mclaren" on the drivers standings tile. Added it to the existing override table alongsiderb.latest_sessionpassed OpenF1's own team names through, so the same team read "Red Bull Racing" there but "Red Bull" everywhere else. Mapped the OpenF1 names that differ (Red Bull Racing, Racing Bulls, Haas F1 Team) onto the short names the rest of the API uses.Found while render-testing the cluster's Glance page against a live API.
Test plan
gofmt/go vet/go test ./...clean, newTestTeamNamescovers both mappings; latest-session contract test updated