Page MenuHomePhabricator

Update iOS app method of retrieving short descriptions to use new prop=description
Closed, ResolvedPublic

Description

Borrowing wholesale @Deskana's ticket description from T191333:


There's now a magic word which allows editors on the English Wikipedia to override the descriptions from Wikidata, per T184000. The previous method of accessing the descriptions using prop=pageterms now needs to be replaced with prop=description. The output from the new method is quite different, so there'll be a few changes that need to be made.

Old method: https://en.wikipedia.org/w/api.php?action=query&titles=Wagon%20Train&prop=pageterms

New method: https://en.wikipedia.org/w/api.php?action=query&titles=Wagon%20Train&prop=description


For iOS this means everywhere we have "prop" using "pageterms" we'll want to change to "description". I think we'll then no longer need the "wbptterms" "description" param. We'll just have to then extract the description straight from the "description" rather than from it's previous "terms" "description" array.

Event Timeline

@Fjalapeno I'm ready to jump on this. Given the rush should I prioritize this over wrapping moving the adjacent reference gathering to pagelib?

Mhurd renamed this task from Update method of retrieving short descriptions to use new prop=description to Update iOS app method of retrieving short descriptions to use new prop=description.Apr 4 2018, 6:23 PM

@Mhurd yes, prioritize this over the references!
Thanks :)

Reminder: will need to update the article footer "Read more" transform to use new wikidata parameters too.

JMinor subscribed.

Per Monte's spike (T192600), this is a fairly easy fix, so moving into scope for 5.8.1.

Testing criteria

  • load enwiki > goat
  • scroll to Read more section at bottom of article
  • one of the Read more results is for Goat farming: ensure the description is Raising and breeding of domestic goats (which is a description I added using the new SHORTDESC described here)
JMinor added a subscriber: DannyH.

@DannyH and the curators of the en.wikipedia community thank you...