wordpress-mobile / wordpress-mobile/WordPress-Android

My Site Dashboard - Discrepancy in `Create Next Post` card and `PUBLISHED` tab posts for a `Contributor`

Open
#15,857 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug /My site My Site Dashboard
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 Posts screen PUBLISHED tab for the admin user.
  • However, the published post is NOT shown on the Posts screen PUBLISHED tab for the contributor user.

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
  1. Login with a contributor account for a wpcom site.
  2. Create a post.
  3. Submit for review.
  4. Logout from the account and log in with an admin account for the site.
  5. Publish the contributor's post which was submitted for review in step 3.
  6. Logout and re-login with the same contributor account.
  7. Notice that
    • The dashboard feed displays a Create Next Post card.
    • Posts screen PUBLISHED tab does not display the contributor's published post.
Tested on WPAndroid [alpha-338]]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.