wordpress-mobile / wordpress-mobile/WordPress-Android

No data message for users in role that cannot access Stats

Open
#16,862 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Enhancement Stats
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

Stats wouldn’t load for user because user have to be an administrator. Once upgraded the role to administrator stats loaded, but each view was cached with the error that there was no data.

Actual behavior

When a user was added to another user’s blog (self-hosted but connected to Jetpack) first as an Editor role. Stats wouldn’t load for user because user have to be an administrator. Once upgraded the role to administrator stats loaded, but each view was cached with the error that there was no data.

Steps to reproduce the behavior

Use Stats in a role other than Administrator

Tested on [device], Android [version], WPAndroid [version]

See here for context

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

Start by reproducing the Stats flow with a non-Administrator role, then repeat after upgrading that role as described in the issue. Trace the role check and cached no-data state in the Android Stats entry points; done means permitted users see loaded Stats rather than the cached error after access changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
analytics, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.