fix(bulk_update): exclude header row from progress bar entity count#62
fix(bulk_update): exclude header row from progress bar entity count#62gkorland wants to merge 2 commits into
Conversation
`count_entities` counts every line in the CSV file, including the header row. When `--no-header` is not set (the default) one line is then skipped during processing, so the progress bar always reported one extra entity remaining at completion. Subtract one from the count at the call site when a header is expected. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 47 minutes and 19 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #62 +/- ##
==========================================
+ Coverage 89.52% 89.55% +0.03%
==========================================
Files 9 9
Lines 611 613 +2
==========================================
+ Hits 547 549 +2
Misses 64 64 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Fixes the bulk_update CLI progress bar length so it matches the number of CSV data rows processed when a header row is present (default behavior).
Changes:
- Adjust
entity_countinprocess_update_csvto subtract the header row when--no-headeris not set (clamped to 0).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot Code Review✅ No significant issues found. |
Agent Review SummaryPR: fix(bulk_update): exclude header row from progress bar entity countStatus: ✅ LGTM — all checks pass, no issues found. What was reviewed
Analysis
No changes requiredThe fix is minimal, correct, and follows project conventions. No open review threads. PR is ready to merge. |
Summary
count_entitiesreturns the total number of lines in the CSV. With the default--no-header=False, one line is skipped during processing for the header row, so the progress bar always showed "1 remaining" at the end.Changes
falkordb_bulk_loader/bulk_update.py: inprocess_update_csv, subtract 1 fromentity_countwhen a header row is expected (clamped at 0 for safety).Testing
Lint clean. The progress bar will now reach 100% on completion.
Memory / Performance Impact
N/A.
Related Issues
From the comprehensive code-review report (BUG-13).