Page MenuHomePhabricator

Eliminate wbparsevalue request on changing badge
Open, Needs TriagePublic

Description

Reproduce:

  • Open any item with sitelink and with until UI is fully loaded
  • Open the browser console
  • Try to modify the badge of any sitelink

Result:
For each available badge, one wbparsevalue and one wbformatvalue call is made. Currently Wikidata have 13 available badges, which means 26 web requests

The wbparsevalue call is following:

https://www.wikidata.org/w/api.php?action=wbparsevalue&format=json&parser=wikibase-entityid&values=%1FQ20748092&errorformat=plaintext&uselang=en&options=%7B%22lang%22%3A%22en%22%7D

which returns:

{"warnings":[{"code":"deprecation","data":{"feature":"action=wbparsevalue&parser"},"module":"wbparsevalue","*":"The parameter \"parser\" has been deprecated."},{"code":"deprecation-help","module":"main","*":"Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application."}],"results":[{"raw":"Q20748092","value":{"entity-type":"item","numeric-id":20748092,"id":"Q20748092"},"type":"wikibase-entityid"}]}

(see T325428: Wikibase UI uses deprecated parameter "parser" in wbparsevalue for the deprecation message)

The wbparsevalue request is useless and should be eliminated.

(see other tasks for the wbformatvalue call)

Event Timeline