feat(mail): strict local validation for message_ids in +messages#1194
feat(mail): strict local validation for message_ids in +messages#1194xukuncx wants to merge 1 commit into
Conversation
…shortcut Add validateMessageIDs function that checks each message ID after comma splitting to reject clearly illegal input before it reaches the batch_get API endpoint. Rejects empty/whitespace IDs, natural language, JSON array strings, colon-separated IDs, and quote-wrapped values. Strip surrounding quotes before validation. Add comprehensive unit tests. sprint: S1
|
xukun seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
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)
📝 WalkthroughWalkthroughThis PR enhances the mail ChangesMessage ID Validation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@2a51a2427e4e142ec9b91f6c2074b3f2d0c276dd🧩 Skill updatenpx skills add xukuncx/cli#feat/7564d1a -y -g |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1194 +/- ##
==========================================
+ Coverage 69.14% 69.15% +0.01%
==========================================
Files 630 630
Lines 59304 59336 +32
==========================================
+ Hits 41005 41035 +30
- Misses 14988 14989 +1
- Partials 3311 3312 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Generated by the harness-coding skill.
Sprints
Source specs
This MR was created autonomously. Quality gates were enforced by the repo's own pre-commit hooks.
Summary by CodeRabbit
Bug Fixes
+messagesshortcut's message IDs, catching invalid formats earlier and returning clearer error messages to help users correct formatting issues.Tests