Page MenuHomePhabricator

Make App Wikipedia Zero Aware
Closed, ResolvedPublic

Description

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.


Version: Unspecified
Severity: enhancement

Details

Reference
bz56015

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:24 AM
bzimport set Reference to bz56015.
bzimport added a subscriber: Unknown Object (MLST).

If you guys can throw in an API module to check the Zero mode state, we should be able to check that easyish.

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).

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.

Cool. Will need to go over API changes with Yuri, who I've added to the bug.

(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?

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.

Should we close this bug out at this point or keep it open to hang on additional improvements?

I think we're safe to close. Closing.