fixed reassemble and query format module#96
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ 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 (2)
📝 WalkthroughWalkthroughThis PR adds deprecation and warning logging for two scenarios: ChangesDeprecation and Skip-Hit Warning Behavior
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #96 +/- ##
=======================================
Coverage ? 80.63%
=======================================
Files ? 34
Lines ? 1265
Branches ? 414
=======================================
Hits ? 1020
Misses ? 243
Partials ? 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
|
@coderabbitai resume |
✅ Actions performedReviews resumed. |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
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 `@src/server/reassemble-documents.ts`:
- Around line 80-86: The skip logic is treating an empty string key as invalid
but getDocumentKey can return '' (e.g., from document_number) preventing the
fallback to hit.id; update the code around where key is obtained
(getDocumentKey) so blank metadata values are normalized to undefined/null
(e.g., trim and if key === '' set key = undefined) before the existing "if
(!key) { skippedHits++; ... continue; }" check so valid hits with non-empty
hit.id are not dropped or warned (preserve use of sampleIdsForWarn and
SKIP_WARN_SAMPLE_IDS for warnings).
🪄 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: 36e17989-38f9-487f-8ec7-589a0e0b1521
📒 Files selected for processing (4)
src/server/format-query-result.test.tssrc/server/format-query-result.tssrc/server/reassemble-documents.test.tssrc/server/reassemble-documents.ts
Pull Request
Reassemble skip signal
Deprecation WARN latch
src/server/format-query-result.ts: Deprecation warn runs on the first formatSearchResultAsRow call in the process (still once per session via the latch), not only when document_id !== null. QueryResultRow.paper_number JSDoc updated to match.
Summary by CodeRabbit
Bug Fixes
Tests