Repository navigation
fix(workspace): stopped the same collection from rendering twice with conflicting status - #8947
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
WalkthroughWorkspace collection handling now preserves missing-local state, filters duplicate unopenable entries, changes collection actions, and forces collection reloads during workspace switching. ChangesWorkspace collection handling
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
Description
BRU-4261
After moving a collection to another workspace, the source workspace showed the same collection twice , for
Failed to openandNot cloned. TheNot clonedentry also showed actions that didn’t work and causing errors.Problem
The move didn’t update the source workspace, causing duplicate collection entries. The
Not clonedstatus was also based on whether the collection was open, instead of whether it was actually missing locally.Fix
The workspace now refreshes the collection list from disk and removes duplicates, so each collection appears only once with the correct
Failed to openstatus. The missing-local flag is also read correctly, removing the badge flicker. Missing collections now show only valid actions, and Remove works as expected.Screenshots
Before:
After:
Contribution Checklist:
Summary by CodeRabbit
Bug Fixes
Improvements