Page MenuHomePhabricator

[BUG] Random does not appear to be responsive when offline
Closed, ResolvedPublic

Assigned To
Authored By
RHo
Feb 6 2017, 8:38 PM
Referenced Files
F8799810: T157377 Crash when tapping Settings.png
Jul 20 2017, 1:19 AM
F8799836: T157377 Scenario 3.png
Jul 20 2017, 1:19 AM
F8799815: T157377 Scenario 1.png
Jul 20 2017, 1:19 AM
F8799822: T157377 Scenario 2.png
Jul 20 2017, 1:19 AM
F8798727: main-MainActivity-07192017213921.png
Jul 19 2017, 7:40 PM
F8646480: Screenshot (7 Jul. 2017 16:53:03)
Jul 7 2017, 2:57 PM
F8014383: Screenshot_20170510-131812.png
May 10 2017, 11:28 AM
F6593046: sailfishNOF27Brho03152017145815.gif
Mar 15 2017, 2:00 PM
Tokens
"Like" token, awarded by Niedzielski.

Description

Steps to reproduce

  1. Open the app to the Explore feed **whilst offline
  2. Tap on 'Randomizer'

Actual

Tapping on Randomizer registers the tap but does nothing.
open to view animated gif

Offline - Explore - Randomizer.gif (540×960 px, 408 KB)

Expected

Article tabs should open to an article available offline, or else provide a 'no internet connection' message as feedback to the trigger:

Article - offline.png (640×360 px, 25 KB)
If saved article fails to load after trigger
Random - offline snackbar.png (1×720 px, 299 KB)
If user is offline with no saved articles that can be loaded

Event Timeline

Potentially same fix (?) but this bug is different since it is specific to when the user is offline; and unlike T145909 nothing happens no matter the speed or number of times Random is tapped.

Dbrant renamed this task from Random – tapping on this tile does nothing when shown on the Feed whilst offline to Make Random feed card have the same appearance as Featured Article..Feb 21 2017, 4:34 PM
Dbrant updated the task description. (Show Details)
RHo renamed this task from Make Random feed card have the same appearance as Featured Article. to Revise appearance of the Random feed card .Feb 21 2017, 5:25 PM
RHo updated the task description. (Show Details)

