Page MenuHomePhabricator

[Spike] [4hrs] Investigate loading a random page from a zim file using an interceptor
Closed, DeclinedPublic

Description

  • Consider what it would take to create or modify an Interceptor to pull from an additional zim file source
  • Consider marking the source of the data with a custom header (cache, saved cache, or zim) from the cache Interceptor
  • Consider using URL rewriting to transform a MediaWiki request to a zim request
  • Consider the HTML blob to WebView to Java POJO path and what's necessary to do in Javaland vs WebView

Answer the question: can we use Interceptors for ZIM files? If so, make a task to refactor the initial implementation to use Interceptors and munge the data into the format expected.

Related Objects

StatusSubtypeAssignedTask
DeclinedDbrant
Resolved Mholloway
Resolved Mholloway
InvalidNone
Resolved Mholloway
Resolved Mholloway
InvalidNone
Invalid Fjalapeno
Resolved Mholloway
Invalid Fjalapeno
InvalidNone
Resolved Mholloway
Resolved Mholloway
InvalidNone
InvalidNone
InvalidNone
InvalidNone
Invalid Mholloway
Resolved Fjalapeno
Invalid JMinor
InvalidNone
InvalidNone
Resolved Tbayer
Resolved Fjalapeno
InvalidNone
Resolvedfgiunchedi
Invalid Fjalapeno

Event Timeline

Mholloway renamed this task from [Spike] Investigate loading a random page from a sim file using an interceptor to [Spike] Investigate loading a random page from a ZIM file using an interceptor.Apr 24 2017, 3:54 PM
Mholloway subscribed.
Niedzielski renamed this task from [Spike] Investigate loading a random page from a ZIM file using an interceptor to [Spike] Investigate loading a random page from a zim file using an interceptor.Apr 24 2017, 4:19 PM
Niedzielski updated the task description. (Show Details)

The goal of this task is to flush out enough information to do the actual implementation (another task).

NHarateh_WMF renamed this task from [Spike] Investigate loading a random page from a zim file using an interceptor to [Spike] [4hrs] Investigate loading a random page from a zim file using an interceptor.May 8 2017, 4:04 PM

Change 364577 had a related patch set uploaded (by Dbrant; owner: Dbrant):
[apps/android/wikipedia@master] Compilations: integrate with Random feed card.

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

Change 364577 merged by jenkins-bot:
[apps/android/wikipedia@master] Compilations: integrate with Random feed card.

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

I'm not sure exactly what should be done here... in particular what is an "interceptor". But the kiwix-lib already provides a method to load a random article.

Whoops; this will not be done, and is already implemented in the app in a different way.