fix(f1): resolve ScrollHelper.reset AttributeError#51
Conversation
Replace scroll_helper.reset() with scroll_helper.reset_scroll() in F1 and UFC plugins; ScrollHelper exposes reset_scroll(), not reset(). This was causing 'ScrollHelper' object has no attribute 'reset' and prevented qualifying/standings from displaying after track overview. - f1-scoreboard/scroll_display.py: fix both call sites - ufc-scoreboard/scroll_display.py: fix reset call for consistency - f1-scoreboard manifest: bump to 1.2.3, sync plugins.json Made-with: Cursor
📝 WalkthroughWalkthroughThis pull request updates the F1 Scoreboard plugin to version 1.2.3, bumping manifest versions and timestamps accordingly. Additionally, both F1 and UFC Scoreboard plugins are updated to use the new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@plugins.json`:
- Line 3: The top-level "last_updated" field in plugins.json has been set to
"2026-03-08" which is older than a plugin entry updated on "2026-03-09"; update
the top-level "last_updated" value so it is monotonic (>= the newest plugin
entry date) or re-run the sync that sources it from manifest.json via the
update_registry.py script so the registry timestamp matches the latest plugin
update; ensure you update the "last_updated" key in plugins.json (or regenerate
via update_registry.py) rather than manually setting a past date.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 7d2fc319-c37d-4b6a-b588-e944d060acc4
📒 Files selected for processing (4)
plugins.jsonplugins/f1-scoreboard/manifest.jsonplugins/f1-scoreboard/scroll_display.pyplugins/ufc-scoreboard/scroll_display.py
| { | ||
| "version": "1.0.0", | ||
| "last_updated": "2026-03-09", | ||
| "last_updated": "2026-03-08", |
There was a problem hiding this comment.
Keep the registry timestamp monotonic.
Line 3 now sets the top-level last_updated to 2026-03-08, but this file already contains a plugin entry updated on 2026-03-09. If store clients key refreshes off the registry timestamp, moving it backward can make this update look stale.
🩹 Suggested fix
- "last_updated": "2026-03-08",
+ "last_updated": "2026-03-09",Based on learnings, "The plugins.json registry file is the source of truth for the Plugin Store and is automatically synced from manifest.json by the update_registry.py script via pre-commit hook".
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "last_updated": "2026-03-08", | |
| "last_updated": "2026-03-09", |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@plugins.json` at line 3, The top-level "last_updated" field in plugins.json
has been set to "2026-03-08" which is older than a plugin entry updated on
"2026-03-09"; update the top-level "last_updated" value so it is monotonic (>=
the newest plugin entry date) or re-run the sync that sources it from
manifest.json via the update_registry.py script so the registry timestamp
matches the latest plugin update; ensure you update the "last_updated" key in
plugins.json (or regenerate via update_registry.py) rather than manually setting
a past date.
Description
Fixes
'ScrollHelper' object has no attribute 'reset'error that prevented the F1 plugin from displaying qualifying positions and other scroll content after the track overview.Root Cause
The F1 and UFC plugins called
scroll_helper.reset(), but the LEDMatrixScrollHelperclass exposesreset_scroll(), notreset(). Other plugins (odds-ticker, football-scoreboard, hockey-scoreboard, soccer-scoreboard) already usereset_scroll()correctly.Changes
reset()withreset_scroll()in both call sites (force_clear path andScrollDisplay.reset())Type of Change
Testing
scroll_helper.reset()calls in touched pluginsMade with Cursor
Summary by CodeRabbit