wordpress-mobile / wordpress-mobile/WordPress-Android
No data message for users in role that cannot access Stats
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
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]
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
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