wordpress-mobile / wordpress-mobile/WordPress-Android
My Site Dashboard - Discrepancy in `Create Next Post` card and `PUBLISHED` tab posts for a `Contributor`
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Expected behavior
Since a contributor cannot directly publish a post, they need to put it under review. Then, when an admin/editor saves this post on their side, thus actually allowing its publication, then two things happen:
- The published post is shown on the
PostsscreenPUBLISHEDtab for theadminuser. - However, the published post is NOT shown on the
PostsscreenPUBLISHEDtab for thecontributoruser.
So, because of the above, on the contributors dashboard cards feed, one would expect the Create First Post, but it actually shows Create Next Post.
While it appears that Create Next Post is displayed correctly in this scenario, the expectation is that the PUBLISHED tab on the Posts screen should display the published post for the contributor.
Actual behavior
The PUBLISHED tab on the Posts screen does not display the published post for the contributor, however, the contributor can see the published post in the dashboard feed. There seems to be a discrepancy here, in terms of how the PUBLISHED tab works, within the Posts screen.
PS: Same behavior applies on the SCHEDULED/TRASHED tab, within the Posts screen.
Internal discussion: p1642680344067300/1642630099.061900-slack-C0290FLA0RM
Steps to reproduce the behavior
- Login with a
contributoraccount for awpcomsite. - Create a post.
- Submit for review.
- Logout from the account and log in with an
adminaccount for the site. - Publish the
contributor's post which was submitted for review in step 3. - Logout and re-login with the same
contributoraccount. - Notice that
- The dashboard feed displays a
Create Next Postcard. PostsscreenPUBLISHEDtab does not display thecontributor's published post.
- The dashboard feed displays a
Tested on WPAndroid [alpha-338]]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the discrepancy in the Posts screen PUBLISHED, SCHEDULED, and TRASHED tabs using the contributor/admin sequence in the issue, and compare it with the dashboard feed. Start by locating the Posts screen tab filtering and the contributor dashboard card logic. Done means posts published by an admin for a contributor appear consistently in the relevant tabs and the dashboard card remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100