Skip to content

nfl-stat-leaders: read season-scoped ESPN core leaders API (1.0.2) - #608

Merged
ChuckBuilds merged 1 commit into
mainfrom
claude/nfl-stat-leaders-api-url-05b350
Oct 2, 2026
Merged

ChuckBuilds merged 1 commit into
mainfrom
claude/nfl-stat-leaders-api-url-05b350

Conversation

@ChuckBuilds

Copy link
Copy Markdown
Owner

Summary

  • The old ESPN leaders endpoints (site.web.../common/v3/.../leaders and site/v2) now return 404, so the plugin displayed nothing.
  • Fetch from the core API's season-scoped path: https://sports.core.api.espn.com/v2/sports/football/leagues/nfl/seasons/{season}/types/{type}/leaders. The unscoped /leagues/nfl/leaders returns all-time career leaders and ignores the season.
  • Core leaders reference the athlete instead of embedding it, so name/position are looked up once per player in update() and cached for a month; lookups stop for a refresh after 3 consecutive failures.
  • Bump to 1.0.2, README/manifest URL updated, registry regenerated.

Test plan

  • Plugin tests pass (new: URL, athlete resolution + caching, failure cutoff)
  • Live fetch against ESPN returns real boards for the six default categories
  • update_registry.py --check, check_version_bump.py --all, check_module_collisions.py pass

🤖 Generated with Claude Code

The site.web common/v3 and site/v2 leaders endpoints now return 404, so the
plugin showed nothing. Fetch from sports.core.api.espn.com
.../seasons/{season}/types/{type}/leaders instead. Leaders there reference
the athlete rather than embedding it, so names and positions are resolved
once per player in update() and cached for a month, stopping early after
repeated lookup failures.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: c0716655-6172-4020-8335-900d0335df31

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 32 complexity

Metric Results
Complexity 32

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@ChuckBuilds
ChuckBuilds merged commit cb04ac4 into main Oct 2, 2026
4 checks passed
@ChuckBuilds
ChuckBuilds deleted the claude/nfl-stat-leaders-api-url-05b350 branch October 2, 2026 21:22
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