fix: address Base attachment review follow-ups#958
Conversation
|
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 (3)
📝 WalkthroughWalkthroughThis PR restricts image dimension unavailable warnings during attachment upload from all image types to GIF, JPEG, and PNG only. A new MIME-type filter helper enables this logic, integrated into the upload function, with test coverage for the helper and a clarified test name. ChangesImage dimension warning MIME-type filter
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 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 |
aaa507a to
fbba475
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #958 +/- ##
=======================================
Coverage 66.96% 66.96%
=======================================
Files 568 568
Lines 53317 53323 +6
=======================================
+ Hits 35703 35709 +6
Misses 14649 14649
Partials 2965 2965 ☔ 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@fbba4758a82351630273ef1c9cf0762b758933a6🧩 Skill updatenpx skills add zgz2048/cli#codex/base-attachment-review-fixes -y -g |
Summary
Address the two remaining review follow-ups from the Base attachment API work. This narrows the image-dimension warning so unsupported image MIME types like WebP do not emit a misleading message, and renames a download test to match the behavior it actually verifies.
Changes
image/gif,image/jpeg,image/png)image/webpcaseextraquery parameter rather than a response fieldTest Plan
lark xxxcommand works as expectedRelated Issues
Summary by CodeRabbit
Bug Fixes
Tests