Last modified: 2014-08-14 22:21:54 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 T62485, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60485 - API: Sensible mobileview defaults
API: Sensible mobileview defaults
Status: NEW
Product: MobileFrontend
Classification: Unclassified
Hygiene (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Jon
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-27 19:01 UTC by Jon
Modified: 2014-08-14 22:21 UTC (History)
12 users (show)

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


Attachments

Description Jon 2014-01-27 19:01:48 UTC
The API in general for some reason loves to give you the least amount of information possible. To me this is silly and increases the learning curve to using it and it is a trend we should move away from (.

The url to request all the mobile information about a page is currently:

/w/api.php?format=json&action=mobileview&page=Foo&variant=en&redirect=yes&prop=id%7Csections%7Ctext%7Clastmodified%7Clastmodifiedby%7Clanguagecount%7Chasvariants%7Cprotection&noheadings=yes&sectionprop=level%7Cline%7Canchor&sections=all

I propose that we just make all these arguments the default unless overridden.
e.g. construct a more pretty query like:
/w/api.php?format=json&action=mobileview&page=Foo

if you just want the id prop you do:
/w/api.php?format=json&action=mobileview&page=Foo&prop=id
Comment 1 Yuvi Panda 2014-01-27 19:04:24 UTC
We should do this, but use a different action= name (backwards compatibility and all)
Comment 2 Bingle 2014-01-28 23:40:36 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1654

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


Navigation
Links