Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Conversation

@ScoutHarris
Copy link
Contributor

@ScoutHarris ScoutHarris commented Jan 13, 2021

Description

Ref wordpress-mobile/WordPress-iOS#15355
WPiOS PR: wordpress-mobile/WordPress-iOS#15638

This adds functionality to toggle a post's is_seen status.

Testing Details

Can be tested with the referenced WPiOS PR.

  • Please check here if your pull request includes additional test coverage.

Copy link
Contributor

@aerych aerych left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hola @ScoutHarris 👋
I had just one nitpick looking at the code.
Back to you!

] as [String: AnyObject]

wordPressComRestApi.POST(path, parameters: params, success: { (responseObject, httpResponse) in
success()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we should check what's returned in the response object. It should be a dictionary with a single key status. The value of status can be true or false depending on if the call succeeded. Looks like there are a few (unlikely) scenarios where false could be returned.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. And done!

Copy link
Contributor

@aerych aerych left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! :shipit:

@ScoutHarris
Copy link
Contributor Author

Thanks @aerych !

@ScoutHarris ScoutHarris merged commit a7a180d into develop Jan 14, 2021
@ScoutHarris ScoutHarris deleted the feature/15355-seen_support branch January 14, 2021 23:23
@ScoutHarris ScoutHarris restored the feature/15355-seen_support branch January 14, 2021 23:24
@ScoutHarris ScoutHarris deleted the feature/15355-seen_support branch January 14, 2021 23:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants