wordpress-mobile / wordpress-mobile/WordPress-Android
Stats keep failing to load on Jetpack Site when in "Author" role
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 are not visible in Calypso in this scenario, so I assume we should hide the menu item.
Note: We are adding Jetpack label in this PR. So if we decide to hide the Stats menu item, we will want to hide the Jetpack label as well.
See https://github.com/wordpress-mobile/WordPress-Android/issues/13476#issuecomment-734012115 -> stats should load even for users in non-admin roles.
Actual behavior
The stats keep failing to load with com.android.volley.AuthFailureError no matter how many times I try.
Steps to reproduce the behavior
- Log in using a .com credentials and switch to a jetpack site on which you are in "Author" role
- Click on Stats
- Notice an error screen is shown
Tested on [device], Android [version], WPAndroid [version]
Emulator API 28, develop 3ea66f6fbb0ef2f6e86a6eb5ce3a5462b28c9055
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 failure from the listed emulator setup: sign in with WordPress.com credentials, switch to a Jetpack site where the account has the Author role, and open Stats. Trace the Stats loading path and the com.android.volley.AuthFailureError, then verify that Stats loads for non-admin roles without hiding the menu item.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- analytics, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100