Display post / comment authors at the top of the suggestions list#18979
Display post / comment authors at the top of the suggestions list#18979twstokes merged 18 commits intowordpress-mobile:trunkfrom
Conversation
|
@twstokes Few questions:
|
WordPress/Classes/WordPress.xcdatamodeld/WordPress 143.xcdatamodel/contents
Outdated
Show resolved
Hide resolved
6b94466 to
1b30b9b
Compare
Please do! We'll target milestone 20.3, so let's add a line under it describing the feature. For each bullet item we add a
Thanks for the heads up on this! I'll check it out during my review to understand it better. |
twstokes
left a comment
There was a problem hiding this comment.
👋 @salimbraksa! Thanks for your work on this. 🙇 I've dropped some answers, questions, and comments in the review.
- Can we expand on the Test Instructions area to cover all the scenarios for loading comments? Even if they're quite redundant, detailed and numbered steps for our testers are really valuable to ensure we have coverage.
- Is this feature only applicable to WordPress.com sites and WordPress.org + Jetpack? In other words, will users connected to a self-hosted site (which communicates over XML-RPC) be able to use the feature when replying to comments on their blog? ref: PCYsg-g6b-p2
WordPress/Classes/ViewRelated/Suggestions/SuggestionsTableView.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Comments/FullScreenCommentReplyViewController.swift
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Suggestions/SuggestionsTableView.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationDetailsViewController.swift
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Suggestions/SuggestionsTableView.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/WordPress.xcdatamodeld/WordPress 143.xcdatamodel/contents
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Suggestions/SuggestionsTableView.swift
Outdated
Show resolved
Hide resolved
|
@twstokes Thanks for taking the time to review my PR 🙏
Sure thing 👍
Good catch, I haven't thought about this. I'll test with a fake site then get back to you 🙏 |
…rominent suggestion ids
f4c2410 to
7f6e9e5
Compare
7f6e9e5 to
8b2dca6
Compare
WordPress/Classes/ViewRelated/Suggestions/SuggestionsTableView.swift
Outdated
Show resolved
Hide resolved
|
This is looking good @salimbraksa! I tested each scenario with a WordPress.com account:
I have not tested with a self-hosted non-Jetpack account. A few outstanding items that you may be aware of:
|
|
I've created a PR for running CI tests: #19009 |
|
👋 @salimbraksa - this looks good! After updating the release notes we should be good to merge! |
Co-authored-by: Tanner Stokes <tanner@tannr.com>
Issue
Closes #18818
Description
This PR adds
prominentSuggestionsIdsattribute toSuggestionsTableView, then the view controllers that own this view populate that attribute with the post author id or comment author id if they exist.Solution
See "implementation" section (ref: pbMoDN-3DH-p2) for more details on how this PR is implemented.
I searched for all the view controllers that use the
SuggestionsTableViewview, and they are:SuggestionsTableView.prominentSuggestionsIdsfrom the VC that presented it.postId, which means we can fetch the whole post to access the author id. But I don't think it's a good solution.Test Instructions:
N.B: This feature is not enabled in self-hosted sites ( wordpress.org ).
There are different scenarios to take into consideration:
Scenario 1 - Reader Tab
Scenario 2 - My Site Tab
Scenario 3 - Notifications Tab - Comment Details
Scenario 4 - Notifications Tab - Notification Details
First, we need to disable a feature flag to access the Notification Details screen. But this scenario can only be tested by developers.
Regression Notes
Potential unintended areas of impact
Maybe there is a case where I forgot to setup
prominentSuggestionsIds. But I searched everywhereSuggestionsTableViewis mentioned and I think the VCs mentioned above are all of them.What I did to test those areas of impact (or what existing automated tests I relied on)
I've manually tested all the scenarios where we access
SuggestionsTableView.What automated tests I added (or what prevented me from doing so)
Unfortunately the
SuggestionsTableViewis not unit-testable. I'll open another PR to make it unit-testable.PR submission checklist:
RELEASE-NOTES.txtif necessary.