Prevent clients from setting CommitId#73
Conversation
- Removed commitId parameter from DataModel.AddChange and AddChanges - Removed CommitId property from IChange interface and implementations - Updated tests to match the new API - Removed tests that relied on client-provided commitId Co-authored-by: hahn-kev <4575355+hahn-kev@users.noreply.github.com>
|
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 (7)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThe PR removes ChangesCommitId Removal and Commit-ID Assignment Refactor
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ 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 |
…24005170139736 # Conflicts: # src/SIL.Harmony/DataModel.cs
myieye
left a comment
There was a problem hiding this comment.
Looks good, except:
- I feel like we should hold onto the deleted test
- It kind of looks like you were maybe considering totally removing the Commit constructor that accepts a Guid? If you used it, a bunch of your diffs could shrink, but that's just a question of code style.
This change implements issue #70 by preventing clients from setting the CommitId when adding changes. Commit IDs are now always generated internally to avoid potential synchronization issues where multiple clients might use the same ID with different timestamps.
Key changes:
PR created automatically by Jules for task 5045124005170139736 started by @hahn-kev
Summary by CodeRabbit