fix: add subscribed_to_releases to local fields and fix hash loop#148
Conversation
- Add subscribed_to_releases to LOCAL_REPOSITORY_FIELDS so backend sync doesn't overwrite local release subscription settings - Compute hash from merged data instead of raw backend data to prevent unnecessary write loops when backend doesn't persist local fields
|
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)
📝 WalkthroughWalkthroughThe PR makes two coordinated changes to ensure local repository metadata survives backend synchronization. The merge utility now preserves the ChangesRepository Sync Metadata Preservation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
变更说明
基于 PR #147 (fix: 后端同步时保留仓库本地元数据) 的代码审查反馈,修复两个问题:
修复内容
补充
subscribed_to_releases字段Repository类型中subscribed_to_releases?: boolean是用户本地操作的订阅标记LOCAL_REPOSITORY_FIELDS修复 hash 循环写问题
quickHash(backendRepos)作为 hash,但实际写入 store 的是合并后的数据setRepositories→ 不必要的写循环验证
Summary by CodeRabbit