fix(migrations): infer legacy extraction tiers - #764
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
📝 WalkthroughWalkthroughChangesExtraction tier resolution
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/features/workspaces/migration/legacy-workspace-data.ts (1)
516-528: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd regression tests for tier precedence and fallback.
Add table-driven tests for:
/fast/manifest.jsonand/enhanced/manifest.jsonkeys, including conflicting metadata.metadata.provisional === true.providerMode === "fast".- Other published projections resolving to
"enhanced".🤖 Prompt for 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. In `@src/features/workspaces/migration/legacy-workspace-data.ts` around lines 516 - 528, Add table-driven regression tests for resolveExtractionTier covering explicit /fast/manifest.json and /enhanced/manifest.json keys with conflicting metadata, provisional metadata, providerMode "fast", and other published projections defaulting to "enhanced"; assert that explicit key tiers take precedence over fallback signals.
🤖 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.
Nitpick comments:
In `@src/features/workspaces/migration/legacy-workspace-data.ts`:
- Around line 516-528: Add table-driven regression tests for
resolveExtractionTier covering explicit /fast/manifest.json and
/enhanced/manifest.json keys with conflicting metadata, provisional metadata,
providerMode "fast", and other published projections defaulting to "enhanced";
assert that explicit key tiers take precedence over fallback signals.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: f608d004-daca-4cf4-91fc-f639688cd9b9
📒 Files selected for processing (1)
src/features/workspaces/migration/legacy-workspace-data.ts
Greptile SummaryThis change lets legacy workspace migrations retain ready extraction results when older manifest keys do not encode an extraction tier. A focused Worker test exercised tierless manifests, provisional and fast-mode fallbacks, and explicit fast/enhanced manifest keys. All six cases passed, including persistence of the selected tier with the migrated extraction record. No defects were found. Confidence Score: 5/5The migration behavior is safe to merge based on the exercised legacy manifest and tier-persistence paths. A focused Worker-runtime test exercised the historical tierless-manifest failure path and six current migration scenarios, confirming fallback selection, explicit-key precedence, and persistence of the migrated extraction details. Files Needing Attention: No files need further attention.
What T-Rex did
Reviews (1): Last reviewed commit: "fix(migrations): infer legacy extraction..." | Re-trigger Greptile |
Summary
Verification
pnpm checkNeed help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit