Skip to content

Hide hero benchmark graphs the API no longer returns - #3392

Merged
howardchung merged 1 commit into
odota:masterfrom
geracosta:hero-benchmark-empty-graphs
Oct 1, 2026
Merged

howardchung merged 1 commit into
odota:masterfrom
geracosta:hero-benchmark-empty-graphs

Conversation

@geracosta

Copy link
Copy Markdown
Contributor

The hero Benchmarks page renders eight graphs from a fixed list. Two of them read lhten and stuns_per_min, which were commented out in core in odota/core@26bae0b ("do unparsed benchmarks and simplify insert stack", Nov 2023) when benchmarks moved to unparsed matches. /api/benchmarks?hero_id=1 hasn't returned them since:

gold_per_min xp_per_min kills_per_min deaths_per_min assists_per_min
last_hits_per_min denies_per_min hero_damage_per_min hero_healing_per_min
tower_damage

mapData leaves Value as false when the key is missing, so those two render as a titled graph with a percentile axis and an empty plot. It's on every hero page right now:

two empty benchmark graphs

Filtering on "has a numeric value at some percentile" rather than deleting the two entries, so they come back on their own if core serves them again, and so the page doesn't do this for the next benchmark that goes away.

Checked against a local build of this branch pointed at the live API: 8 graphs before, 6 after, and the six left are the ones with axes. A legitimately all-zero series still renders, hero_healing_per_min in the screenshot above for instance.

Related to #2801, which reports the stuns benchmark missing for Pangolier. It's missing for everyone.

The hero Benchmarks page builds a fixed list of eight graphs, two of
which read lhten and stuns_per_min. Those two benchmarks were commented
out in core in 2023 (odota/core@26bae0b, when benchmarks moved to
unparsed matches), so the response has not carried them since. mapData
leaves Value as false for a missing key, which renders a titled graph
with an empty plot rather than nothing at all.

Filter out graphs with no numeric value at any percentile instead of
deleting the two entries, so they come back on their own if core ever
serves them again.
@howardchung
howardchung merged commit 8751dfc into odota:master Oct 1, 2026
1 check passed
@geracosta
geracosta deleted the hero-benchmark-empty-graphs branch October 3, 2026 13:42
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.

2 participants