@RHo

  • Why don't we want the user to save or share the random article?
  • When the user taps "Another random article", do you mean that a new random article will be loaded in-place in the same card? (in which case, what should be the status indication while it's fetching the new title?) Or do you mean that a new random article will be opened in the page browsing activity? In which case, can we postpone this until we have the full re-roll functionality built into the page browsing activity?

hey @Dbrant

  • Having the save and share random makes for a random article with a couple too many action items which looks somewhat cluttered, and moreover leads to a dead end with the random article, since it just remains there saved without any way load a new random article (which would be achieved by tapping to read it or tapping 'another random article'.
  • 'Another random article' opens another random article in the article tabs (page browsing activity) – We could postpone until the full Random re-roll is implemented, but then we have the issue of not allowing the user a clear way to load another Random article besides tapping on the article (so all the more reason I would remove share and save).

@Dbrant – perhaps we are getting far away from the original intent of the task to fix Random as it is now not working properly on offline mode by half introducing a revamp of Random. Rather than revising the random card halfway, it would be clearer and more impactful to be introduced as one complete feature.

I propose reverting this ticket back to fixing the bug so that when the user is offline, tapping on the Random tile (as it looks currently) opens up the article tab with an 'Article not loaded' message.

{F5760820}

Per meeting discussion, I created a new task for improving the random T158788 and reverting this task description to fix the bug on Random when offline.

@RHo Thanks! Could you provide the vector asset for the graphic in the above screenshot?

sure thing – here's the svg, which should import fine into Studio:

Change 339632 had a related patch set uploaded (by Dbrant):
Make Random card pull from reading lists when offline.

https://gerrit.wikimedia.org/r/339632

RHo renamed this task from Revise appearance of the Random feed card to [BUG] Random does not appear to be responsive when offline.Feb 28 2017, 4:40 PM
RHo updated the task description. (Show Details)

Change 339632 merged by jenkins-bot:
Make Random card pull from reading lists when offline.

https://gerrit.wikimedia.org/r/339632

hi @Dbrant
Incorrect "Unknown error" message being shown when tapping on Randon whilst offline and there are no saved articles to open.
open to view animated gif:

sailfishNOF27Brho03152017145815.gif (540×960 px, 1 MB)

Change 346987 had a related patch set uploaded (by Dbrant):
[apps/android/wikipedia@master] Improve message shown by Random card when offline.

https://gerrit.wikimedia.org/r/346987

Change 346987 merged by jenkins-bot:
[apps/android/wikipedia@master] Improve message shown by Random card when offline.

https://gerrit.wikimedia.org/r/346987

hi @Dbrant - can we just add a "RETRY" action on the snackbar and then will be fine to head QA.

Screenshot_20170510-131812.png (1×1 px, 104 KB)

Screenshot from:
Device = Pixel
Version = 2.5.195-alpha-2017-05-09

Test steps

  1. Open an article in the app and save it to a reading list
  2. Go offline
  3. Tap on the Random card in the Explore feed [Expected: the random article loaded will pull from the article saved to the list and available offline]
  4. Delete reading list and all articles available offline
  5. Tap on the Random card again [Expected: snackbar advising user 'Cannot connect to internet' with 'RETRY' action]

@RHo Are we totally sure that the Retry action is necessary here? If the user wants to retry a random page, they can just tap the Random card again (the card will still be in view, by definition). And also, if the user has no internet connection, which is really the only reason for this message to appear, then the Retry action is highly unlikely to have any effect.

@Dbrant – I think it's good practice to standardize the action to always appear for the 'you are offline' snackbar. It also means if and when we change the random card later (for example the proposal to show an initial random article within the card), this can still apply.

Change 360649 had a related patch set uploaded (by Dbrant; owner: Dbrant):
[apps/android/wikipedia@master] Add Retry action when fetching random article fails.

https://gerrit.wikimedia.org/r/360649

Change 360649 merged by jenkins-bot:
[apps/android/wikipedia@master] Add Retry action when fetching random article fails.

https://gerrit.wikimedia.org/r/360649

Hi @Dbrant – thanks for adding the snackbar and retry action, but can we update the message to "Cannot connect to the internet" or something less tech-jargony?

Screenshot (7 Jul. 2017 16:53:03) (1×1 px, 666 KB)

Thanks!

Change 364216 had a related patch set uploaded (by Dbrant; owner: Dbrant):
[apps/android/wikipedia@master] Simplify error message upon failure to fetch random article.

https://gerrit.wikimedia.org/r/364216

Change 364216 merged by jenkins-bot:
[apps/android/wikipedia@master] Simplify error message upon failure to fetch random article.

https://gerrit.wikimedia.org/r/364216

LGTM

main-MainActivity-07192017213921.png (1×1 px, 129 KB)

Tested on Nexus (Android 6.0.1), Wikipedia version 2.6.198-alpha-2017-07-18.

Testing on Samsung-SM-JI20A Galaxy Express 3 (Android 6.0.1) and Wikipedia version 2.6.198-alpha-2017-07-18,
I think that is the version, I am getting a crash when tapping Settings that needs a bug filed for it separately

T157377 Crash when tapping Settings.png (800×480 px, 56 KB)

Back to this subject though, I'm getting three scenarios shown in the below screencaps. Scenario 1 is working as expected,
"If saved article fails to load after trigger" happens when I open Explore offline and use Randomizer without opening any Readling list items beforehand.
T157377 Scenario 1.png (800×480 px, 32 KB)

Scenario 2 I'm getting is if I open Reading List items before going offline, I get an example of the below screencap after using Randomizer offline.
T157377 Scenario 2.png (800×480 px, 319 KB)

Scenario 3 below happens after I delete the Reading List I used for the previous two scenarios before. "If user is offline with no saved articles that can be loaded"
T157377 Scenario 3.png (800×480 px, 50 KB)

Everything seems to be fixed and working as expected (except for tapping the Settings menu).