feat(media): add detailed scrape progress status#871
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughEnriches scrape lifecycle with explicit State values and step-level progress: extends progress events/types, refactors scraper loop to emit TotalSteps/CurrentStep everywhere, updates API handlers to populate State/currentSystem, expands tests to assert new fields, and updates documentation and notification examples. ChangesScrape Lifecycle State and Step Progress
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/database/scraper/gamelistxml/scraper.go`:
- Line 560: The call waitForResume(system.ID, currentStep, 0, 0, 0) passes
zeroed counters causing the pause/cancel terminal update to drop previously
accumulated progress; replace the three zero literals with the actual
accumulated progress variables used in this scope (e.g., accumulatedProcessed,
accumulatedTotal, accumulatedErrors or whichever names track total progress),
ensure those variables are kept up-to-date before the call, and propagate them
into waitForResume so the emitted "Done" update preserves prior progress for
system.ID and currentStep.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 18c26a32-5e00-4ca7-a258-c44636dc37b3
📒 Files selected for processing (9)
docs/api/methods.mddocs/api/notifications.mddocs/scraper.mdpkg/api/methods/media_scrape.gopkg/api/methods/media_scrape_test.gopkg/api/models/responses.gopkg/api/notifications/notifications_test.gopkg/database/scraper/gamelistxml/scraper.gopkg/database/scraper/scraper.go
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Summary
Validation
Summary by CodeRabbit
New Features
Documentation
Tests