-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Comments: Add method to fetch the latest reply comment ID #17408
Conversation
You can trigger an installable build for these changes by visiting CircleCI here. |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
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.
/// | ||
extension CommentService { | ||
/// Fetches the current user's latest reply ID for the specified `commentID`. | ||
/// In case if there are no replies found, the success block will still be called with value 0. |
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.
👍
…ts-service-latest-reply-id
Refs #17087
Depends on #17399, wordpress-mobile/WordPressKit-iOS#463
As titled, this PR extends Comment Service so it could fetch the latest reply ID from a specified comment ID. In the method parameters, I've added
accountService
to make it testable. As for theAccountService
usage, the method needs to fetch the current user's dotcom ID to filter returned comments.To test
Since there are no visual changes, make sure all the tests pass.
Regression Notes
Potential unintended areas of impact
n/a. Feature is unreleased.
What I did to test those areas of impact (or what existing automated tests I relied on)
n/a. Feature is unreleased.
What automated tests I added (or what prevented me from doing so)
Added unit tests for the
CommentService
.PR submission checklist:
RELEASE-NOTES.txt
if necessary.