Addshore created this task.
Addshore added a project: Wikidata-Campsite.
Restricted Application added a subscriber: Aklapper.
Restricted Application added a project: Wikidata.

TASK DESCRIPTION
  **Problem:**
  
  While investigating T170424 <https://phabricator.wikimedia.org/T170424> I 
deep dove (description at T170424#5802420 
<https://phabricator.wikimedia.org/T170424#5802420>) and found that most of our 
UI calls to the API are probably using the backward compatibility layer.
  In order to solve T170424 <https://phabricator.wikimedia.org/T170424>  and 
get more relevant and translated errors to our users we should specify an error 
format and error lang / uselang in out api calls.
  
  **Example:**
  
  New format : 
https://test.wikidata.org/w/api.php?action=wbparsevalue&format=json&parser=globecoordinate&values=%1F36&options=%7B%22lang%22%3A%22de%22%7D&uselang=de&errorformat=plaintext
  
  Old Format: 
https://test.wikidata.org/w/api.php?action=wbparsevalue&format=json&parser=globecoordinate&values=%1F36&options=%7B%22lang%22%3A%22de%22%7D&uselang=de
  
  Look at the first error to appear in the JSON output
  
  **Acceptance criteria:**
  
  - All Wikidata / WMDE owned UI code calling APIs where errors are shown to 
users should use the new pattern
  
  **Open questions:**
  
  - uselang or errorlang or both?

TASK DETAIL
  https://phabricator.wikimedia.org/T242769

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
Cc: Addshore, Aklapper, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, 
aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to