Page MenuHomePhabricator

Add support for searching EntitySchema values by ID
Open, Needs TriagePublic

Description

The API should, when called with the ID of an existing EntitySchema, return that ID and an associated label and description. Implementing searching by label or alias is out of scope of M2 (though we will investigate it in T362005).

We might hook this up with the wbsearchentities API, which would let us reuse the normal “entity selector” expert for the EntitySchema data type (simplifying T362004); or we might expose this via a separate API endpoint (Action or REST).

Event Timeline

Change #1021960 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] WIP: Support additional types in wbsearchentities

https://gerrit.wikimedia.org/r/1021960

Change #1021961 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] WIP: Support type=entityschema in wbsearchentities

https://gerrit.wikimedia.org/r/1021961

Change #1021975 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Introduce DescriptionLookup

https://gerrit.wikimedia.org/r/1021975

Just following up on our chat this morning, let's move ahead with using wbsearchentities to retrieve the EntitySchema IDs for the expert