Page MenuHomePhabricator

Show text from Wikidata usage instructions property (P2559) when auto-suggesting properties or items
Open, NormalPublic

Description

Per T97566, we need a feature that displays the text in the Wikidata usage instructions property (https://www.wikidata.org/wiki/Property:P2559) when a Wikidata editor gets auto-suggestions for properties or items.

Event Timeline

kaldari created this task.Jul 12 2016, 5:07 PM
Restricted Application added a subscriber: Zppix. · View Herald TranscriptJul 12 2016, 5:07 PM
thiemowmde triaged this task as High priority.Dec 22 2016, 9:29 AM
thiemowmde moved this task from incoming to consider for next sprint on the Wikidata board.
Lydia_Pintscher lowered the priority of this task from High to Normal.Dec 22 2016, 6:52 PM
Smalyshev added a comment.EditedJul 25 2017, 6:31 PM

I wonder if it makes sense to put those in the Elastic index. That would allow us to retrieve them along with labels and descriptions, and for the GUI to decide how to display them.

Probably needs to be done in a generic way, e.g.:

  • Config has the list of properties whose values we want to index (may also want P31/P279, for example)
    • Config may also have to define how to treat the values - i.e. just ID, labels, multilanguage value, etc.
  • Search would retrieve all configured extra properties, or only those configured in the query (a-la pageprops)
  • UI would decide what to do with those.
Restricted Application added a subscriber: PokestarFan. · View Herald TranscriptJul 25 2017, 6:31 PM

I was wondering if that could happen completely in frontend, we only need those when someone tries to edit and not when someone searches in wikidata.

What I would suggest doing is maybe putting this as a non-indexed field in the index and returning it together with the response. Of course, it could also be done purely client-side but at the cost of one extra round-trip.

abian awarded a token.May 3 2018, 5:12 PM
abian added a subscriber: abian.
Nikki added a subscriber: Nikki.Aug 8 2018, 2:58 PM
Jc86035 added a subscriber: Jc86035.Apr 4 2019, 3:19 PM