Page MenuHomePhabricator

Allow content from multiple offline compilations to be available
Closed, ResolvedPublic3 Estimated Story Points

Description

User story

As a user with multiple offline compilations downloaded, I want to be able to access content from all compilations when offline.

Event Timeline

Change 364440 had a related patch set uploaded (by Dbrant; owner: Dbrant):
[apps/android/wikipedia@master] ZIM Compilations: the beginning.

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

Change 364440 merged by jenkins-bot:
[apps/android/wikipedia@master] ZIM Compilations: the beginning.

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

This is working on my Nexus 5 (Android 6.0.1) and Pixel (7.1.2) on Wikipedia v2.6.200-alpha-2017-08-09; I'm able to read content from multiple compilations whilst offline.

Two compilations downloaded
main-MainActivity-08102017165527.png (1×1 px, 165 KB)
Article from one compilation
main-MainActivity-08102017165519.png (1×1 px, 263 KB)
Article from the other compilation
main-MainActivity-08102017165542.png (1×1 px, 273 KB)
QA Testing steps:
  1. Go to the "Offline library" (previously called Offline Compilations) via the overflow menu on the Explore feed
  2. Proceed to download more than one article pack (previously the call to action was "Add a compilation") - eg. Wikipedia Uganda and WikiMed Medical Encyclopedia.
  3. After article packs have finished downloading, go into airplane mode.
  4. Search for an article that should be on one article pack, eg. "Uganda - India relations" and open it. It is expected that the toast message indicating the origin of the article is from the Uganda offline compilation from a certain date.
  5. Next search for an article from a different article pack, eg. "Aids" and open it. It is expected that a toast message indicating the origin of the article is from the second Wikimed offline compilation from a different date.
ABorbaWMF subscribed.

Tested on a Nexus 4 with Android 5.1 and a Pixel with Android 7.1.1 on 2.6.201-alpha-2017-08-11

This looks good with the exception of the date listed in the toast message. It says downloaded on 18 Jan 1970. That means I'm a time traveler. Totally knew it :)

main-MainActivity-08102017165542.png (1×1 px, 273 KB)

hi @ABorbaWMF - yes the date info that should be shown is the date the compilation was generated, but that piece is not yet complete. It's tracked on T166652