Migrate the reminder responses to the generated ReminderResponseData - #6748
Conversation
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
SDK Size Comparison 📏
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughReminder endpoints now use separate network response models for querying, creating, and updating reminders. Reminder response data maps to ChangesReminder response models
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Refactor Suggested reviewers: Merge Risk: ⚪ Minimal · up to No concrete issue currently prevents merging. The reminder response contract for duration remains unverified. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to The reminder responses now require a field the previous client did not require. If a successful response omits it, the client may report a failure, potentially after creating or updating a reminder. The available tests do not establish that every successful response includes the field. No new security boundary or privilege exposure was identified. Retained concerns
Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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. A rabbit checks each reminder reply, Comment |
andremion
left a comment
There was a problem hiding this comment.
Looks good. One optional nit inline.
|
|
🚀 Available in v7.13.0 |



Goal
Parse the reminder responses of
queryReminders,createReminderandupdateReminderwith the generatedmodels.
Part of AND-1291
Implementation
RemindersApiat the generatedQueryRemindersResponse,CreateReminderResponseandUpdateReminderResponse, and delete the hand-written response wrappers.ReminderResponseDatatoMessageReminder, reusing the generatedChannelResponseandMessageResponsemappers for the embedded channel and message. The channel mapper also fills the typedChannel.hiddenwhen the key is present; it stays inextraDataas before.DownstreamReminderDtostays for the reminder WebSocket events.Testing
ReminderResponseParityTestparses the same reminder JSON through the hand-written DTO and the generatedmodel and requires the same
MessageReminder, including the embedded channel and a bookmark reminderwithout channel or message.
On a device: created, updated and queried a timed and a bookmark reminder. Every field matched what was set,
the message matched
getMessage, and the channel matchedqueryChannelsapart fromhiddenandblocked,which the reminder endpoint doesn't send.
🤖 Generated with Claude Code
Summary by CodeRabbit