-
Notifications
You must be signed in to change notification settings - Fork 7
Further naming tweaks #429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughRenames external parameter labels in message and reaction APIs: forSerial → withSerial on Messages.update/delete, and forMessageWithSerial → fromMessageWithSerial on MessageReactions.delete. Updates corresponding default implementations, mocks, example usage, and tests to match. No logic, control flow, or error-handling changes. Changes
Sequence Diagram(s)Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (9)
🧰 Additional context used📓 Path-based instructions (2)Tests/AblyChatTests/**/*.swift📄 CodeRabbit inference engine (CLAUDE.md)
Files:
Sources/**/*.swift📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (9)Example/AblyChatExample/ContentView.swift (3)
Tests/AblyChatTests/DefaultMessageReactionsTests.swift (3)
Example/AblyChatExample/Mocks/MockClients.swift (2)
Sources/AblyChat/DefaultMessageReactions.swift (2)
Sources/AblyChat/MessageReactions.swift (3)
Sources/AblyChat/Messages.swift (2)
Tests/AblyChatTests/DefaultMessagesTests.swift (2)
Tests/AblyChatTests/IntegrationTests.swift (3)
Sources/AblyChat/DefaultMessages.swift (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (5)
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 |
Change forSerial to withSerial in Messages.delete and Messages.update. (In 103a812 I suggested forSerial because I thought withSerial would look like the serial is being used as a parameter to change the nature of the operation instead of identifying the message, but now that I've seen "for serial" being used it just looks weird.) And change MessageReactions delete(forMessageWithSerial:…) to delete(fromMessageWithSerial:…); i.e. "delete reaction from the message with this serial".
3f30bb0 to
453abb0
Compare
TODO squash into previous if ably/ably-chat-swift#429 merged, this is 453abb098d2f43d89b22474d47b0e2e1e8269252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Change
forSerialtowithSerialinMessages.deleteandMessages.update. (In 103a812 I suggestedforSerialbecause I thoughtwithSerialwould look like the serial is being used as a parameter to change the nature of the operation instead of identifying the message, but now that I've seen "for serial" being used it just looks weird.)And change
MessageReactions.delete(forMessageWithSerial:…)todelete(fromMessageWithSerial:…); i.e. "delete reaction from the message with this serial".Summary by CodeRabbit