Last modified: 2014-06-17 21:42:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58015, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56015 - Make App Wikipedia Zero Aware
Make App Wikipedia Zero Aware
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Search (Other open bugs)
Unspecified
All All
: Normal enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-22 21:16 UTC by dr0ptp4kt
Modified: 2014-06-17 21:42 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description dr0ptp4kt 2013-10-22 21:16:35 UTC
The next version of the Wikipedia Apps should make a configuration check at startup to determine if zero-rating through the Wikipedia Zero initiative is possible. And if so, the UI can be adjusted accordingly (e.g., interstitials). Hits should also be counted properly through Analytics processes.
Comment 1 Brion Vibber 2013-10-23 17:54:55 UTC
If you guys can throw in an API module to check the Zero mode state, we should be able to check that easyish.
Comment 2 dr0ptp4kt 2013-10-23 19:10:40 UTC
Cool. After one more revision of https://gerrit.wikimedia.org/r/#/c/83133/ the API will have information sufficient for this purpose. See https://gerrit.wikimedia.org/r/#/c/83133/38/includes/ApiZeroConfig.php, for example.

The general format of the call is http://<lang>.m.wikipedia.org/w/api.php?action=zeroconfig&type=config, although you and I should probably talk about how to opportunistically - and hopefully efficiently - use an HTTPS connection for config retrieval or verification or both (maybe with a simpler URL, too).
Comment 3 Brion Vibber 2013-10-23 19:39:31 UTC
If this and mobileview were both available through action=query we could fetch them both together in one API hit.... not sure offhand if we can do two actions together but my impression is no.

Alternatively we could extend action=mobileview to pass through the Zero info, possibly with other site metadata that we might want to add...

However if we can throw the API requests on HTTP(S) with pipelining on, in theory we can make both requests on the existing format without additional connection overhead... will make a note to experiment with the low-level keepalive/pipelining options in the HTTP libraries we'll be using.
Comment 4 dr0ptp4kt 2013-10-23 19:56:07 UTC
Cool. Will need to go over API changes with Yuri, who I've added to the bug.
Comment 5 Andre Klapper 2014-03-11 10:32:18 UTC
(In reply to dr0ptp4kt from comment #4)
> Cool. Will need to go over API changes with Yuri, who I've added to the bug.

Any news here?
Comment 6 dr0ptp4kt 2014-03-11 17:55:49 UTC
The rebooted Android and iOS apps will have Wikipedia Zero flourishes. The code is in place, and we're just refining now, although the basic functionality already works in the current builds.
Comment 7 Brion Vibber 2014-06-17 21:39:54 UTC
Should we close this bug out at this point or keep it open to hang on additional improvements?
Comment 8 dr0ptp4kt 2014-06-17 21:42:30 UTC
I think we're safe to close. Closing.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links