Wordpress-android: Login: Site List does not update automatically after logging in to WordPress.com via Jetpack Install

Created on 28 Jul 2020  路  2Comments  路  Source: wordpress-mobile/WordPress-Android

Steps to reproduce:

  1. On the log in screen, select the "Enter your site address" option and log in to a self-hosted non-Jetpack site.
  2. Go to Notifications.
  3. Tap "Install Jetpack".
  4. Tap "Set Up".
  5. Log in to the WordPress.com account you'd like to associate the Jetpack account with.
  6. Tap "Approve" when prompted.
  7. Go to My Site > Switch Site.

Result: Associated WP.com sites are missing from the My Site > Switch Site > Choose site screen if you log in by way of the Install Jetpack flow. (2m35s)

Account screen after installing Jetpack via the app|Choose site screen missing WP.com sites|Pull-to-refresh|Choose site with WP.com sites showing after pull-to-refresh
---|---|---|---
Screen Shot 2020-07-28 at Jul 28 3 37 25 PM|Screen Shot 2020-07-28 at Jul 28 3 37 36 PM|Screen Shot 2020-07-28 at Jul 28 3 38 03 PM|Screen Shot 2020-07-28 at Jul 28 3 38 07 PM

Tested with WPAndroid 15.4-rc-1 on Pixel 3 Android 10.

Login Site Picker [Pri] Medium [Type] Bug

All 2 comments

So, after testing this for a bit, here's what I found:

  1. This only happens when using a Magic Link to login on step 5.
  2. This also happened before the Unified Login & Sign-Up was implemented (so I'll go ahead and remove that label, just to make sure we're tracking only newly introduced bugs with it, but feel free to use it again in the future if you're not sure).

Assuming those findings are accurate, here's what I believe is happening: apparently we're skipping the Epilogue screen when using Magic Links, but we shouldn't, since we fetch for the user's sites on that screen. There's logic in place to handle this specific scenario, but somehow it's not working. As far as I can see, this could either mean that logic is broken for a while and we hadn't noticed (is there a way to find out if that's the case?) or that the logic for Jetpack connect (or Magic Link login in general) changed recently and broke this flow.

Without digging a bit more into this, I have no way of knowing for sure and unfortunately I don't quite have the time to do so right now. But assuming this is really only happening on this flow and only when using Magic Links, what do you think of making it a Groundskeeping issue? If you believe this is more urgent, I could certainly take a few hours to look into it again next week.

Totally cool by me to put this one in Groundskeeping鈥擨 put it in the to-be-triaged list for now and will circle back. Thanks for the update and feedback @renanferrari!

Was this page helpful?
0 / 5 - 0 ratings