fix(drive): preserve parent token on nested overwrite#908
Conversation
Ensure drive +push overwrite requests for nested files keep parent_node aligned with the actual remote parent folder and report parent resolution failures explicitly.
|
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 (1)
📝 WalkthroughWalkthroughThis PR ensures Drive push overwrites resolve and use the correct parent folder token per-relative-path, adds drivePushEnsureParentToken, records per-item parent-resolution failures, and adds unit and e2e tests covering success and failure paths for nested overwrites. ChangesDrive overwrite with parent folder token resolution
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
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 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #908 +/- ##
==========================================
+ Coverage 65.91% 65.97% +0.05%
==========================================
Files 520 523 +3
Lines 49277 49598 +321
==========================================
+ Hits 32483 32722 +239
- Misses 14022 14085 +63
- Partials 2772 2791 +19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@00deebfba0513c9c5d3c5930077d673fa55dc026🧩 Skill updatenpx skills add larksuite/cli#fix/drive-push-overwrite-parent -y -g |
Add a live drive +push workflow case for overwriting a nested remote file so the PR parent-token fix is exercised against the real backend and verified to converge via +status.
Summary
drive +push --if-exists=overwriteTesting
Summary by CodeRabbit
Bug Fixes
Tests