-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Npe site.username must not be null #15895
Conversation
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
You can test the changes on this Pull Request by downloading the APKs: |
# Conflicts: # build.gradle
This and linked login and fluxc lib PRs have been tested/reviewed and also confirmed by woo here. Since it's involving shared libs, to make it stay in trunk for a bit, we will merge everything in 19.4 soon after code freeze (cc @hichamboushaba ). |
# Conflicts: # WordPress/src/main/java/org/wordpress/android/util/SiteUtils.java # build.gradle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Jetpack CP sites are correctly filtered out from both the Login site picker and regular site picker. Normal JP sites appear as expected 👍
Fixes #15540
This has a companion FluxC PR here and a Login Flow PR here.
It implements the rationale mentioned here; that is filtering out sites that are jetpack package connected from the list of sites obtained from the rest client API response.
To test
Reproduce
Complete these steps on trunk without this patch:
Check the fix
Complete these steps with the apk from this PR:
Regression Notes
Potential unintended areas of impact
Places in the app where we list available user sites.
What I did to test those areas of impact (or what existing automated tests I relied on)
Manual testing + adding unit test in the FluxC companion PR.
What automated tests I added (or what prevented me from doing so)
Added a bit of unit testing in the FluxC companion PR.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.